Skip to content

Commit

Permalink
Fix GCC and hopefully MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Jan 4, 2024
1 parent bd3c16f commit b032f9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions include/simsycl/sycl/forward.hh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ class kernel_bundle;

class kernel_id;

template<typename KernelName>
kernel_id get_kernel_id();

class kernel_handler;

template<typename DataT, int Dimensions = 1>
Expand Down
2 changes: 1 addition & 1 deletion include/simsycl/sycl/group.hh
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class group {
const sycl::item<Dimensions, false> &local_item, const sycl::item<Dimensions, true> &global_item,
const sycl::item<Dimensions, false> &group_item, detail::concurrent_group *impl);

friend detail::group_type detail::get_group_type(const sycl::group<Dimensions> &g);
friend detail::group_type detail::get_group_type<Dimensions>(const sycl::group<Dimensions> &g);
friend detail::concurrent_group &detail::get_concurrent_group<Dimensions>(const sycl::group<Dimensions> &g);

detail::group_type m_type;
Expand Down
2 changes: 1 addition & 1 deletion src/simsycl/kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ std::string demangle_name_from_pointer_type(const std::type_info &pointer_type)
abi::__cxa_demangle(pointer_type.name(), nullptr, nullptr, nullptr), std::free);
std::string demangled = demangle_buffer.get();
#else
std::string demangled = pointer_type_info.name();
std::string demangled = pointer_type.name();
#endif

// get rid of the pointer "*"
Expand Down

0 comments on commit b032f9a

Please sign in to comment.