P4 to Git Change 1501660 by gandryey@gera-w8 on 2018/01/09 14:04:56
SWDEV-79445 - OCL generic changes and code clean-up - Code style clean-up. No functional changes. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#127 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#164 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#321 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#236 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#412 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#142 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#20 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevicegl.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#42 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#53 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#45 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#69 edit
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -56,11 +56,9 @@ bool HSAILProgram::compileImpl(const std::string& sourceCode,
|
||||
|
||||
// Find the temp folder for the OS
|
||||
std::string tempFolder = amd::Os::getTempPath();
|
||||
std::string tempFileName = amd::Os::getTempFileName();
|
||||
|
||||
// Iterate through each source code and dump it into tmp
|
||||
std::fstream f;
|
||||
std::vector<std::string> headerFileNames(headers.size());
|
||||
std::vector<std::string> newDirs;
|
||||
for (size_t i = 0; i < headers.size(); ++i) {
|
||||
std::string headerPath = tempFolder;
|
||||
@@ -84,7 +82,6 @@ bool HSAILProgram::compileImpl(const std::string& sourceCode,
|
||||
newDirs.push_back(headerPath);
|
||||
}
|
||||
std::string headerFullName = headerPath + amd::Os::fileSeparator() + headerIncludeName;
|
||||
headerFileNames[i] = headerFullName;
|
||||
f.open(headerFullName.c_str(), std::fstream::out);
|
||||
// Should we allow asserts
|
||||
assert(!f.fail() && "failed creating header file!");
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user