We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firstly, building CuPy on ROCm requires additional CFLAGS:
export CFLAGS="-I/opt/rocm/include/hipblas -I/opt/rocm/include/hipsparse -I/opt/rocm/include/hipfft -I/opt/rocm/include/rocsolver -I/opt/rocm/include/rccl"
But pip install cupy still fails after several minutes:
pip install cupy
error: Command "x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/opt/rocm/include/hipblas -I/opt/rocm/include/hipsparse -I/opt/rocm/include/hipfft -I/opt/rocm/include/rocsolver -I/opt/rocm/include/rccl -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D_FORCE_INLINES=1 -DCUPY_USE_HIP=1 -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -DCUPY_CACHE_KEY=d4770f4cb60796d63570de639682672dffe05289 -DCUPY_CUB_VERSION_CODE=300000 -I/opt/rocm/hipfft/include -I/opt/rocm/include/hipcub -I/tmp/pip-install-0x7cot68/cupy_f9bce70497514fa68cfe3560b85351d4/cupy/_core/include -I/opt/rocm/include -I/opt/rocm/include/hip -I/opt/rocm/include/rocrand -I/opt/rocm/include/hiprand -I/opt/rocm/include/roctracer -I/usr/include/python3.10 -c cupy_backends/cuda/api/runtime.cpp -o build/temp.linux-x86_64-3.10/cupy_backends/cuda/api/runtime.o -std=c++11" failed with exit status 1
(It's strange that cupy_backends/cuda/api/runtime.cpp is compiled with x86_64-linux-gnu-gcc)
cupy_backends/cuda/api/runtime.cpp
x86_64-linux-gnu-gcc
export CFLAGS="-I/opt/rocm/include/hipblas -I/opt/rocm/include/hipsparse -I/opt/rocm/include/hipfft -I/opt/rocm/include/rocsolver" export CUPY_INSTALL_USE_HIP=1 export ROCM_HOME=/opt/rocm export HCC_AMDGPU_TARGET=gfx906 sudo -E pip3 install cupy
Source (pip install cupy)
Not available
pip-cupy.log
The text was updated successfully, but these errors were encountered:
I am facing more or less the same problem but my compilation attempt ends up with a different error.
To reproduce
export HCC_AMDGPU_TARGET=gfx803 export CUPY_INSTALL_USE_HIP=1 export ROCM_HOME=/opt/rocm-6.0.2 export CFLAGS="-I/opt/rocm-6.0.2/include/hipblas -I/opt/rocm-6.0.2/include/hipsparse -I/opt/rocm-6.0.2/include/hipfft -I/opt/rocm-6.0.2/include/rocsolver -I/opt/rocm-6.0.2/include/rccl" pip install cupy --log pip-cupy.log
(notice that I added the include path for rccl into CFLAGS)
rccl
CFLAGS
Additional Information
Thank you!
Sorry, something went wrong.
I added the missing include dirs ininstall_build.py and run python setup.py install but I still get compilation errors:
install_build.py
python setup.py install
errors.log output.log
kmaehashi
No branches or pull requests
Description
Firstly, building CuPy on ROCm requires additional CFLAGS:
But
pip install cupy
still fails after several minutes:(It's strange that
cupy_backends/cuda/api/runtime.cpp
is compiled withx86_64-linux-gnu-gcc
)To Reproduce
Installation
Source (
pip install cupy
)Environment
Not available
Additional Information
pip-cupy.log
The text was updated successfully, but these errors were encountered: