mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Define variable with binary name suffix
use this variable in tests as it is set once in main.cpp create function to get binary kernel filename Change-Id: Ibf7b4c2d390caefda4a5d7fc4667006e7f2edde8
This commit is contained in:
committed by
sys_ocldev
parent
103fe670bd
commit
180de340d8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -23,8 +23,6 @@
|
||||
#include "cl_api_tests.h"
|
||||
#include "runtime/context/context.h"
|
||||
#include "runtime/helpers/file_io.h"
|
||||
#include "runtime/helpers/hw_info.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "unit_tests/helpers/test_files.h"
|
||||
|
||||
using namespace OCLRT;
|
||||
@@ -32,11 +30,8 @@ using namespace OCLRT;
|
||||
struct clCreateKernelsInProgramTests : public api_tests {
|
||||
void SetUp() override {
|
||||
api_tests::SetUp();
|
||||
|
||||
std::string testFile(testFiles);
|
||||
testFile.append("CopyBuffer_simd8_");
|
||||
testFile.append(hardwarePrefix[platformDevices[0]->pPlatform->eProductFamily]);
|
||||
testFile.append(".bin");
|
||||
std::string testFile;
|
||||
retrieveBinaryKernelFilename(testFile, "CopyBuffer_simd8_", ".bin");
|
||||
|
||||
auto binarySize = loadDataFromFile(
|
||||
testFile.c_str(),
|
||||
|
||||
Reference in New Issue
Block a user