Skip to content

Commit

Permalink
fix cuda build
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed Mar 16, 2024
1 parent 1dab29f commit c48ae7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/nmtools/array/eval/kernel_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ namespace nmtools::array
};

template <typename T>
auto compute_offset(kernel_size<T> thread_id, kernel_size<T> block_id, kernel_size<T> block_size)
constexpr auto compute_offset(kernel_size<T> thread_id, kernel_size<T> block_id, kernel_size<T> block_size)
{
// TODO: check for grid shape
auto idx = block_id.x() * block_size.x() + thread_id.x();
return idx;
}
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/eval/sycl/info.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// LICENSE: GNU GENERAL PUBLIC LICENSE
// LICENSE: GNU General Public License v3.0
// adapted from https://github.com/illuhad/syclinfo/blob/f644f1a25dfd94aa07f7c58f5f6171e5651a966d/syclinfo.cpp:
// - fix for some global_mem_cache_type
// - include in nmtools namespace
Expand Down

0 comments on commit c48ae7a

Please sign in to comment.