Open runxi607 opened 2 years ago
@runxi607 Did u find a way to fix it? facing a familiar problem now.
First make sure you do conda activate imaginaire
and then install the third-party packages.
I encountered similar "no such file or directory" errors when installing third-party packages.
My local environment is CUDA 11.6. After installing requirements_conda.yaml
I python=3.8 and pytorch=1.9 but with CUDA 11.4. So I checked if torch.cuda.available() which is False. I then went to my existing environment where pytorch can find gpu (python 3.9, cuda 11.3, pytorch 1.11) and added all the missing packages from requirements_conda.yaml
. Then it worked. I have exported a working environment below for anyone installing through conda as well.
Installation with Conda meets the followed error: g++: error: /lustre/home/rxli/MasterThesis/MasterThesis/imaginaire/imaginaire/third_party/upfirdn2d/build/temp.linux-x86_64-3.8/./src/upfirdn2d_cuda.o: No such file or directory g++: error: /lustre/home/rxli/MasterThesis/MasterThesis/imaginaire/imaginaire/third_party/upfirdn2d/build/temp.linux-x86_64-3.8/./src/upfirdn2d_cuda_kernel.o: No such file or directory error: command 'g++' failed with exit status 1