SWDEV-368477 - hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags nvidia mapping
SWDEV-369618 - hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags invalid flag scenario
Change-Id: I2edbab5d3eeacf80bc215f0a77a46d733f4b4ec9
[ROCm/clr commit: 3e47c052e0]
This commit is contained in:
committed by
Ajay GunaShekar
parent
ff8d9d3c77
commit
dd18b3b01b
@@ -381,6 +381,7 @@ typedef enum cudaResourceViewFormat hipResourceViewFormat;
|
||||
#define hipIpcMemLazyEnablePeerAccess cudaIpcMemLazyEnablePeerAccess
|
||||
|
||||
#define hipOccupancyDefault cudaOccupancyDefault
|
||||
#define hipOccupancyDisableCachingOverride cudaOccupancyDisableCachingOverride
|
||||
|
||||
#define hipCooperativeLaunchMultiDeviceNoPreSync \
|
||||
cudaCooperativeLaunchMultiDeviceNoPreSync
|
||||
@@ -2812,6 +2813,17 @@ inline static hipError_t hipOccupancyMaxPotentialBlockSize(int* minGridSize, int
|
||||
dynamicSMemSize, blockSizeLimit));
|
||||
}
|
||||
|
||||
template <typename UnaryFunction, class T>
|
||||
inline static hipError_t hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(int* min_grid_size,
|
||||
int* block_size,
|
||||
T func,
|
||||
UnaryFunction block_size_to_dynamic_smem_size,
|
||||
int block_size_limit = 0,
|
||||
unsigned int flags = 0) {
|
||||
return hipCUDAErrorTohipError(cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(min_grid_size, block_size, func,
|
||||
block_size_to_dynamic_smem_size, block_size_limit,flags));
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline static hipError_t hipOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, T func,
|
||||
size_t dynamicSMemSize = 0,
|
||||
|
||||
Reference in New Issue
Block a user