libgpuverify

Signature verification on GPUs (WiP)
Log | Files | Refs | README | LICENSE

commit 7c383e363927837edcc4c24b704df19ec8b838d2
parent 5118ec19d408b4a4eeea78ac9e12472b3ef494d0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 18 Nov 2023 20:01:09 +0100

tolerate non-GPU platforms for now

Diffstat:
Msource/rsa-test.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source/rsa-test.c b/source/rsa-test.c @@ -210,7 +210,9 @@ int verify_with_opencl(DIGIT_T *bases, size_t *b_len, // Connect to a compute device // int gpu = 1; - err = clGetDeviceIDs(platforms[0], gpu ? CL_DEVICE_TYPE_GPU : CL_DEVICE_TYPE_CPU, 1, &device_id, NULL); + err = clGetDeviceIDs(platforms[0], + CL_DEVICE_TYPE_ALL, 1, &device_id, NULL); + // gpu ? CL_DEVICE_TYPE_GPU : CL_DEVICE_TYPE_CPU, 1, &device_id, NULL); if (err != CL_SUCCESS) { printf("Error: Failed to create a device group! (%d)\n", err);