P4 to Git Change 1139843 by yaxunl@yaxunl_stg_win50 on 2015/04/10 21:13:05

ECR #304775 - Fix bug for loading SPIR 2.0 binary.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#176 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#191 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#58 edit


[ROCm/clr commit: 098284de7e]
Tento commit je obsažen v:
foreman
2015-04-11 08:10:38 -04:00
rodič 649351f1b9
revize 993206277c
3 změnil soubory, kde provedl 18 přidání a 4 odebrání
+2 -1
Zobrazit soubor
@@ -1052,7 +1052,8 @@ Program::initClBinary(char* binaryIn, size_t size)
aclBinaryOptions binOpts = {0};
binOpts.struct_size = sizeof(binOpts);
binOpts.elfclass
= (info().arch_id == aclX64 || info().arch_id == aclAMDIL64)
= (info().arch_id == aclX64 || info().arch_id == aclAMDIL64 ||
info().arch_id == aclHSAIL64)
? ELFCLASS64 : ELFCLASS32;
binOpts.bitness = ELFDATA2LSB;
binOpts.alloc = &::malloc;