-
Notifications
You must be signed in to change notification settings - Fork 798
Open
Labels
Description
llvm/sycl/test/check_device_code/extensions/properties/properties_cache_control.cpp
Lines 61 to 71 in 8ab28e0
| void cache_control_read_hint_func() { | |
| queue q; | |
| constexpr int N = 10; | |
| float *ArrayA = malloc_shared<float>(N, q); | |
| q.submit([&](handler &cgh) { | |
| cgh.single_task<>([=]() { | |
| load_hint src{&ArrayA[0]}; | |
| *src = 55.0f; | |
| }); | |
| }); | |
| } |
This code is supposed to check cache hints for load operation, but test only does one store. The same issue exists in other "read" checks.
All checks in this test are doing only store operation.
llvm/sycl/test/check_device_code/extensions/properties/properties_cache_control.cpp
Lines 148 to 152 in 8ab28e0
| ap_load_ca_uc_uc<double> x_l(x); | |
| ap_load_st_ca_uc<double> y_l(y); | |
| const double xVal = x_l[row_st + sgr_tid]; | |
| const double yVal = y_l[row_st + sgr_tid]; |
This is the only place where the test loads with cache hints.