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

Shared pointers with arrays are c++17 feature #35

Merged
merged 3 commits into from
Jun 7, 2022

Conversation

jacobmerson
Copy link
Collaborator

Using shared pointers with arrays is a c++ 17 feature. For compatibillty with gcc/6.3.0 we need to only support pure c++14 features.

@dhyan1272

Using shared pointers with arrays is a c++ 17 feature. For compatibillty
with gcc/6.3.0 we need to only support pure c++14 features.
@jacobmerson
Copy link
Collaborator Author

@dhyan1272 This needed on other small fix as functions that contain OMEGA_H_LAMBDA need to be in the public scope for CUDA.

All of the tests are passing with gcc@11.2.0 and cuda@11.6. Based on your email you need gcc@6.3 and cuda@9. So you may hit other issues.

@jacobmerson jacobmerson marked this pull request as ready for review June 7, 2022 17:09
@jacobmerson
Copy link
Collaborator Author

@joshia5 when you get a chance can you take a look?

@joshia5
Copy link
Collaborator

joshia5 commented Jun 7, 2022

@jacobmerson looks good. Is this commit 709f6d8
related to or came up during building with gpu backend
#36 ?

@jacobmerson
Copy link
Collaborator Author

It's related in the sense that I didn't test my last pull request with CUDA and that ended up causing compilation issues. However all of the changes here are related to building with the CUDA backend so I figured it was fine to leave the commit here. I can open a separate pull request if you prefer.

@joshia5
Copy link
Collaborator

joshia5 commented Jun 7, 2022

Looks good to me either way. Is this ready merge in now? @jacobmerson or are you waiting to hear back from dhyan if it needs other changes for the gitrm build?

@jacobmerson
Copy link
Collaborator Author

@joshia5 I think you can go ahead and merge it. I didn't hear back from dhyan either here or on the email chain we had.

@joshia5 joshia5 merged commit 8994ff9 into SCOREC:master Jun 7, 2022
@dhyan1272
Copy link
Collaborator

dhyan1272 commented Jun 7, 2022 via email

@jacobmerson jacobmerson deleted the fix-gcc-6-build branch June 7, 2022 19:59
@jacobmerson
Copy link
Collaborator Author

@dhyan1272 you can check if this now builds with gcc@6.3.0 (with Omega_h with CUDA) I don't think it will work with Kokkos since something in Kokkos was crashing nvcc. This commit fixes the error that you send me an email about.

@dhyan1272
Copy link
Collaborator

dhyan1272 commented Jun 7, 2022 via email

@dhyan1272
Copy link
Collaborator

dhyan1272 commented Jun 8, 2022 via email

@jacobmerson jacobmerson mentioned this pull request Jun 8, 2022
@dhyan1272
Copy link
Collaborator

dhyan1272 commented Oct 11, 2022 via email

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