Skip to content

Separate Compilation and Linking of CUDA C++ Device Code

License

Notifications You must be signed in to change notification settings

fwyzard/cuda-linking

Repository files navigation

Separate Compilation and Linking of CUDA C++ Device Code

See the blog post for information.

Code forked from the GitHub repository.

Quick instructions

# clone the repository
git clone git@github.com:fwyzard/cuda-linking.git
cd cuda-linking

# build and link with nvcc
make clean nvcc
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH ./app

# build with nvcc, link explicitly with nvlink/fatbin
make clean nvlink
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH ./app

# build with clang, link explicitly with nvlink/fatbin
make clean clang
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH ./app

About

Separate Compilation and Linking of CUDA C++ Device Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published