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
nvidia-hpc-sdk toolchain extra libs support #4949
Comments
you can open a pr to add a then you can use it in your project. add_requires("nvidia-hpc-sdk")
target("test")
add_files("src/*.cpp")
add_packages("nvidia-hpc-sdk") |
see https://xmake.io/#/package/local_package?id=find-packages-from-cmake But it's not always reliable. |
So it is unreliable and you need to debug and configure various parameters yourself. I don't have hpc-sdk environment.
I would recommend this option even more. |
Is your feature request related to a problem? Please describe.
I'm using xmake to build a
nvidia-hpc-sdk
application. Basically I followed this issue to get It working.Take a look at the module file of the nvhpc sdk: https://gist.github.com/Tomcat-42/f2256ee49fda99f16e56f2ac44a3674a .
It defines the include dirs at the CPATH env var:
and the corresponding libs paths at LD_LIBRARY_PATH:
The issue is: using the toolchain config cuda, I'm not able to include/link these extra libs in my code.
Describe the solution you'd like
When using the
nvidia-hpc-sdk
toolchain, I would like to add all those libraries automatically to the lib and include path.Describe alternatives you've considered
I see to clearly distincts possible approaches:
cuda
toolchain to handle these extra libs.nvhpc
, that would handle this.Additional context
I'm opened this issue to discuss with you @waruqi the state of the
nvidia-hpc-sdk
support in xmake, and the possible improvements that could be done.Later, when we decide the best approach, I will open a PR to implement it.
The text was updated successfully, but these errors were encountered: