]> foleosoft.com Git - QAnsel.git/commitdiff
Sat Mar 2 09:14:29 PM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 02:14:29 +0000 (21:14 -0500)
committermiha-q <>
Sun, 3 Mar 2024 02:14:29 +0000 (21:14 -0500)
src/gpu.c

index c558caba6e7b4feb3d3aeef4a3de49329aba1cd2..31129c0a4ae14d7e652f5fd55658db12b53beecb 100644 (file)
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -134,11 +134,11 @@ void GPU_mmul(double* ptrR, double* ptrA, double* ptrB, size_t rowsA, size_t col
        #ifdef GPU_DEBUG
        printf("Line %d.\n", __LINE__);
        #endif
-       cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&ptr), NULL, &err);
+       printf("---------------------\n%s---------------------\n", ptr);
        #ifdef GPU_DEBUG
        printf("Line %d.\n", __LINE__);
        #endif
-       printf("---------------------\n%s---------------------\n", ptr);
+       cl_program program = clCreateProgramWithSource(GPU_context, 1, (const char**)(&ptr), NULL, &err);
        if (err != CL_SUCCESS)
        {
                fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");