cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

lewissall
Adept I

SPIR binary linkage with AMD APP

Hi,

Can AMD APP link SPIR binaries? The APP User Guide mentions clCreateProgramWithBinary and clBuildProgram but not clCompileProgram and clLinkProgram in section G.1. I can't tell if these will work.

My SPIR is converted from SPIR-V using the LLVM tools.

Thanks a lot,

Lewis

0 Likes
2 Replies
dipak
Big Boss

First of all, a compatible driver needs to be installed to get support for SPIR. APP SDK provides necessary header files, libraries etc. that you require to build an OpenCL program. It also provides a CPU runtime, but not any GPU package. That's why, you need to install the compatible driver first to run your application on GPU devices.

Now coming to your question about replacing clBuildProgram with clCompileProgram and clLinkProgram. Yes, you can split the steps provided all the inputs and flags are set correctly. For example, set the flag "-x spir" to clCompileProgram, not to clLinkProgram.

Regards,

0 Likes

Awesome, yeah SPIR works with clBuildProgram.

Appreciated

0 Likes