8#if defined(__OFFLOAD_OPENCL) && !defined(__NO_OFFLOAD_DBM)
13#include <dbm_opencl.h>
15_Static_assert(
sizeof(
dbm_task_t) == DBM_OPENCL_TASK_SIZE *
sizeof(int),
16 "dbm_task_t must match the native task format of LIBXSTREAM");
18void dbm_multiply_gpu_launch_kernel(offloadStream_t stream,
double alpha,
21 const double *pack_a_data,
22 const double *pack_b_data,
23 double *shard_c_data) {
25 const int64_t padded =
28 (int)(100 * batch->
flops / padded)};
29 const int result = dbm_multiply_opencl_launch_kernel(
30 stream, alpha, batch->
ntasks, 0 , shape_info,
31 &batch->
tasks->
m, &tasks->
m, pack_a_data, pack_b_data, shard_c_data);
32 OFFLOAD_CHECK(result);
35int dbm_multiply_gpu_task_order(
void) {
36 return dbm_multiply_opencl_task_order();
Internal struct for storing a batch of tasks along with its shape, which is tracked while the batch i...
Internal struct for storing a task, ie. a single block multiplication.