@@ -88,19 +88,17 @@ 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 }
10299
103100 template <typename F, typename ... Args>
101+ inline
104102#if __cplusplus >= 201703L
105103 std::enable_if_t <std::is_invocable_r<void , F, Args&&...>::value>
106104#else
@@ -120,12 +118,13 @@ namespace cudautils {
120118
121119 // wrappers for cudaLaunchCooperativeKernel
122120
123- void launch_cooperative (void (*kernel)(), LaunchParameters config) {
121+ inline void launch_cooperative (void (*kernel)(), LaunchParameters config) {
124122 cudaCheck (cudaLaunchCooperativeKernel (
125123 (const void *)kernel, config.gridDim , config.blockDim , nullptr , config.sharedMem , config.stream ));
126124 }
127125
128126 template <typename F, typename ... Args>
127+ inline
129128#if __cplusplus >= 201703L
130129 std::enable_if_t <std::is_invocable_r<void , F, Args&&...>::value>
131130#else
0 commit comments