-
Notifications
You must be signed in to change notification settings - Fork 139
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 11 build compatibility #56
Comments
It should be possible to compile under both Linux and Windows with CUDA 11 after #68 - please comment or reopen for any follow-ups. |
How does one "fix" this? This is the error I get:
And I have no idea how to "Define THRUST_IGNORE_CUB_VERSION_CHECK" or where I should "Define" it. Can someone please explain it to me as if I was 5 years old? TIA |
Hi: In this case, it would be fixed by deleting the folder, cloning the AIHWKIT repository again and compile from a clean state. If you have CUDA 11 correctly installed, then it should find the CUB library that is shipped with CUDA 11 automatically. If the problem persist, it would be helpful if you could expand a bit on how you have tried to compile AIHWKIT, what operating system you are using and so on. |
I was able to fix it (for NVBio) using this guide here: https://githubmemory.com/repo/NVlabs/nvbio/issues/41 Basically, I told it to ignore the check by adding the line below into the top level CMakeLists.txt file: add_compile_definitions(THRUST_IGNORE_CUB_VERSION_CHECK) |
find the line containing the following statement add this command above the previous line and uncomment the line and it's working perfectly! |
Description and motivation
It seems that
CUB
is included along the CUDA Toolkit since version 11, which can cause issues during build (thanks @chaeunl for the valuable feedback and troubleshooting!):Proposed solution
We should revise the using of
CUB
in the build system. Currently, we make an attempt to find it, and if not possible, we automatically download and include the package. This might just not be needed entirely for cuda 11 (as it might be included in the default cuda header paths), or theTHRUST_IGNORE_CUB_VERSION_CHECK
flag might allow for bypass the check and use the downloaded version (which might not be ideal, though).Alternatives and other information
The text was updated successfully, but these errors were encountered: