Skip to content

Commit

Permalink
Add missing inline keywords to cudautils::launch (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Dec 13, 2019
1 parent d02f4be commit e41560b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions HeterogeneousCore/CUDAUtilities/interface/launch.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,11 @@ namespace cudautils {
void operator()(void const* ptrs[], Tuple const& t) {}
};

#if 0
#endif

} // namespace detail

// wrappers for cudaLaunchKernel

void launch(void (*kernel)(), LaunchParameters config) {
inline void launch(void (*kernel)(), LaunchParameters config) {
cudaCheck(cudaLaunchKernel(
(const void*)kernel, config.gridDim, config.blockDim, nullptr, config.sharedMem, config.stream));
}
Expand All @@ -120,7 +117,7 @@ namespace cudautils {

// wrappers for cudaLaunchCooperativeKernel

void launch_cooperative(void (*kernel)(), LaunchParameters config) {
inline void launch_cooperative(void (*kernel)(), LaunchParameters config) {
cudaCheck(cudaLaunchCooperativeKernel(
(const void*)kernel, config.gridDim, config.blockDim, nullptr, config.sharedMem, config.stream));
}
Expand Down

0 comments on commit e41560b

Please sign in to comment.