P4 to Git Change 1204812 by nhaustov@nhaustov_hsa on 2015/10/28 09:08:46

SWDEV-79309 - Remove dependency on scwrapper.

	Testing: smoke, pre-checkin

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#36 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#57 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#12 edit


[ROCm/clr commit: 99906c0e05]
Этот коммит содержится в:
foreman
2015-10-28 09:18:54 -04:00
родитель 7ef3b700cb
Коммит fb014423c9
2 изменённых файлов: 1 добавлений и 9 удалений
-7
Просмотреть файл
@@ -23,7 +23,6 @@
#include "amdil_be.hpp"
#include "hsail_be.hpp"
#include "x86_be.hpp"
#include "scCompileBase.h"
#include "bif/bifbase.hpp"
#include "os/os.hpp"
#include "utils/bif_section_labels.hpp"
@@ -825,12 +824,6 @@ HSAILAsmPhase(aclLoaderData *data,
if (acl == NULL) {
error_code = ACL_CODEGEN_ERROR;
}
SC_EXPORT_FUNCTIONS* scef = reinterpret_cast<SC_EXPORT_FUNCTIONS*>(acl->CL()->scAPI.scef);
if (scef[SC_HSAIL].SCCreate == NULL) {
// Fail if table has not been initialized, probably because dynamic SC has not been loaded.
// In this case, aclSCLoaderInit returns ACL_SUCCESS.
return ACL_CODEGEN_ERROR;
}
if (acl->finalize()) {
error_code = ACL_CODEGEN_ERROR;
}
+1 -2
Просмотреть файл
@@ -8,7 +8,6 @@
#include "utils/target_mappings.h"
#include "utils/versions.hpp"
#include "utils/options.hpp"
#include "backends/gpu/scwrapper/devState.h"
#include <cstring>
#include "bif/bif.hpp"
extern aclBinary* constructBinary(size_t struct_version,
@@ -405,7 +404,7 @@ aclutInsertKernelStatistics(aclCompiler *cl, aclBinary *bin)
else {
aclGetKstatsSI(isa, kstats);
}
kstats.wavefrontsize = amdcl::GetWavefrontSize(family, chip);
kstats.wavefrontsize = 64; // FIXME: Hardcoded for now.
const oclBIFSymbolStruct* symbol = findBIF30SymStruct(symKernelStats);
assert(symbol && "symbol not found");
std::string symName = std::string(symbol->str[PRE]) + std::string(symbol->str[POST]);