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:
Filip Hazubski
2024-07-18 20:19:21 +00:00
committed by Compute-Runtime-Automation
parent eecf34cbc2
commit f8867ac3ac
5 changed files with 19 additions and 10 deletions

View File

@@ -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();