Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

building AMS with adiak #10

wants to merge 1 commit into from

Conversation

r-yin
Copy link

@r-yin r-yin commented Sep 28, 2023

Added Adiak options to CMakeList to support Adiak calls inside main.cpp

Comment on lines +93 to +99
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()

Copy link
Member

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.

Comment on lines +78 to +100
// 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();

Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

@koparasy koparasy left a 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!

@slabasan
Copy link
Contributor

slabasan commented Mar 6, 2024

@koparasy This one can be closed, changes migrated to #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants