P4 to Git Change 1529710 by wchau@wchau_OCL_boltzmann on 2018/03/20 17:05:04
SWDEV-145760 - OCL on ROCm Support for respecting target's xnack setting (subtask of SWDEV-134107) Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#21 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#34 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#77 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#58 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#41 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#84 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#80 edit
Dieser Commit ist enthalten in:
1 Ursprung
1f53841421
Commit
68c299486b
8 Dateien geändert
+89
-57
Keine Dateien entsprechen Ihrer Suche
@@ -219,6 +219,11 @@ bool LightningProgram::compileImpl(const std::string& sourceCode,
|
||||
driverOptions.append(" -mcpu=");
|
||||
driverOptions.append(dev().deviceInfo().machineTarget_);
|
||||
|
||||
// Set xnack option if needed
|
||||
if (dev().deviceInfo().xnackEnabled_) {
|
||||
driverOptions.append(" -mxnack");
|
||||
}
|
||||
|
||||
driverOptions.append(options->llvmOptions);
|
||||
|
||||
// Set whole program mode
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren