gandissect icon indicating copy to clipboard operation
gandissect copied to clipboard

OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

Open miss1997yuan opened this issue 5 years ago • 3 comments
trafficstars

when i create the envs and run the script as mentioned, i always meet the problem like the title , i have googled the problem with no satisfied answer, would you mind giving me some suggestions ?

miss1997yuan avatar Oct 20 '20 02:10 miss1997yuan

The env sets up CUDA_HOME, because pytorch uses that to find the nvcc compiler (which isn't included with conda's installation of cuda, but which is included in nvidia's standard cuda toolkits). See the following lines

https://github.com/CSAILVision/gandissect/blob/master/script/setup_env.sh#L71-L72

But the choice of CUDA_HOME might be the wrong choice for your system - you can try editing the same file that is created by that line to change it to point to the parent directory that contains your installation of nvcc on your system.

On Mon, Oct 19, 2020 at 10:13 PM zhiyuan [email protected] wrote:

when i create the envs and run the script as mentioned, i always meet the problem like the title , i have googled the problem with no satisfied answer, would you mind giving me some suggestions ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CSAILVision/gandissect/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2MN2D27V62CW2NQ7FVCGDSLTW4FANCNFSM4SXIKOPQ .

davidbau avatar Oct 20 '20 16:10 davidbau

thanks ,i find the problem may be because of the version of CUDA, when i choose the proper cuda version , the problem is solved

miss1997yuan avatar Oct 25 '20 12:10 miss1997yuan

Is this only for linux? My system is Win, and I input torch.cuda.is_available() in anaconda then I got true. But I still have this trouble.

Henry-Xing avatar Apr 20 '21 18:04 Henry-Xing