Skip to content

Compiling for Jetson(temporal solution) #133

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

Open
stevedanomodolor opened this issue Feb 21, 2025 · 0 comments
Open

Compiling for Jetson(temporal solution) #133

stevedanomodolor opened this issue Feb 21, 2025 · 0 comments

Comments

@stevedanomodolor
Copy link

I was trying to get the cupoch library to work for a jetson nano with Cuda 12.16. The only option was to compile it from source with minor changes on the source code. The issue seem to be due to some changes made in the abi of nvidia library. More info can be found in this issue. NVIDIA/cccl#2737.

In order for it to work, I had to make some changes,

  • Include the following in the main cmakelist as follows:
# Specify the THRUST_WRAPPED_NAMESPACE and CUB_WRAPPED_NAMESPACE variables
set(THRUST_WRAPPED_NAMESPACE wrapped_thrust)
set(CUB_WRAPPED_NAMESPACE wrapped_cub)

# Add definitions
add_definitions(-DTHRUST_WRAPPED_NAMESPACE=${THRUST_WRAPPED_NAMESPACE})
add_definitions(-DCUB_WRAPPED_NAMESPACE=${CUB_WRAPPED_NAMESPACE})
  • Change all thrust:: namespace to ::wrapped_thrust::thrust.
  • In locations where the following was defined-> namespace thrust, I change it to namespace wrapped_thrust::thrust.

I am not really happy with the changes in the source file, but it is temporal, if you get any elegant solution, it would be nice.

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