mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: Minor code improvements
Add explicit pointer checks to CommandQueue::blitEnqueueAllowed. Explicitly check result of getDeviceArgValueIdx during ocloc compile. Explicitly remove unused StagingBufferManager functions. Move chunkCopyFunc by reference. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eecf34cbc2
commit
f8867ac3ac
@@ -126,6 +126,7 @@ int compile(OclocArgHelper *argHelper, const std::vector<std::string> &args) {
|
||||
|
||||
if (onlySpirV) {
|
||||
int deviceArgIndex = NEO::getDeviceArgValueIdx(args);
|
||||
UNRECOVERABLE_IF(deviceArgIndex < 0);
|
||||
std::vector<ConstStringRef> targetProducts = NEO::getTargetProductsForFatbinary(ConstStringRef(args[deviceArgIndex]), argHelper);
|
||||
ConstStringRef firstDevice = targetProducts.front();
|
||||
argsCopy[deviceArgIndex] = firstDevice.str();
|
||||
|
||||
Reference in New Issue
Block a user