File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 4
4
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5
5
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6
6
7
- // ==-------------- usm_free.cpp - SYCL USM free malloc_shared and free test
8
- // -------------==//
9
- //
10
7
// This test checks if users will successfully allocate 160, 0, and -16 bytes of
11
8
// shared memory, and also test user can call free() without worrying about
12
9
// nullptr or invalid memory descriptor returned from malloc.
13
- // ==-------------------------------------------------------------------------------------==//
14
10
15
11
#include < CL/sycl.hpp>
16
12
#include < iostream>
@@ -41,7 +37,7 @@ int main(int argc, char *argv[]) {
41
37
std::cout << " ia : " << ia << " ja: " << ja << " result : " << result
42
38
<< std::endl;
43
39
44
- // followings should not throws CL_INVALID_VALUE
40
+ // followings should not throw CL_INVALID_VALUE
45
41
cl::sycl::free (ia, myQueue);
46
42
cl::sycl::free (nullptr , myQueue);
47
43
cl::sycl::free (ja, myQueue);
You can’t perform that action at this time.
0 commit comments