EXSWHTEC-273 - Implement tests for warp shfl_xor and shfl functions #194
Change-Id: I8a87044ff465b0bb39f87faedc995d5052b8205f
This commit is contained in:
committed by
Maneesh Gupta
parent
6d8e62c0e3
commit
55c04d6169
@@ -78,6 +78,7 @@ struct CPUGrid {
|
||||
unsigned int thread_count_;
|
||||
};
|
||||
|
||||
/* Generate dimensions for 1D, 2D and 3D blocks of threads */
|
||||
inline dim3 GenerateThreadDimensions() {
|
||||
hipDeviceProp_t props;
|
||||
HIP_CHECK(hipGetDeviceProperties(&props, 0));
|
||||
@@ -99,6 +100,7 @@ inline dim3 GenerateThreadDimensions() {
|
||||
dim3(props.warpSize + 1, 3, 3));
|
||||
}
|
||||
|
||||
/* Generate dimensions for 1D, 2D and 3D grids of blocks */
|
||||
inline dim3 GenerateBlockDimensions() {
|
||||
hipDeviceProp_t props;
|
||||
HIP_CHECK(hipGetDeviceProperties(&props, 0));
|
||||
@@ -116,6 +118,7 @@ inline dim3 GenerateBlockDimensions() {
|
||||
dim3(5, 5, 5));
|
||||
}
|
||||
|
||||
/* Generate dimensions for 1D, 2D and 3D blocks of threads - reduced set */
|
||||
inline dim3 GenerateThreadDimensionsForShuffle() {
|
||||
hipDeviceProp_t props;
|
||||
HIP_CHECK(hipGetDeviceProperties(&props, 0));
|
||||
@@ -136,6 +139,7 @@ inline dim3 GenerateThreadDimensionsForShuffle() {
|
||||
dim3(props.warpSize + 1, 3, 3));
|
||||
}
|
||||
|
||||
/* Generate dimensions for 1D, 2D and 3D grids of blocks - reduced set */
|
||||
inline dim3 GenerateBlockDimensionsForShuffle() {
|
||||
hipDeviceProp_t props;
|
||||
HIP_CHECK(hipGetDeviceProperties(&props, 0));
|
||||
|
||||
Reference in New Issue
Block a user