Current ROCm 5.0 versions have the following issue to hipify cuOccupancyMaxPotentialBlockSize, force change to hipModuleOccupancyMaxPotentialBlockSize and remove extra argument manually.
/root/tutel/tutel/custom/custom_kernel_hip.cpp: In function ‘void init_nccl(const at::Tensor&, int, int, int)’:
/root/tutel/tutel/custom/custom_kernel_hip.cpp:364:126: error: too many arguments to function ‘hipError_t hipModuleOccupancyMaxPotentialBlockSize(int*, int*, hipFunction_t, size_t, int)’
CHECK_EQ(0, hipModuleOccupancyMaxPotentialBlockSize(&mem_stride_copy_gridsize, &mem_stride_copy_blocksize, hfunc, 0, 0, 0));
^
Current ROCm 5.0 versions have the following issue to hipify
cuOccupancyMaxPotentialBlockSize
, force change tohipModuleOccupancyMaxPotentialBlockSize
and remove extra argument manually.Reference: