Skip to content

Commit a85a8c1

Browse files
committed
OpenCL overlay: make the test more robust by allowing any device
1 parent f9d2276 commit a85a8c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

validation-test/stdlib/OpenCLSDKOverlay.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ tests.test("clSetKernelArgsListAPPLE") {
101101

102102
// Connect to a compute device
103103
//
104-
var gpu = 1
105-
err = clGetDeviceIDs(nil, cl_device_type(gpu != 0 ? CL_DEVICE_TYPE_GPU : CL_DEVICE_TYPE_CPU), 1, &device_id, nil)
104+
err = clGetDeviceIDs(nil, cl_device_type(CL_DEVICE_TYPE_ALL), 1, &device_id, nil)
106105
if (err != CL_SUCCESS)
107106
{
108107
print("Error: Failed to create a device group!")

0 commit comments

Comments
 (0)