mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
This commit is contained in:
committed by
Kévin Petit
parent
1d7bd0d10d
commit
7127b2a05f
@@ -621,6 +621,11 @@ static int create_single_kernel_helper_create_program_offline(cl_context context
|
|||||||
// Get device CL_DEVICE_ADDRESS_BITS
|
// Get device CL_DEVICE_ADDRESS_BITS
|
||||||
int error;
|
int error;
|
||||||
cl_uint device_address_space_size = 0;
|
cl_uint device_address_space_size = 0;
|
||||||
|
if (device == NULL)
|
||||||
|
{
|
||||||
|
error = get_first_device_id(context, device);
|
||||||
|
test_error(error, "Failed to get device ID for first device");
|
||||||
|
}
|
||||||
error = get_device_address_bits(device, device_address_space_size);
|
error = get_device_address_bits(device, device_address_space_size);
|
||||||
if (error != CL_SUCCESS)
|
if (error != CL_SUCCESS)
|
||||||
return error;
|
return error;
|
||||||
@@ -634,11 +639,6 @@ static int create_single_kernel_helper_create_program_offline(cl_context context
|
|||||||
buildOptions);
|
buildOptions);
|
||||||
|
|
||||||
|
|
||||||
if (device == NULL)
|
|
||||||
{
|
|
||||||
error = get_first_device_id(context, device);
|
|
||||||
test_error(error, "Failed to get device ID for first device");
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ifstream ifs;
|
std::ifstream ifs;
|
||||||
error = get_offline_compiler_output(ifs, device, device_address_space_size, openclCXX, compilationMode, bOptions, gCompilationCachePath, kernelName);
|
error = get_offline_compiler_output(ifs, device, device_address_space_size, openclCXX, compilationMode, bOptions, gCompilationCachePath, kernelName);
|
||||||
|
|||||||
Reference in New Issue
Block a user