Skip to content

Commit 89eec99

Browse files
committed
Simplify test
1 parent 457f307 commit 89eec99

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sycl/test/syclcompat/launch/launch_inlining.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,10 @@ int test_write_mem() {
8585
}
8686

8787
int test_lmem_launch() {
88-
using T = int;
89-
// A property constructed at runtime:
90-
sycl_intel_exp::cache_config my_cache_config{sycl_intel_exp::large_slm};
88+
int local_mem_size = LOCAL_MEM_SIZE;
9189

92-
int local_mem_size = LOCAL_MEM_SIZE; // rt value
93-
94-
size_t num_elements = local_mem_size / sizeof(T);
95-
T *d_a = (T *)syclcompat::malloc(local_mem_size);
90+
size_t num_elements = local_mem_size / sizeof(int);
91+
int *d_a = (int *)syclcompat::malloc(local_mem_size);
9692

9793
compat_exp::launch_policy my_config(
9894
sycl::nd_range<1>{{256}, {256}},

0 commit comments

Comments
 (0)