[ROCM] Fix blockReduceSum to use correct warp counts for ROCm and CUDA (#3262)

This commit is contained in:
Douglas Lehr
2024-03-10 15:27:45 -07:00
committed by GitHub
parent 0bba88df03
commit e4a28e5316
3 changed files with 13 additions and 11 deletions
+10
View File
@@ -1,5 +1,15 @@
#pragma once
#ifdef USE_ROCM
#include <hip/hip_runtime.h>
#endif
#ifndef USE_ROCM
#define WARP_SIZE 32
#else
#define WARP_SIZE warpSize
#endif
#ifndef USE_ROCM
#define VLLM_LDG(arg) __ldg(arg)
#else