Skip to content

Commit 1d02f69

Browse files
committed
s/COMPAT_USM_LEVEL_NONE/SYCLCOMPAT_USM_LEVEL_NONE/
1 parent d3f8312 commit 1d02f69

11 files changed

+17
-17
lines changed

sycl/doc/syclcompat/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,18 +852,18 @@ public:
852852
853853
Although SYCLcompat is primarily designed around the Unified Shared Memory
854854
model, there is (limited) support for the buffer/accessor model. This can be
855-
enabled by setting the compiler define `COMPAT_USM_LEVEL_NONE`. This macro
855+
enabled by setting the compiler define `SYCLCOMPAT_USM_LEVEL_NONE`. This macro
856856
instructs SYCLcompat to effectively provide emulated USM pointers via a Memory
857857
Manager singleton.
858858
859-
Note that in `COMPAT_USM_LEVEL_NONE` mode, the pointers returned by e.g.
859+
Note that in `SYCLCOMPAT_USM_LEVEL_NONE` mode, the pointers returned by e.g.
860860
`syclcompat::malloc`, and passed to `syclcompat::memcpy` can *only* interact
861861
with `syclcompat` APIs. It is legal to perform pointer arithmetic on these
862862
virtual pointers, but attempting to dereference them, passing them to `sycl`
863863
APIs, or passing them into kernels will result in an error.
864864
865865
The SYCLcompat tests with the suffix `_usmnone.cpp` provide examples of how to
866-
use `COMPAT_USM_LEVEL_NONE`.
866+
use `SYCLCOMPAT_USM_LEVEL_NONE`.
867867
868868
### ptr_to_int
869869

sycl/test-e2e/syclcompat/atomic/atomics_verification_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
1212

13-
#define COMPAT_USM_LEVEL_NONE
13+
#define SYCLCOMPAT_USM_LEVEL_NONE
1414
#include <sycl/detail/core.hpp>
1515
#include <cstdio>
1616
#include <ctime>

sycl/test-e2e/syclcompat/memory/global_memory_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
12-
#define COMPAT_USM_LEVEL_NONE
12+
#define SYCLCOMPAT_USM_LEVEL_NONE
1313
#include <sycl/detail/core.hpp>
1414
#include <syclcompat/syclcompat.hpp>
1515

sycl/test-e2e/syclcompat/memory/memory_async.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
// RUN: %{build} -o %t.out
3434
// RUN: %{run} %t.out
35-
// RUN: %{build} -DCOMPAT_USM_LEVEL_NONE -o %t.out
35+
// RUN: %{build} -DSYCLCOMPAT_USM_LEVEL_NONE -o %t.out
3636
// RUN: %{run} %t.out
3737
// Tests for the sycl::events returned from syclcompat::*Async API calls
3838

@@ -189,8 +189,8 @@ void test_combine_events() {
189189
}
190190

191191
int main() {
192-
#ifdef COMPAT_USM_LEVEL_NONE
193-
std::cout << "Running COMPAT_USM_LEVEL_NONE tests" << std::endl;
192+
#ifdef SYCLCOMPAT_USM_LEVEL_NONE
193+
std::cout << "Running SYCLCOMPAT_USM_LEVEL_NONE tests" << std::endl;
194194
#else
195195
std::cout << "Running USM tests" << std::endl;
196196
#endif

sycl/test-e2e/syclcompat/memory/memory_fixt.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ class AsyncTest {
5151
auto &dd_A = d_A_;
5252
auto &dd_B = d_B_;
5353
auto &dd_C = d_C_;
54-
#ifdef COMPAT_USM_LEVEL_NONE
54+
#ifdef SYCLCOMPAT_USM_LEVEL_NONE
5555
syclcompat::buffer_t buffer_A = syclcompat::get_buffer(d_A_);
5656
syclcompat::buffer_t buffer_B = syclcompat::get_buffer(d_B_);
5757
syclcompat::buffer_t buffer_C = syclcompat::get_buffer(d_C_);
5858
#endif
5959
return q_.submit([&](sycl::handler &cgh) {
60-
#ifdef COMPAT_USM_LEVEL_NONE
60+
#ifdef SYCLCOMPAT_USM_LEVEL_NONE
6161
auto A = buffer_A.get_access<sycl::access::mode::read_write>(cgh);
6262
auto B = buffer_B.get_access<sycl::access::mode::read_write>(cgh);
6363
auto C = buffer_C.get_access<sycl::access::mode::read_write>(cgh);

sycl/test-e2e/syclcompat/memory/memory_is_device_ptr_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
1212

13-
#define COMPAT_USM_LEVEL_NONE
13+
#define SYCLCOMPAT_USM_LEVEL_NONE
1414
#include <sycl/detail/core.hpp>
1515
#include <syclcompat/syclcompat.hpp>
1616

sycl/test-e2e/syclcompat/memory/memory_management_test1_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: %{build} -o %t.out
1111
// RUN: %{run} %t.out
1212

13-
#define COMPAT_USM_LEVEL_NONE
13+
#define SYCLCOMPAT_USM_LEVEL_NONE
1414
#include <sycl/detail/core.hpp>
1515
#include <syclcompat/memory.hpp>
1616
#include "memory_common.hpp"

sycl/test-e2e/syclcompat/memory/memory_management_test2_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// RUN: %{build} -o %t.out
1010
// RUN: %{run} %t.out
1111

12-
#define COMPAT_USM_LEVEL_NONE
12+
#define SYCLCOMPAT_USM_LEVEL_NONE
1313
#include <sycl/detail/core.hpp>
1414
#include <syclcompat/memory.hpp>
1515
#include "memory_common.hpp"

sycl/test-e2e/syclcompat/memory/memory_management_test3_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %{build} -o %t.out
1212
// RUN: %{run} %t.out
1313

14-
#define COMPAT_USM_LEVEL_NONE
14+
#define SYCLCOMPAT_USM_LEVEL_NONE
1515
#include <sycl/detail/core.hpp>
1616
#include <syclcompat/memory.hpp>
1717
#include "memory_common.hpp"

sycl/test-e2e/syclcompat/memory/shared_memory_usmnone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// RUN: %{build} -o %t.out
1010
// RUN: %{run} %t.out
1111

12-
#define COMPAT_USM_LEVEL_NONE
12+
#define SYCLCOMPAT_USM_LEVEL_NONE
1313
#include <sycl/detail/core.hpp>
1414
#include <syclcompat/syclcompat.hpp>
1515
#include <stdio.h>

0 commit comments

Comments
 (0)