DINO icon indicating copy to clipboard operation
DINO copied to clipboard

compile cuda error

Open nomurakeiya opened this issue 3 years ago • 5 comments

thanks for your repo!

I have an errror while compiling CUDA. How can I fix it?

os:Win11 python:3.8.8 cuda:11.4


cd models/dino/ops python setup.py build install ↓ running build running build_py running build_ext C:\Users\nomun\mysystem.venv\py388-DINO\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] The system cannot find the file specified

thanks.

nomurakeiya avatar Jul 22 '22 01:07 nomurakeiya

Hey, I notice you are using Win11 os. We did not try compiling on Win11. Do your win11 have 4 or 8 gpus? Otherwise, you can not train this model. If you are sure your win11 has enough gpus, you can refer to Deformable DETR to see if there any suggestions in compiling win11.

FengLi-ust avatar Jul 22 '22 02:07 FengLi-ust

@FengLi-ust thanks for your commnent. yes, I'm using Win11.

My PC has a NVIDIA RTX3090. Does it enough for inference single image?Should I have 4 or 8 GPUS?

nomurakeiya avatar Jul 22 '22 05:07 nomurakeiya

Yes, it is enough for inference.

FengLi-ust avatar Jul 22 '22 05:07 FengLi-ust

@FengLi-ust thanks I'm relieved to hear that. But RTX3090 is'nt enough for "training"?

And now, I'm using VS2019. Is it possible that it may become the cause of compile error?

nomurakeiya avatar Jul 22 '22 06:07 nomurakeiya

now I'm using VS2017 on Win11.

Add path to cl.exe and I checked I can use "cl" command. スクリーンショット 2022-07-28 062055

I trying to compile CUDA, but "python setup.py build install" command doesn't work. スクリーンショット 2022-07-28 062359

Meaning of the last line is "The specified file could not be found". Please help me!!

thanks

nomurakeiya avatar Jul 27 '22 21:07 nomurakeiya