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

nvcc linker issue? #90

Open
jamesyoungdigital opened this issue Nov 28, 2018 · 3 comments
Open

nvcc linker issue? #90

jamesyoungdigital opened this issue Nov 28, 2018 · 3 comments

Comments

@jamesyoungdigital
Copy link

nvcc -dlink -o cuda_libs.o *.cu.o -lcudadevrt -lcudart
nvlink warning : SM Arch ('sm_30') not found in 'CudaAtomicList.cu.o'
nvlink warning : SM Arch ('sm_30') not found in 'CudaDeviceKeys.cu.o'
nvlink warning : SM Arch ('sm_30') not found in 'CudaHashLookup.cu.o'
nvlink warning : SM Arch ('sm_30') not found in 'CudaKeySearchDevice.cu.o'
nvlink warning : SM Arch ('sm_30') not found in 'cudabridge.cu.o'

FYI I built with COMPUTE_CAP=70, so maybe it's not supposed to find sm_30 in the object files.

@prodnet
Copy link

prodnet commented Nov 28, 2018

What is this COMPUTE_CAP=70 ?

@jamesyoungdigital
Copy link
Author

jamesyoungdigital commented Nov 28, 2018 via email

@brichard19
Copy link
Owner

Nvcc by default assumes sm_30 architecture.

The warning goes away if you pass ${NVCCFLAGS}, which contains the arch flags.

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

3 participants