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

Kokkos version in cpp define #2787

Closed
ambrad opened this issue Feb 22, 2020 · 3 comments
Closed

Kokkos version in cpp define #2787

ambrad opened this issue Feb 22, 2020 · 3 comments
Assignees
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@ambrad
Copy link

ambrad commented Feb 22, 2020

I don't think Kokkos currently has a C preprocessor define for version, like #define KOKKOS_VERSION 3001. This would be helpful in the following situation. Application A depends on library B and Kokkos K1. K1 is outdated relative to Kokkos master K2, and B has to support both A and other applications, which perhaps are now using K2. Thus, B's code must be able to build against both K1 and K2. A KOKKOS_VERSION would be useful in this situation. I'm aware that recent CMake changes in Kokkos export some version data, but it's not clear to me that B always will be able to access that data when it's embedded in other apps. In contrast, a KOKKOS_VERSION define exported in KokkosCore_config.h (say), would solve the problem cleanly.

@crtrott crtrott added the Enhancement Improve existing capability; will potentially require voting label Feb 24, 2020
@crtrott crtrott added this to To do in Milestone: Release 3.1 via automation Feb 24, 2020
@crtrott crtrott added this to the Tentative 3.1 Release milestone Feb 24, 2020
@oksanaguba
Copy link

Can I add a request to have SHA recorded in the build?

@dalg24
Copy link
Member

dalg24 commented Feb 26, 2020

Can I add a request to have SHA recorded in the build?

Yes we will do that as well.

@dalg24 dalg24 self-assigned this Feb 26, 2020
@crtrott
Copy link
Member

crtrott commented Feb 26, 2020

I don't know. It means we need to have a dependency on git, which kills the tarball downloads from github? And sometimes those are very useful to get stuff on machines which can't talk to the open world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
No open projects
Development

No branches or pull requests

5 participants