P4 to Git Change 1220218 by yaxunl@yaxunl_stg_win50 on 2015/12/11 16:35:30

SWDEV-83705 - [SPIRV] Fix failure in SPIR-V conformance test compile_and_link.

	e_rawfile of elf needs to be updated after LLVM section is inserted into the elf containing SPIR-V.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#87 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/acl.h#11 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/bifbase.cpp#54 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/bifbase.hpp#24 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#215 edit


[ROCm/clr commit: f5acde74f7]
Этот коммит содержится в:
foreman
2015-12-11 16:46:21 -05:00
родитель 2002249db8
Коммит a3dfe7e457
5 изменённых файлов: 21 добавлений и 1 удалений
+3
Просмотреть файл
@@ -1821,6 +1821,9 @@ HSAILProgram::linkImpl(
buildLog_ += "Error while linking: Could not load SPIR-V" ;
return false;
}
// Need to update elf raw file since it will be used by
// aclCreateFromBinary.
aclUpdateRawFile(binaryElf_);
} else {
buildLog_ +="Error while linking : \
Invalid binary (Missing LLVMIR section)" ;