P4 to Git Change 1321838 by smekhano@stas-mwamba-rocm-hsa on 2016/10/03 14:09:41

SWDEV-104316 - set correct target for ROCm/HSA
	Reviewed by Laurent Morichetti

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#7 edit
This commit is contained in:
foreman
2016-10-03 14:21:28 -04:00
parent 109eabeca3
commit 9c5cfb0551
2 changed files with 12 additions and 14 deletions
+2 -5
View File
@@ -252,11 +252,8 @@ HSAILProgram::compileImpl(
acl_error errorCode;
aclTargetInfo target;
//Defaulting to bonaire
//Todo (sramalin) : Query the device for asic type-
//Defaulting to Bonair for now.
target = g_complibApi._aclGetTargetInfo(LP64_SWITCH("hsail","hsail64"), "Bonaire",
&errorCode);
target = g_complibApi._aclGetTargetInfo(LP64_SWITCH("hsail","hsail64"),
dev().deviceInfo().complibTarget_, &errorCode);
//end if asic info is ready
// We dump the source code for each program (param: headers)