-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building AMS with adiak #10
base: develop
Are you sure you want to change the base?
Conversation
if (WITH_ADIAK) | ||
find_package(adiak REQUIRED) | ||
list(APPEND AMS_APP_INCLUDES ${adiak_INCLUDE_DIR}) | ||
list(APPEND AMS_APP_LIBRARIES adiak::adiak) | ||
list(APPEND AMS_APP_DEFINES "-D__ENABLE_ADIAK__") | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If only the example file calls the adiak API you don't need these lines here. You need to find_package at line 346.
// add adiak init here | ||
// ------------------------------------------------------------------------ | ||
adiak::init(nullptr); | ||
|
||
// adiak::value("compiler", adiak::version("[email protected]")); | ||
const adiak::path adiak_ams_compiler = std::string("@RAJAPERF_COMPILER@"); | ||
adiak::uid(); | ||
adiak::launchdate(); | ||
adiak::launchday(); | ||
adiak::executable(); | ||
adiak::executablepath(); | ||
adiak::workdir(); | ||
adiak::libraries(); | ||
adiak::cmdline(); | ||
adiak::hostname(); | ||
adiak::clustername(); | ||
adiak::walltime(); | ||
adiak::systime(); | ||
adiak::cputime(); | ||
adiak::jobsize(); | ||
adiak::hostlist(); | ||
adiak::numhosts(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add all this init functions in a separate function and call it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file from the commit. We are not uploading setup recipes in the repository. Keep a copy of this on your local system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the commit and the additional functionality. This looks good to me besides the comments. Can you fix them? Thank you!
Added Adiak options to CMakeList to support Adiak calls inside main.cpp