From 30c3180a00d62fd7579ad8c8d852fe9492ff1794 Mon Sep 17 00:00:00 2001 From: Beomki Yeo Date: Sun, 22 Sep 2024 18:48:22 +0200 Subject: [PATCH] Update the target directories of check_format.sh --- .github/check_format.sh | 2 +- tutorials/src/device/cuda/propagation.hpp | 11 +++++------ tutorials/src/device/cuda/propagation_kernel.cu | 11 +++++------ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/check_format.sh b/.github/check_format.sh index 6dbd6d303..1aee41571 100755 --- a/.github/check_format.sh +++ b/.github/check_format.sh @@ -7,7 +7,7 @@ set -e # abort on error -INCLUDE_DIRS=("core plugins tests io utils") +INCLUDE_DIRS=("core detectors io plugins tests tutorials") if [ $# -ne 1 ]; then echo "wrong number of arguments" diff --git a/tutorials/src/device/cuda/propagation.hpp b/tutorials/src/device/cuda/propagation.hpp index b5a73e5f5..ba8a02658 100644 --- a/tutorials/src/device/cuda/propagation.hpp +++ b/tutorials/src/device/cuda/propagation.hpp @@ -66,11 +66,10 @@ using actor_chain_t = using propagator_t = propagator; /// Propagation tutorial function -void propagation( - typename detector_host_t::view_type det_data, - typename device_field_t::view_t field_data, - const vecmem::data::vector_view< - free_track_parameters> - tracks_data); +void propagation(typename detector_host_t::view_type det_data, + typename device_field_t::view_t field_data, + const vecmem::data::vector_view< + free_track_parameters> + tracks_data); } // namespace detray::tutorial diff --git a/tutorials/src/device/cuda/propagation_kernel.cu b/tutorials/src/device/cuda/propagation_kernel.cu index 8ac8e0f4e..5d0e28b5d 100644 --- a/tutorials/src/device/cuda/propagation_kernel.cu +++ b/tutorials/src/device/cuda/propagation_kernel.cu @@ -60,12 +60,11 @@ __global__ void propagation_kernel( p.propagate(state, actor_states); } -void propagation( - typename detray::tutorial::detector_host_t::view_type det_data, - typename detray::tutorial::device_field_t::view_t field_data, - const vecmem::data::vector_view< - detray::free_track_parameters> - tracks_data) { +void propagation(typename detray::tutorial::detector_host_t::view_type det_data, + typename detray::tutorial::device_field_t::view_t field_data, + const vecmem::data::vector_view< + detray::free_track_parameters> + tracks_data) { int thread_dim = 2 * WARP_SIZE; int block_dim = tracks_data.size() / thread_dim + 1;