Skip to content

Commit e41560b

Browse files
committed
Add missing inline keywords to cudautils::launch (#430)
1 parent d02f4be commit e41560b

File tree

1 file changed

+2
-5
lines changed
  • HeterogeneousCore/CUDAUtilities/interface

1 file changed

+2
-5
lines changed

HeterogeneousCore/CUDAUtilities/interface/launch.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,11 @@ namespace cudautils {
8888
void operator()(void const* ptrs[], Tuple const& t) {}
8989
};
9090

91-
#if 0
92-
#endif
93-
9491
} // namespace detail
9592

9693
// wrappers for cudaLaunchKernel
9794

98-
void launch(void (*kernel)(), LaunchParameters config) {
95+
inline void launch(void (*kernel)(), LaunchParameters config) {
9996
cudaCheck(cudaLaunchKernel(
10097
(const void*)kernel, config.gridDim, config.blockDim, nullptr, config.sharedMem, config.stream));
10198
}
@@ -120,7 +117,7 @@ namespace cudautils {
120117

121118
// wrappers for cudaLaunchCooperativeKernel
122119

123-
void launch_cooperative(void (*kernel)(), LaunchParameters config) {
120+
inline void launch_cooperative(void (*kernel)(), LaunchParameters config) {
124121
cudaCheck(cudaLaunchCooperativeKernel(
125122
(const void*)kernel, config.gridDim, config.blockDim, nullptr, config.sharedMem, config.stream));
126123
}

0 commit comments

Comments
 (0)