From d604c03916309372cf3dab429e3a8545cf21af09 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 18 Nov 2014 13:28:05 -0500 Subject: [PATCH] P4 to Git Change 1098110 by mbareghe@mbareghe_staging_win30 on 2014/11/18 13:21:17 EPR #409798 - clCompileProgram and clLinkProgram regression for SPIR - set the correct IR type while extracting from binary (aclSPIR, aclLLVMIR) Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#183 edit --- rocclr/runtime/device/gpu/gpuprogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/gpu/gpuprogram.cpp b/rocclr/runtime/device/gpu/gpuprogram.cpp index ab928bdf02..dcd9562bcb 100644 --- a/rocclr/runtime/device/gpu/gpuprogram.cpp +++ b/rocclr/runtime/device/gpu/gpuprogram.cpp @@ -739,7 +739,7 @@ NullProgram::linkImpl(const std::vector& inputPrograms, size_t size = 0; const void* llvmir = aclExtractSection(dev().compiler(), libs[0], - &size, aclLLVMIR, &err); + &size, llvmBinaryIsSpir[0]?aclSPIR:aclLLVMIR, &err); if (err != ACL_SUCCESS) { LogWarning("aclExtractSection failed"); break;