ULT execution time improvements.

- Do not open file twice, loadDataFromFile checks if file is successfully
opened and returns 0 if not.

Change-Id: I8ca73b281ea13033746f8203f482d9af7a2739b7
This commit is contained in:
Mrozek, Michal
2018-02-23 13:39:15 +01:00
committed by sys_ocldev
parent 52044281d1
commit 2dedaf1521

View File

@@ -41,7 +41,6 @@ void ProgramFixture::CreateProgramFromBinary(cl_context context,
testFile.append(pContext->getDevice(0)->getProductAbbrev());
testFile.append(".bin");
testFile.append(options);
ASSERT_EQ(true, fileExists(testFile));
knownSourceSize = loadDataFromFile(
testFile.c_str(),