CUDALibrarySamples icon indicating copy to clipboard operation
CUDALibrarySamples copied to clipboard

cuTENSOR/contraction.cu is compiled successfully, but the object file doesn't work.

Open Y-jiji opened this issue 2 years ago • 2 comments

Trouble

Compilation seems successful, but the 'contraction.exe' file doesn't give any output. image

OS

Windows 10 21H1

NVCC

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Cuda compilation tools, release 11.7, V11.7.64

Y-jiji avatar Jul 03 '22 13:07 Y-jiji

Hey so you might want to check the compute capability of your GPU (I'm not sure if that is the problem, but it might be)--cutensor only works with compute capability 6.0 or greater, according to https://docs.nvidia.com/cuda/cutensor/user_guide.html

You can use either the command line or the Windows PC settings to find out which GPU you have, and then check what the compute capability of your GPU is here: https://developer.nvidia.com/cuda-gpus

When I ran the code on the A100 (compute capability 8.0) it ran smoothly just by copy pasting the code on the website into a file and compiling and running it like you've done in your screnshot); but when I tried running it on RTX (compute capability 3.5), it ran partially and then threw a runtime error.

nishqasharma avatar Jul 21 '22 12:07 nishqasharma

Hi @Y-jiji ,

Are you still experiencing this issue? Typically, when you see no output it indicates an issue with your CUDA or compiler setup where some DLL cannot be found. Does any kind of message box pop up when you run the code?

To further assist you, it would be good to know what GPU you are trying to run on, which driver you are using, and what your PATH environment variable looks like.

v0i0 avatar Jul 13 '23 23:07 v0i0

Please reopen if this issue is still valid for you.

JanuszL avatar Sep 17 '24 07:09 JanuszL