(git:27c966b)
Loading...
Searching...
No Matches
dbm_multiply_cpu.h File Reference
#include "dbm_internal.h"
#include "dbm_shard.h"

Go to the source code of this file.

Enumerations

enum  dbm_multiply_cpu_options { DBM_MULTIPLY_BLAS_LIBRARY = 1 , DBM_MULTIPLY_TASK_REORDER = 2 }
enum  dbm_multiply_task_order { DBM_TASK_ORDER_NONE = 0 , DBM_TASK_ORDER_SHAPE = 1 }

Functions

void dbm_multiply_cpu_task_order (int ntasks, const dbm_task_t batch[ntasks], int order[ntasks])
 Internal routine for ordering the tasks of a batch approximately by shape. The order is returned as permutation of the task indexes.
void dbm_multiply_cpu_process_batch (const dbm_batch_t *batch, double alpha, const dbm_pack_t *pack_a, const dbm_pack_t *pack_b, dbm_shard_t *shard_c, int options)
 Internal routine for executing the tasks in given batch on the CPU.

Enumeration Type Documentation

◆ dbm_multiply_cpu_options

Enumerator
DBM_MULTIPLY_BLAS_LIBRARY 
DBM_MULTIPLY_TASK_REORDER 

Definition at line 13 of file dbm_multiply_cpu.h.

◆ dbm_multiply_task_order

Enumerator
DBM_TASK_ORDER_NONE 
DBM_TASK_ORDER_SHAPE 

Definition at line 19 of file dbm_multiply_cpu.h.

Function Documentation

◆ dbm_multiply_cpu_task_order()

void dbm_multiply_cpu_task_order ( const int ntasks,
const dbm_task_t batch[ntasks],
int order[ntasks] )

Internal routine for ordering the tasks of a batch approximately by shape. The order is returned as permutation of the task indexes.

Author
Hans Pabst

Internal routine for ordering the tasks of a batch approximately by shape. The order is returned as permutation of the task indexes.

Author
Hans Pabst

Definition at line 70 of file dbm_multiply_cpu.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbm_multiply_cpu_process_batch()

void dbm_multiply_cpu_process_batch ( const dbm_batch_t * batch,
double alpha,
const dbm_pack_t * pack_a,
const dbm_pack_t * pack_b,
dbm_shard_t * shard_c,
int options )

Internal routine for executing the tasks in given batch on the CPU.

Author
Ole Schuett

Definition at line 92 of file dbm_multiply_cpu.c.

Here is the call graph for this function:
Here is the caller graph for this function: