2 Replies Latest reply on Oct 9, 2017 5:58 AM by lewissall@hotmail.com

    SPIR binary linkage with AMD APP

    lewissall@hotmail.com

      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

        • Re: SPIR binary linkage with AMD APP
          dipak

          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,