-
Notifications
You must be signed in to change notification settings - Fork 57
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
Issues with new CUDA version #11
Comments
I haven't tried building with CUDA11 yet. diff --git a/init.c b/init.c
index 8b32a1a..a2307bb 100644
--- a/init.c
+++ b/init.c
@@ -935,7 +935,7 @@ static int cutorch_isManagedPtr(lua_State *L)
lua_pushboolean(L, 0);
} else {
THCudaCheck(res);
- lua_pushboolean(L, attributes.isManaged);
+ lua_pushboolean(L, attributes.type == cudaMemoryTypeManaged);
}
return 1;
} |
Hello,
Any ideas of what I can do? |
Nvidia deprecated those functions in 11 release, they recommend using a different one in the docs, but it has different arguments and would require messing with the matrices in that file to make them fit, does anyone know what this THCUNN lib even is? |
It is linear module for sparse matrix format. |
How to remove? you mean remove the whole dir I have tried just rename these 2 files:
Torch complains about some undefined symbol (e.g. |
No, it only removes functions related to sparse matrix where CUDA is used. However, I have not tried it. |
RTX30 series card only support CUDA11, so we cannot run torch on latest card now. |
Hello, I tried to follow this approach and everything works fine. Just comment these lines in SparserLinear.cu:
Line 193
|
Hello,
First of all: Many thanks for making this modifications, it fixed a whole lot of my problems with installing Torch so far! In the install process though, I came across an error that is likely due to the new version of CUDA. Recently, CUDA 11 came out and I tried to build with it, the following error appears:
It seems that the used attribute is deprecated and no longer supported (see https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaPointerAttributes.html#structcudaPointerAttributes). Is there a chance you can fix this or am I forced to switch to CUDA 10.1?
The text was updated successfully, but these errors were encountered: