Skip to content
New issue

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

[Issue]: Bad parsing of nvcc command line arguments by hipcc #226

Open
neworderofjamie opened this issue Dec 9, 2024 · 0 comments
Open

Comments

@neworderofjamie
Copy link

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 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

  1. 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
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant