Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

hipDeviceGetUuid yields link error when compiling with nvcc #51

Open
Snektron opened this issue Oct 7, 2022 · 0 comments
Open

hipDeviceGetUuid yields link error when compiling with nvcc #51

Snektron opened this issue Oct 7, 2022 · 0 comments

Comments

@Snektron
Copy link

Snektron commented Oct 7, 2022

#include <hip/hip_runtime.h>

int main() {
    hipUUID_t uuid;
    (void) hipDeviceGetUuid(&uuid, 0);
}

Compiling the above with nvcc yields the following error:

$ nvcc -o test ./test.hip -x cu
ld: /tmp/tmpxft_0002f12e_00000000-11_test.o: in function `main':
tmpxft_0002f12e_00000000-6_test.cudafe1.cpp:(.text.startup+0x1a): undefined reference to `cuDeviceGetUuid'
collect2: error: ld returned 1 exit status
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant