NVIDIA / apex

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

Unable to install Apex on Linux(debian) with CUDA 12.1 and torch 2.2.2 #1817

Open SamitM1 opened 4 months ago

SamitM1 commented 4 months ago

When i run the command: python setup.py install --cuda_ext --cpp_ext I get the error: 'RuntimeError: Error compiling objects for extension'

I also tried running this command: pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" git+https://github.com/NVIDIA/apex.git

I receive a series of errors like this: FAILED: /root/apex/build/temp.linux-x86_64-cpython-310/csrc/multi_tensor_l2norm_kernel.o

I have tried almost every single solution on github and stackoverflow, so I would greatly appreciate some help with this.

liaosnow commented 4 months ago

meet same problem

KihongK commented 4 months ago

meet same problem