代码拉取完成,页面将自动刷新
2740
Adjust warpper of GpuLanuchConfig1D
已合并
PR types
Others
PR changes
OPs
Describe
- Function scope extension of class
GpuLaunchConfig
- Move the function
GetThreadConfig
fromelementwise_no_broadcast.cu.h
togpu_launch_config.h
, to cooperate with structGpuLaunchConfig
and extend the working scope of this class - Since
RoundToPowerOfTwo
is not a gpu device function, and it is much more relevant togpu_launch_config.h
thangpu_device_function.h
, then move it togpu_launch_config.h
, and replace it with new one - Originally, macro
ELEMENTWISE_BLOCK_SIZE
is set just for elementwise relevant computation, sinceGetThreadConfig
is merged withGetGpuLaunchConfig1D
,ELEMENTWISE_BLOCK_SIZE
shall consistently moved togpu_launch_config.h
. However, to extend the working scope of this macro, rename the original nameELEMENTWISE_BLOCK_SIZE
withPREDEFINED_BLOCK_SIZE