Skip to content

Include user link flags in device links#416

Open
JamesMBartlett wants to merge 1 commit intobazel-contrib:mainfrom
JamesMBartlett:james/include_user_link_flags_in_device_link
Open

Include user link flags in device links#416
JamesMBartlett wants to merge 1 commit intobazel-contrib:mainfrom
JamesMBartlett:james/include_user_link_flags_in_device_link

Conversation

@JamesMBartlett
Copy link

I was seeing undefined reference errors when trying to device link a cuda file with NVSHMEM, eg.:

nvlink error   : Undefined reference to 'nvshmemi_device_state_d'

This PR adds user link flags to the device link command line, so that eg. -lnvshmem can be passed down to the device linking, and it fixes the error I encountered above.

Signed-off-by: James Bartlett <james@gimletlabs.ai>
@cloudhan
Copy link
Collaborator

Sorry for the delay. Would you mind porting it to nvcc_msvc and clang config?

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

Successfully merging this pull request may close these issues.

2 participants

Comments