-
Notifications
You must be signed in to change notification settings - Fork 96
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
Cannot find Thrust Headers on Windows #594
Comments
oh sorry, can you change it from |
Good catch, but it's still nothing, actually!
Could this be due to the fact that it's trying to use the thrust that is already on my system rather than redownload it for |
No, this should be supported. I will try to look into this in details today. |
Can you please try this and see if this works? diff --git a/src/utilities/CMakeLists.txt b/src/utilities/CMakeLists.txt
index a67f6af..c59fb28 100644
--- a/src/utilities/CMakeLists.txt
+++ b/src/utilities/CMakeLists.txt
@@ -92,9 +92,10 @@ target_include_directories(${PROJECT_NAME} INTERFACE
${thrust_SOURCE_DIR}/dependencies/libcudacxx/include
)
else()
+message(_THRUST_INCLUDE_DIR: ${_THRUST_INCLUDE_DIR})
target_include_directories(${PROJECT_NAME} INTERFACE
- ${THRUST_ROOT}
- ${THRUST_ROOT}/dependencies/libcudacxx/include
+ ${_THRUST_INCLUDE_DIR}
+ ${_THRUST_INCLUDE_DIR}/dependencies/libcudacxx/include
)
endif() |
Hah, that did indeed fix it! The library builds flawlessly now 😎 Excellent intuition! I wonder why |
@pca006132 Following up the issue here #591 (comment) and on your troubleshooting message from here #591 (comment)
In the CMake Logs, it seems like it's just printing:
thrust_ROOT:
without any directory, which is odd, because CMake auto-fills in
THRUST_DIR:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/lib/cmake/thrust
which I can verify has thrust libraries and CMake Tools.
I also have a
v12.3
of CUDA, which also doesn't work.For reference, the contents of
THRUST_DIR
:The text was updated successfully, but these errors were encountered: