commit ec25655795cdada3af0cf4dd406326874147ed43
parent 7c383e363927837edcc4c24b704df19ec8b838d2
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 18 Nov 2023 20:15:22 +0100
make cl available in local dir for testing
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/other/verify.cl b/other/verify.cl
@@ -0,0 +1 @@
+../xcode/verify.cl
+\ No newline at end of file
diff --git a/source/rsa-test.c b/source/rsa-test.c
@@ -257,6 +257,11 @@ int verify_with_opencl(DIGIT_T *bases, size_t *b_len,
FILE *fp = fopen("./verify.cl", "r");
+ if (NULL == fp)
+ {
+ printf("Error: could not find 'verify.cl'\n");
+ return EXIT_FAILURE;
+ }
fseek(fp, 0L, SEEK_END);
size_t sz = ftell(fp);
rewind(fp);