P4 to Git Change 1171714 by marsenau@marsenau_home on 2015/07/17 19:29:59
ECR #304775 - First batch of build fixes for clang. Fixes hard source errors and a handful of simple warnings, but leaves most other warnings for later. Other errors not fixed here are from adding compile flags that are not understood. Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/clc/src/e2lCommon.h#11 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.hpp#4 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/BRIGAsmPrinter.cpp#117 edit ... //depot/stg/opencl/drivers/opencl/opencldefs#162 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#289 edit
Этот коммит содержится в:
@@ -10,7 +10,10 @@
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
namespace llvm {
|
||||
class Module;
|
||||
class FunctionPassManager;
|
||||
|
||||
namespace legacy {
|
||||
class FunctionPassManager;
|
||||
}
|
||||
}; // llvm namespace
|
||||
namespace amdcl
|
||||
{
|
||||
|
||||
@@ -3993,7 +3993,7 @@ HSAILKernel::loadArguments(
|
||||
mem = *reinterpret_cast<amd::Memory* const*>(paramaddr);
|
||||
if (mem == NULL) {
|
||||
LogError( "The kernel image argument isn't an image object!");
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
image = static_cast<Image*>(dev().getGpuMemory(mem));
|
||||
}
|
||||
@@ -4063,8 +4063,8 @@ HSAILKernel::loadArguments(
|
||||
}
|
||||
else {
|
||||
if (!gpu.createVirtualQueue(queue->size())) {
|
||||
LogError( "Virtual queue creaiton failed!");
|
||||
return false;
|
||||
LogError("Virtual queue creation failed!");
|
||||
return nullptr;
|
||||
}
|
||||
vmQueue = gpu.vQueue()->vmAddress();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user