Skip to content

SYCL_EXTERNAL + GENERIC #1242

Answered by illuhad
Kiguli asked this question in Q&A
Nov 13, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Having been reading around I understand this is to do with linking and a commonish issue with GPU code. Could I get some advice on how to go about adapting my project for GPU?

The issue is because something in your device code calls strlen() which is undefined on GPU.

strlen as far as I can tell only appears as one function in the Armadillo library and I don't believe I even use it.

The error means that strlen() is encountered somewhere in device code. If you don't use it, it might be a bug in Armadillo. Perhaps they try to do something special if they detect CUDA support from the compiler or similar.
I would recommend looking at the device code IR to understand where this is coming f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kiguli
Comment options

Answer selected by Kiguli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants