mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Test buildFatBinary()
This change introduces ULTs for buildFatBinary() function. It is intended to improve code coverage. Related-To: NEO-6834 Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e8e3355a93
commit
1d7b99140c
@@ -378,8 +378,12 @@ int buildFatBinary(const std::vector<std::string> &args, OclocArgHelper *argHelp
|
||||
argsCopy.push_back("-exclude_ir");
|
||||
}
|
||||
|
||||
Ar::ArEncoder fatbinary(true);
|
||||
if (deviceArgIndex == static_cast<size_t>(-1)) {
|
||||
argHelper->printf("Error! Command does not contain device argument!\n");
|
||||
return OclocErrorCode::INVALID_COMMAND_LINE;
|
||||
}
|
||||
|
||||
Ar::ArEncoder fatbinary(true);
|
||||
if (isDeviceWithPlatformAbbreviation(ConstStringRef(args[deviceArgIndex]), argHelper)) {
|
||||
std::vector<ConstStringRef> targetPlatforms;
|
||||
targetPlatforms = getTargetPlatformsForFatbinary(ConstStringRef(args[deviceArgIndex]), argHelper);
|
||||
|
||||
Reference in New Issue
Block a user