P4 to Git Change 1330411 by lmoriche@lmoriche_opencl_lc on 2016/10/24 01:16:07
SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL - Add Windows support Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.def.in#16 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/common/win32/compat.h#4 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#38 edit ... //depot/stg/opencl/drivers/opencl/make/clang.git/include/build/Makefile.include#4 edit ... //depot/stg/opencl/drivers/opencl/make/llvm.git/win32/include/llvm/Config/config.h#2 edit ... //depot/stg/opencl/drivers/opencl/opencldefs#190 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/top.hpp#24 edit
Этот коммит содержится в:
@@ -7,6 +7,7 @@
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
#include <iterator>
|
||||
#include <cassert>
|
||||
#include "options.hpp"
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
|
||||
#include "os/os.hpp"
|
||||
#include "device/pal/paldevice.hpp"
|
||||
@@ -242,9 +243,14 @@ LightningProgram::compileImpl(
|
||||
driverOptions.append(optLevel.str());
|
||||
|
||||
// Set the machine target
|
||||
#if 0
|
||||
std::ostringstream mCPU;
|
||||
mCPU << " -mcpu=gfx" << dev().hwInfo()->gfxipVersion_;
|
||||
driverOptions.append(mCPU.str());
|
||||
#else
|
||||
driverOptions.append(" -mcpu=");
|
||||
driverOptions.append(dev().hwInfo()->machineTarget_);
|
||||
#endif
|
||||
|
||||
driverOptions.append(options->llvmOptions);
|
||||
driverOptions.append(hsailOptions());
|
||||
|
||||
@@ -1440,8 +1440,6 @@ GetKernelAddrQual(const amd::hsa::code::KernelArg::Metadata& lcArg)
|
||||
static inline HSAIL_DATA_TYPE
|
||||
GetKernelDataType(const amd::hsa::code::KernelArg::Metadata& lcArg)
|
||||
{
|
||||
aclArgDataType dataType;
|
||||
|
||||
if (lcArg.Kind() != AMDGPU::RuntimeMD::KernelArg::ByValue) {
|
||||
return HSAIL_DATATYPE_ERROR;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <sstream>
|
||||
#include <cstdio>
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include "utils/options.hpp"
|
||||
#include "hsa.h"
|
||||
#include "hsa_ext_image.h"
|
||||
@@ -1205,9 +1206,14 @@ LightningProgram::linkImpl(amd::option::Options *options)
|
||||
std::string codegenOptions(options->llvmOptions);
|
||||
|
||||
// Set the machine target
|
||||
#if 0
|
||||
std::ostringstream mCPU;
|
||||
mCPU << " -mcpu=gfx" << dev().hwInfo()->gfxipVersion_;
|
||||
codegenOptions.append(mCPU.str());
|
||||
#else
|
||||
codegenOptions.append(" -mcpu=");
|
||||
codegenOptions.append(dev().hwInfo()->machineTarget_);
|
||||
#endif
|
||||
|
||||
// Set the -O#
|
||||
std::ostringstream optLevel;
|
||||
|
||||
@@ -10,7 +10,46 @@
|
||||
#endif /*ATI_ARCH_ARM*/
|
||||
|
||||
#ifdef _WIN32
|
||||
# define NOMINMAX 1
|
||||
// Disable unneeded features of <windows.h> for efficiency.
|
||||
# define NOGDICAPMASKS
|
||||
# define NOVIRTUALKEYCODES
|
||||
# define NOWINMESSAGES
|
||||
# define NOWINSTYLES
|
||||
# define NOSYSMETRICS
|
||||
# define NOMENUS
|
||||
# define NOICONS
|
||||
# define NOKEYSTATES
|
||||
# define NOSYSCOMMANDS
|
||||
# define NORASTEROPS
|
||||
# define NOSHOWWINDOW
|
||||
# define OEMRESOURCE
|
||||
# define NOATOM
|
||||
# define NOCLIPBOARD
|
||||
# define NOCOLOR
|
||||
# define NOCTLMGR
|
||||
# define NODRAWTEXT
|
||||
# define NOGDI
|
||||
# define NOKERNEL
|
||||
# define NOMB
|
||||
# define NOMEMMGR
|
||||
# define NOMETAFILE
|
||||
# define NOMINMAX
|
||||
# define NOOPENFILE
|
||||
# define NOSCROLL
|
||||
# define NOSERVICE
|
||||
# define NOSOUND
|
||||
# define NOTEXTMETRIC
|
||||
# define NOWH
|
||||
# define NOWINOFFSETS
|
||||
# define NOCOMM
|
||||
# define NOKANJI
|
||||
# define NOHELP
|
||||
# define NOPROFILER
|
||||
# define NODEFERWINDOWPOS
|
||||
# define NOMCX
|
||||
# ifndef NOCRYPT
|
||||
# define NOCRYPT
|
||||
# endif
|
||||
# define WIN32_LEAN_AND_MEAN 1
|
||||
#endif /*_WIN32*/
|
||||
|
||||
@@ -50,7 +89,9 @@ typedef __int32 ssize_t;
|
||||
#ifdef _WIN32
|
||||
# define SIZE_T_FMT "%Iu"
|
||||
# define PTR_FMT "0x%p"
|
||||
# define snprintf sprintf_s
|
||||
# if _MSC_VER < 1900
|
||||
# define snprintf sprintf_s
|
||||
# endif
|
||||
#else /*!_WIN32*/
|
||||
# define SIZE_T_FMT "%zu"
|
||||
# define PTR_FMT "%p"
|
||||
|
||||
Ссылка в новой задаче
Block a user