too few arguments for template template parameter "Tuple" in CUDA file #3783
Unanswered
jakubMitura14
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am posting this also on pytorch forum https://discuss.pytorch.org/t/cuda-extension-cuda-11-6-problem/145830
Hello I am trying to use my CUDA kernel in Pytorch python. on Visual studio 2019 with CUDA 11.6, pybind 2.8.1 ; Python 3,7
In documentation of pytorch and its forums it is indicated tha one shoud use Aten library instead of pytorch.extension in order to avoid
And those workaround works Hovewer When I try to include the pybind into my .cu file by
I get the error mentioned above
If I will comment out
all compiles - and .pyd files is produced into a solution folder - Although until I do not have connection to python file I do not know wheather it works
Detailed description of the configuration and minimal example Code I use
a) Vc++ Directories - to include directories
b) Vc++ Directories - to Library directories
c) Linker - Additional Dependencies - for debug python37_d.lib for release python37.lib
d) C/C++ → Language → Conformance mode to No
e) General tab- Additional Library Directories- ..\libtorch-win-shared-with-deps-debug-1.10.2+cu113\libtorch\lib
f) Input Tab - additional dependencies - adding torch.lib, torch_cuda.lib, caffe2_nvrtc.lib, c10.lib, c10_cuda.lib, torch_cpu.lib
g) Build Events → Post-Build Events →xcopy
h) General - Advanced - Target File Extension - changed to .pyd
i) CUDA C/C++ - (-rdc=true)
j) CUDA C/C++ - Device - code generation - compute_75,sm_75
k) CUDA Linker - General - Additional Library directories added libtorch\lib
Currently I have single file ( did not got to Python file Yet) lltm_cuda_kernel.cu inside I have simple code
sources
https://www.youtube.com/watch?v=-eIkUnCLMFc&list=PLb9uFnQyeGTcKIHNUNUUuLbRhumAZd-fy&index=1
https://towardsdatascience.com/setting-up-a-c-project-in-visual-studio-2019-with-libtorch-1-6-ad8a0e49e82c
https://docs.microsoft.com/en-us/visualstudio/python/working-with-c-cpp-python-in-visual-studio?view=vs-2022
What am I doing wrong - is there a better way ? For some obscure reason I can achieve greater occupancy with my kernel using Visual strudio project than in the cmake - but I can compile it also with cmake if it needs to be so.
I was also trying to create a separate cpp file and there invoke kernel by including .cu file but cooperative group libraries gave a lot of compile errors in such situation.
Beta Was this translation helpful? Give feedback.
All reactions