Skip to content

Commit

Permalink
Update the target directories of check_format.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Sep 22, 2024
1 parent 91c0667 commit 30c3180
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/check_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 5 additions & 6 deletions tutorials/src/device/cuda/propagation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ using actor_chain_t =
using propagator_t = propagator<stepper_t, navigator_t, actor_chain_t>;

/// 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<detray::tutorial::algebra_t>>
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<detray::tutorial::algebra_t>>
tracks_data);

} // namespace detray::tutorial
11 changes: 5 additions & 6 deletions tutorials/src/device/cuda/propagation_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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<detray::tutorial::algebra_t>>
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<detray::tutorial::algebra_t>>
tracks_data) {

int thread_dim = 2 * WARP_SIZE;
int block_dim = tracks_data.size() / thread_dim + 1;
Expand Down

0 comments on commit 30c3180

Please sign in to comment.