Skip to content

Commit

Permalink
sycl: Fix compilation and disable unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fweig committed Oct 29, 2024
1 parent 88a1943 commit fc3b041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ jobs:
cmake --build ${{github.workspace}}/build -j4
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -j4
run: ctest -j4 -E sycl

cpp20:

Expand Down
3 changes: 1 addition & 2 deletions src/xpu/detail/platform/sycl/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ struct xpu::detail::action_runner<xpu::detail::kernel_tag, K, void(K::*)(xpu::ke
local_range = sycl::range(1, 1, 1);
}

XPU_LOG("Calling kernel '%s' [local_range = (%d, %d, %d), global_range = (%d, %d, %d)] with SYCL driver.", type_name<K>(), local_range[0], local_range[1], local_range[2], global_range[0], global_range[1], global_range[2]);
XPU_LOG("Calling kernel '%s' [local_range = (%zu, %zu, %zu), global_range = (%zu, %zu, %zu)] with SYCL driver.", type_name<K>(), local_range[0], local_range[1], local_range[2], global_range[0], global_range[1], global_range[2]);

sycl::event ev = queue.submit([&](sycl::handler &cgh) {
sycl::local_accessor<shared_memory, 0> shared_memory_acc{cgh};
Expand All @@ -406,7 +406,6 @@ struct xpu::detail::action_runner<xpu::detail::kernel_tag, K, void(K::*)(xpu::ke
out << "";
}
#endif
sycl::ext::oneapi::experimental::printf("HELLO\n");

shared_memory &smem = shared_memory_acc;
tpos pos{internal_ctor, item};
Expand Down

0 comments on commit fc3b041

Please sign in to comment.