@@ -16,9 +16,6 @@ namespace detail {
1616 * \param data Pointer to the array
1717 * \param value The value to set each element to
1818 * \param count The number of elements to set
19- *
20- * Example: If data is an int array with 10 elements and value is 5,
21- * this will set all 10 ints to the value 5.
2219 */
2320template <typename T>
2421__global__ void umpire_device_memset_kernel (T* data, T value, std::size_t count)
@@ -31,12 +28,6 @@ __global__ void umpire_device_memset_kernel(T* data, T value, std::size_t count)
3128 }
3229}
3330
34- /* *
35- * @brief Implementation of device_memset - compiled as HIP code
36- *
37- * This implementation is in the .cpp file (not header) because it uses
38- * hipLaunchKernelGGL, which requires HIP compiler support.
39- */
4031template <typename T>
4132void device_memset (T* ptr, T value, std::size_t count)
4233{
@@ -52,7 +43,6 @@ void device_memset(T* ptr, T value, std::size_t count)
5243 grid_size = max_blocks;
5344 }
5445
55- // Launch kernel to set elements (not bytes)
5646 hipLaunchKernelGGL (umpire_device_memset_kernel<T>, dim3 (grid_size), dim3 (block_size), 0 , 0 ,
5747 ptr, value, count);
5848
@@ -71,7 +61,6 @@ void device_memset(T* ptr, T value, std::size_t count)
7161}
7262
7363// Explicit template instantiations for common types
74- // Add more instantiations here as needed for your use cases
7564template __global__ void umpire_device_memset_kernel<char >(char *, char , std::size_t );
7665template __global__ void umpire_device_memset_kernel<unsigned char >(unsigned char *, unsigned char , std::size_t );
7766template __global__ void umpire_device_memset_kernel<short >(short *, short , std::size_t );
0 commit comments