lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

CUDA_HOME error? AssertionError: CUDA_HOME does not exist, unable to compile CUDA op(s)

Open Mi-Peng opened this issue 2 years ago • 4 comments

Hi, I try the example code of vit and I get the error : AssertionError: CUDA_HOME does not exist, unable to compile CUDA op(s) ,located at source code. Did I miss something ? How can i repair the code or the processing?

Mi-Peng avatar Aug 20 '22 18:08 Mi-Peng

Have you installed torch and CUDA correctly, the lightseq can only run torch with CUDA support.

Taka152 avatar Aug 30 '22 06:08 Taka152

Have you installed torch and CUDA correctly, the lightseq can only run torch with CUDA support.

Yes. I have installed pytorch 1.11.0+cuda11.3

Mi-Peng avatar Sep 04 '22 14:09 Mi-Peng

Maybe you can try 1.8.0 and 1.10.0, we have tested on these two version.

Taka152 avatar Sep 06 '22 11:09 Taka152

Same problem with pytorch 2.1.0 + cuda11. Any suggestion?

SysuJayce avatar Dec 05 '23 09:12 SysuJayce