oneapi-src / SYCLomatic

Other
221 stars 90 forks source link

[SYCLomatic] Fix enum `CU_TR_*` migarion when found as `DeclRefExpr` #2318

Closed the-slow-one closed 1 week ago

the-slow-one commented 2 weeks ago

When the CU_TR_ADDRESS_MODE_WRAP and CU_TR_FILTER_MODE_POINT are not migrated due to mismatch in enum name. This PR fixes it.

Signed off by: Deepak Raj H R

the-slow-one commented 1 week ago

The failed test are not not due to the change in this PR. See below.

w:\dir\workspace\SYCLomatic_CI\Win_GPU\c2s_test_opt_gpu\test_workspace\help_function\option_gpu\image_wrapper\image_wrapper.cpp(102,11): error: 'create_image' is a private member of 'dpct::image_wrapper<sycl::vec<float, 4>, 2>'
[2024-09-04T12:06:05.703Z]   102 |     tex42.create_image();