I read the documentation about Dynamic linking of device code, which describe a scenario of using functions defined in a pre-compiled device image provided by the user.
May I know what are the compiler commands for this scenario? The documentation says that
user adds device image with definition of LibDeviceFunc to the fat object via special compiler option (like -fsycl-add-targets
But I don't understand how to do that in practice. Could you provide an example for the compilation command? Also, what if the pre-compiled device image is for an architecture different from the host's? Does the dynamic linking of device code still work in the case? Thank you!
I read the documentation about Dynamic linking of device code, which describe a scenario of using functions defined in a pre-compiled device image provided by the user.
May I know what are the compiler commands for this scenario? The documentation says that
But I don't understand how to do that in practice. Could you provide an example for the compilation command? Also, what if the pre-compiled device image is for an architecture different from the host's? Does the dynamic linking of device code still work in the case? Thank you!