Skip to content

Commit

Permalink
Check for GITHUB_ACTIONS instead of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Dec 6, 2024
1 parent c928b2a commit 9970d36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cpp/pybind/core/sycl_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ void pybind_sycl_utils_definitions(py::module& m) {
m_sycl.def("get_available_devices", sy::GetAvailableSYCLDevices,
"Return a list of available SYCL devices.");

m_sycl.def("print_sycl_devices", sy::PrintSYCLDevices,
"print_all"_a = False,
"Print SYCL device available to Open3D (either the best "
"available GPU, or a fallback CPU device). If `print_all` is "
"specified, also print SYCL devices of other types.");

m_sycl.def("enable_persistent_jit_cache", sy::enablePersistentJITCache,
"Enables the JIT cache for SYCL. This sets an environment "
"variable and "
Expand Down
2 changes: 1 addition & 1 deletion python/test/t/geometry/test_raycasting_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# detect this automatically.
# Do not enable SYCL devices on GIthub - GPU is not available and we don't
# distinguish between SYCL CPU and SYCL GPU.
enable_sycl = os.environ.get("CI", "") == ""
enable_sycl = os.environ.get("GITHUB_ACTION", "") == ""


# test intersection with a single triangle
Expand Down

0 comments on commit 9970d36

Please sign in to comment.