-
Notifications
You must be signed in to change notification settings - Fork 60
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
CUDA compilation flags #74
Comments
I am not entirely sure how |
To be clear, this works correctly without cuda. |
the issue is for CMake cuda targets (created via macros in FindCUDA), you can't add any additional flags after the targets are created. The work around is to add the defines to global flags This is actually a compelling case for adding an optional DEFINES arg to We can't use |
Update: setting @mclarsen and I were able to modify |
Bit by this again in another project. |
Is there a special way to propagate defines? I am adding a library that depends on cuda, and nvcc is being invoked., but
-D PARALLEL
is not being passed to nvcc. Am I doing something incorrectly?blt_add_library( NAME vtkh_par SOURCES ${vtkh_sources} ${vtkh_par_sources} HEADERS ${vtkh_par_headers} ${vtkh_headers} DEPENDS_ON ${vtkh_thirdparty_libs} mpi icet)
blt_add_target_compile_flags(TO vtkh_par FLAGS "-D PARALLEL")
The text was updated successfully, but these errors were encountered: