P4 to Git Change 1402945 by lmoriche@lmoriche_palamida on 2017/04/26 16:03:39

SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment

Affected files ...

... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/appprofile.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#1 add
... //depot/stg/opencl/drivers/opencl/tools/bc2h/CMakeLists.txt#1 add
Tento commit je obsažen v:
foreman
2017-04-26 16:10:30 -04:00
rodič d2ca5e309d
revize 8e140c9485
5 změnil soubory, kde provedl 232 přidání a 3 odebrání
+15 -2
Zobrazit soubor
@@ -6,10 +6,21 @@
#include "os/os.hpp"
#include "utils/flags.hpp"
#include "appprofile.hpp"
#if !defined(WITH_LIGHTNING_COMPILER)
#include "adl.h"
#endif // !defined(WITH_LIGHTNING_COMPILER)
#include <cstdlib>
#include <cstring>
#if defined(WITH_LIGHTNING_COMPILER)
typedef void* ADLApplicationProfile;
int SearchProfileOfAnApplication(const wchar_t* fileName, ADLApplicationProfile** lppProfile)
{
return 0;
}
#define __stdcall
#endif // defined(WITH_LIGHTNING_COMPILER)
#ifdef BRAHMA
extern int SearchProfileOfAnApplication(const wchar_t* fileName,
ADLApplicationProfile** lppProfile);
@@ -21,7 +32,7 @@ static void* __stdcall adlMallocCallback(int n) { return malloc(n); }
namespace amd {
#ifndef BRAHMA
#if !defined(BRAHMA) && !defined(WITH_LIGHTNING_COMPILER)
class ADL {
public:
@@ -157,7 +168,7 @@ bool AppProfile::init() {
bool AppProfile::ParseApplicationProfile() {
ADLApplicationProfile* pProfile = NULL;
#ifndef BRAHMA
#if !defined(BRAHMA) && !defined(WITH_LIGHTNING_COMPILER)
amd::ADL* adl = new amd::ADL;
if ((adl == NULL) || !adl->init()) {
@@ -183,6 +194,7 @@ bool AppProfile::ParseApplicationProfile() {
return false;
}
#if !defined(WITH_LIGHTNING_COMPILER)
PropertyRecord* firstProperty = pProfile->record;
uint32_t valueOffset = 0;
const int BUFSIZE = 1024;
@@ -224,6 +236,7 @@ bool AppProfile::ParseApplicationProfile() {
}
free(pProfile);
#endif // !defined(WITH_LIGHTNING_COMPILER)
return true;
}
}