Skip to content

Commit

Permalink
send dyn shmem param to hip runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Masuda committed Jun 28, 2021
1 parent 86c3c34 commit aa4b90d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/rocm/rocm_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,11 @@ class ROCMWrappedFunc {
ThreadWorkLoad wl = thread_axis_cfg_.Extract(args);
void* config[] = {HIP_LAUNCH_PARAM_BUFFER_POINTER, packed_args, HIP_LAUNCH_PARAM_BUFFER_SIZE,
&packed_nbytes, HIP_LAUNCH_PARAM_END};
LOG(INFO) << "dynamic shared mem size: " << wl.dyn_shmem_size;
// HIP supports only extra_args.
ROCM_DRIVER_CALL(hipModuleLaunchKernel(
fcache_[device_id], wl.grid_dim(0), wl.grid_dim(1), wl.grid_dim(2), wl.block_dim(0),
wl.block_dim(1), wl.block_dim(2), 0, strm, nullptr, reinterpret_cast<void**>(&config)));
wl.block_dim(1), wl.block_dim(2), wl.dyn_shmem_size, strm, nullptr, reinterpret_cast<void**>(&config)));
}

private:
Expand Down

0 comments on commit aa4b90d

Please sign in to comment.