-
Notifications
You must be signed in to change notification settings - Fork 21
build: fix CUDA_HOME env variable #337
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
base: main
Are you sure you want to change the base?
Conversation
How was the |
|
I'm not sure, but @gliga told me that he was unable to install PyKokkos and got some problems with CUDA_HOME env variable |
JBludau
left a comment
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.
I don't think that is going in the right direction
|
@gliga could you describe what exactly was your problem? This is kind of nebulous right now |
I had to for the install to work. If we can set those automatically (or in the limit suggest the values to use), that will simplify steps further. |
|
@gliga @JBludau I suggest creating a script/environment updater that, if the CUDA option is specified, will install CUDA using the Conda environment. Currently, we may encounter many problems if users have incorrectly installed the CUDA toolkit. Ping if you think this is a good/bad idea. I will create it if someone will say that this is ok |
| SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${INCLUDE_DIR}") | ||
| SET(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -I${INCLUDE_DIR}") | ||
| ENDFOREACH() | ||
| SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "Flags used by the C++ compiler" FORCE) | ||
| SET(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS}" CACHE STRING "Flags used by the CUDA compiler" FORCE) |
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.
I am still not understanding why we need this. This looks like CMake pre version 3. why are we not simply linking to cuda and that populates the flags corresponding to the found cuda toolkit?
I am not sure. In general I don't like autoinstalls but if you would use conda to install it, we would stay within the conda world which I would say is ok. |
|
@JBludau I have some issues with pykokkos build now, and it looks like its related to Kokkos itself: And these checks repeated multiple times. |
That is weird ... let me see if I can track that down |
This PR fixes
CUDA_HOMEenvironment variableNow, users need to to specify it explicitly to build it
This fixes that