Skip to content

Commit

Permalink
Update test_compile.cpp (#1812)
Browse files Browse the repository at this point in the history
* Update test_compile.cpp

Prevent the error:
"variable 'temp' is uninitialized when used here"

Since one of the generated kernels starts with:

__kernel void sample_test(__global float *src, __global int *dst)
{
    float temp;
    int  tid = get_global_id(0);
    dst[tid] = dst[tid] + temp;

* Update test_compile.cpp

clang format

* Update test_compile.cpp

Change the "0.0" literal to "0.0f" for devices that don't support FP64.
  • Loading branch information
aharon-abramson authored Oct 10, 2023
1 parent e3c8de8 commit 60fc7fc
Showing 1 changed file with 2,271 additions and 1,483 deletions.
Loading

0 comments on commit 60fc7fc

Please sign in to comment.