You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to port some CUDA code to HIP and the --compiler-options "-fPIC"command line arguments seems to be being parsed incorrectly on the nvidia platform and not being passed through to nvcc
Operating System
Ubuntu 20.04.6 LTS (Focal Fossa)"
CPU
Intel(R) Xeon(R) Gold 6134 CPU
GPU
2*NVIDIA RTX A5000
ROCm Version
ROCm 6.2.4
ROCm Component
HIPCC
Steps to Reproduce
Run command like /opt/rocm/bin/hipcc -dc -x cu -arch sm_86 -I"/opt/rocm/include" -std=c++11 --compiler-options -fPIC file.cc where file.cc is a HIP source
Observe that hipcc tries to execute /usr/local/cuda/bin/nvcc -Wno-deprecated-gpu-targets -lcuda -lcudart -L/usr/local/cuda/lib64 -dc -x cu -arch sm_86 -I/opt/rocm/include -std=c++11 --compiler-options file.cc i.e. compiler-options is parsed incorrectly
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
I can work around this by setting NVCC_APPEND_FLAGS="--compiler-options -fPIC" but this is annoying
The text was updated successfully, but these errors were encountered:
Problem Description
I'm trying to port some CUDA code to HIP and the
--compiler-options "-fPIC"
command line arguments seems to be being parsed incorrectly on thenvidia
platform and not being passed through tonvcc
Operating System
Ubuntu 20.04.6 LTS (Focal Fossa)"
CPU
Intel(R) Xeon(R) Gold 6134 CPU
GPU
2*NVIDIA RTX A5000
ROCm Version
ROCm 6.2.4
ROCm Component
HIPCC
Steps to Reproduce
/opt/rocm/bin/hipcc -dc -x cu -arch sm_86 -I"/opt/rocm/include" -std=c++11 --compiler-options -fPIC file.cc
where file.cc is a HIP source/usr/local/cuda/bin/nvcc -Wno-deprecated-gpu-targets -lcuda -lcudart -L/usr/local/cuda/lib64 -dc -x cu -arch sm_86 -I/opt/rocm/include -std=c++11 --compiler-options file.cc
i.e. compiler-options is parsed incorrectly(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
I can work around this by setting
NVCC_APPEND_FLAGS="--compiler-options -fPIC"
but this is annoyingThe text was updated successfully, but these errors were encountered: