P4 to Git Change 1523412 by emankov@em-hsa on 2018/03/06 13:28:34
SWDEV-143465 - HSAIL - Compiler Lib - sync with legacy AMDIL libUtils Sync with CL 1522654 (AMDIL) [Reason] New Utility functions will be used in the upcomming changes in HSAIL path. [Testing] p4precheckin (clean): http://ocltc.amd.com:8111/viewModification.html?modId=98811&personal=true&init=1&tab=vcsModificationBuilds [Reviewd] by Stas: http://ocltc.amd.com/reviews/r/14345 Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#30 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#31 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#54 edit ... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#73 edit
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include "api/v0_8/aclValidation.h"
|
||||
#include "libUtils.h"
|
||||
#include "bif/bifbase.hpp"
|
||||
#include "utils/target_mappings.h"
|
||||
#include "utils/versions.hpp"
|
||||
#include "utils/options.hpp"
|
||||
#include <cstring>
|
||||
@@ -461,37 +460,6 @@ const char *getDeviceName(const aclTargetInfo &target)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*! Function that returns the TargetMapping for
|
||||
*the specific target device.
|
||||
*/
|
||||
static const TargetMapping& getTargetMapping(const aclTargetInfo &target)
|
||||
{
|
||||
switch(target.arch_id) {
|
||||
default:
|
||||
assert(!"Passed a device id that is invalid!");
|
||||
break;
|
||||
case aclX64:
|
||||
return X64TargetMapping[target.chip_id];
|
||||
break;
|
||||
case aclX86:
|
||||
return X86TargetMapping[target.chip_id];
|
||||
break;
|
||||
case aclHSAIL:
|
||||
return HSAILTargetMapping[target.chip_id];
|
||||
break;
|
||||
case aclHSAIL64:
|
||||
return HSAIL64TargetMapping[target.chip_id];
|
||||
break;
|
||||
case aclAMDIL:
|
||||
return AMDILTargetMapping[target.chip_id];
|
||||
break;
|
||||
case aclAMDIL64:
|
||||
return AMDIL64TargetMapping[target.chip_id];
|
||||
break;
|
||||
};
|
||||
return UnknownTarget;
|
||||
}
|
||||
|
||||
/*! Function that returns the library type from the TargetMapping table for
|
||||
*the specific target device id.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user