NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.34k stars 1.39k forks source link

it didn't use correct nvcc path when installing apex #1657

Closed yz103 closed 1 year ago

yz103 commented 1 year ago

which nvcc show that the path for nvcc is /usr/local/cuda/bin/nvcc

when running "python setup.py install --cuda_ext --cpp_ext "

image

how could I solve this problem? Thank you very much for your help.

crcrpar commented 1 year ago

Would you know the correct path to nvcc installed into your environment?

At glance that duplicate "bin" looks not good though.

yz103 commented 1 year ago

Yeah, the path to nvcc is /usr/local/cuda/bin/nvcc

I know something is messed up for the nvcc path but haven't figured it out yet.

On Mon, May 8, 2023 at 11:36 AM Masaki Kozuki @.***> wrote:

Would you know the correct path to nvcc installed into your environment?

At glance that duplicate "bin" looks not good though.

— Reply to this email directly, view it on GitHub https://github.com/NVIDIA/apex/issues/1657#issuecomment-1537691901, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIYSXRSE6PKZODNMVBDNHDXFBS5JANCNFSM6AAAAAAXZKSDWU . You are receiving this because you authored the thread.Message ID: @.***>

-- Yiwei Zhu Yantai, China Tel: +86 18939820651 Website: https://yz103.github.io/yiwwwy/

crcrpar commented 1 year ago

so the installed path itself looks quite common.

Could you check some environment variables that could have something to do with, for example, CUDA_HOME and PATH are correctly set?

yz103 commented 1 year ago

Thank you very much for your comments.

echo $CUDA_HOME /usr/local/cuda/bin echo $PATH /home/dell/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/home/dell/anaconda3/envs/retmol/bin:/home/dell/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/lib64:/usr/local/cuda/extras/CPUTI/lib64:/usr/local/cuda/bin:/usr/local/cuda/lib64:/usr/local/cuda/extras/CPUTI/lib64:/usr/local/cuda/bin

On Mon, May 8, 2023 at 2:24 PM Masaki Kozuki @.***> wrote:

so the installed path itself looks quite common.

Could you check some environment variables that could have something to do with, for example, CUDA_HOME and PATH are correctly set?

— Reply to this email directly, view it on GitHub https://github.com/NVIDIA/apex/issues/1657#issuecomment-1537821290, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIYSXTDJOEV5FPOJEU3YITXFCGQLANCNFSM6AAAAAAXZKSDWU . You are receiving this because you authored the thread.Message ID: @.***>

-- Yiwei Zhu Yantai, China Tel: +86 18939820651 Website: https://yz103.github.io/yiwwwy/

crcrpar commented 1 year ago

could you try CUDA_HOME=/usr/local/cuda?

yz103 commented 1 year ago

Yeah it can find cuda now. Thank you very much for your help.

Best wishes, Yiwei

On Mon, May 8, 2023 at 11:41 PM Masaki Kozuki @.***> wrote:

could you try CUDA_HOME=/usr/local/cuda?

— Reply to this email directly, view it on GitHub https://github.com/NVIDIA/apex/issues/1657#issuecomment-1538605830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIYSXRBIW3P4LE3K667I7LXFEHZ3ANCNFSM6AAAAAAXZKSDWU . You are receiving this because you authored the thread.Message ID: @.***>

-- Yiwei Zhu Yantai, China Tel: +86 18939820651 Website: https://yz103.github.io/yiwwwy/