Skip to content

Commit

Permalink
removed outdated packed GEMM, GETRF, TRSM, TRMM
Browse files Browse the repository at this point in the history
  • Loading branch information
alheinecke committed May 2, 2021
1 parent a9125e1 commit 30514b9
Show file tree
Hide file tree
Showing 46 changed files with 5 additions and 13,294 deletions.
12 changes: 0 additions & 12 deletions .abi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ libxsmm_diff_i32
libxsmm_diff_i64
libxsmm_diff_i8
libxsmm_diff_n
libxsmm_dispatch_getrf
libxsmm_dispatch_matrix_eqn
libxsmm_dispatch_matrix_eqn_desc
libxsmm_dispatch_meltw
Expand All @@ -99,9 +98,6 @@ libxsmm_dispatch_meltw_opreduce_vecs_idx
libxsmm_dispatch_meltw_reduce_cols_idx
libxsmm_dispatch_meltw_ternary
libxsmm_dispatch_meltw_unary
libxsmm_dispatch_pgemm
libxsmm_dispatch_trmm
libxsmm_dispatch_trsm
libxsmm_dmmavailable
libxsmm_dmmcall
libxsmm_dmmcall_abc
Expand Down Expand Up @@ -260,20 +256,16 @@ libxsmm_gemm_xprint
libxsmm_generator_gemm_directasm
libxsmm_generator_gemm_inlineasm
libxsmm_generator_gemm_kernel
libxsmm_generator_getrf_kernel
libxsmm_generator_mateltwise_kernel
libxsmm_generator_matequation_kernel
libxsmm_generator_packed_gemm_ac_rm
libxsmm_generator_packed_gemm_bc_rm
libxsmm_generator_packed_spgemm_csc_kernel
libxsmm_generator_packed_spgemm_csr_kernel
libxsmm_generator_pgemm_kernel
libxsmm_generator_spgemm
libxsmm_generator_spgemm_csc_kernel
libxsmm_generator_spgemm_csr_kernel
libxsmm_generator_spgemm_csr_reg_kernel
libxsmm_generator_trmm_kernel
libxsmm_generator_trsm_kernel
libxsmm_get_default_allocator
libxsmm_get_gemm_auto_prefetch
libxsmm_get_gemm_prefetch
Expand All @@ -296,7 +288,6 @@ libxsmm_get_target_archid
libxsmm_get_tid
libxsmm_get_timer_info
libxsmm_get_verbosity
libxsmm_getrf_descriptor_init
libxsmm_hash
libxsmm_hash_char
libxsmm_hash_i32
Expand Down Expand Up @@ -389,7 +380,6 @@ libxsmm_otrans_s1
libxsmm_otrans_s2
libxsmm_otrans_task
libxsmm_otrans_task_internal
libxsmm_pgemm_descriptor_init
libxsmm_primes_u32
libxsmm_product_limit
libxsmm_ptr_b0
Expand Down Expand Up @@ -532,8 +522,6 @@ libxsmm_trace
libxsmm_trace_finalize
libxsmm_trace_info
libxsmm_trace_init
libxsmm_trmm_descriptor_init
libxsmm_trsm_descriptor_init
libxsmm_truncate_convert_f32_bf16
libxsmm_typesize
libxsmm_usbimmdispatch
Expand Down
9 changes: 0 additions & 9 deletions include/libxsmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,6 @@ LIBXSMM_API void libxsmm_matrix_eqn_rpn_print( const libxsmm_blasint idx );
LIBXSMM_API libxsmm_matrix_eqn_function libxsmm_dispatch_matrix_eqn_desc( const libxsmm_meqn_descriptor* descriptor );
LIBXSMM_API libxsmm_matrix_eqn_function libxsmm_dispatch_matrix_eqn( const libxsmm_blasint m, const libxsmm_blasint n, const libxsmm_blasint* ldo, const libxsmm_datatype out_type, const unsigned int eqn_idx );

/** Code generation routine for GEMM/packed using a descriptor */
LIBXSMM_API libxsmm_pgemm_xfunction libxsmm_dispatch_pgemm(const libxsmm_pgemm_descriptor* descriptor);
/** Code generation routine for GETRF/packed using a descriptor */
LIBXSMM_API libxsmm_getrf_xfunction libxsmm_dispatch_getrf(const libxsmm_getrf_descriptor* descriptor);
/** Code generation routine for TRMM/packed using a descriptor */
LIBXSMM_API libxsmm_trmm_xfunction libxsmm_dispatch_trmm(const libxsmm_trmm_descriptor* descriptor);
/** Code generation routine for TRSM/packed using a descriptor */
LIBXSMM_API libxsmm_trsm_xfunction libxsmm_dispatch_trsm(const libxsmm_trsm_descriptor* descriptor);

/**
* Code generation routine for the CSR format which multiplies a dense SOA matrix (each element holds a SIMD-width
* wide vector) and a sparse matrix or a sparse matrix with a dense SOA matrix.
Expand Down
42 changes: 0 additions & 42 deletions include/libxsmm_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,26 +91,6 @@ LIBXSMM_API libxsmm_meqn_descriptor* libxsmm_meqn_descriptor_init(libxsmm_descri
libxsmm_datatype type, libxsmm_blasint m, libxsmm_blasint n,
libxsmm_blasint ldo, unsigned int eqn_idx);


/** Initialize packed trsm descriptor as used by low-level routines. */
LIBXSMM_API libxsmm_trsm_descriptor* libxsmm_trsm_descriptor_init(libxsmm_descriptor_blob* blob,
unsigned int typesize, libxsmm_blasint m, libxsmm_blasint n, libxsmm_blasint lda, libxsmm_blasint ldb,
const void* alpha, char transa, char diag, char side, char uplo, int layout);

/** Initialize packed trmm descriptor as used by low-level routines. */
LIBXSMM_API libxsmm_trmm_descriptor* libxsmm_trmm_descriptor_init(libxsmm_descriptor_blob* blob,
unsigned int typesize, libxsmm_blasint m, libxsmm_blasint n, libxsmm_blasint lda, libxsmm_blasint ldb,
const void* alpha, char transa, char diag, char side, char uplo, int layout);

/** Initialize packed getrf descriptor as used by low-level routines. */
LIBXSMM_API libxsmm_getrf_descriptor* libxsmm_getrf_descriptor_init(libxsmm_descriptor_blob* blob,
unsigned int typesize, libxsmm_blasint m, libxsmm_blasint n, libxsmm_blasint lda, int layout);

/** Initialize packed pgemm descriptor as used by low-level routines. */
LIBXSMM_API libxsmm_pgemm_descriptor* libxsmm_pgemm_descriptor_init(libxsmm_descriptor_blob* blob,
unsigned int typesize, libxsmm_blasint m, libxsmm_blasint n, libxsmm_blasint k, libxsmm_blasint lda, libxsmm_blasint ldb, libxsmm_blasint ldc,
const void* alpha, char transa, char transb, int layout);

/** Structure referring to the generated code with some attached information. */
LIBXSMM_EXTERN_C typedef struct libxsmm_generated_code {
void* generated_code; /** pointer to memory which can contain strings or binary code */
Expand Down Expand Up @@ -218,28 +198,6 @@ void libxsmm_generator_packed_gemm_bc_rm( libxsmm_generated_code* io_gen
const libxsmm_gemm_descriptor* i_xgemm_desc,
const unsigned int i_packed_width );

LIBXSMM_API
void libxsmm_generator_pgemm_kernel( libxsmm_generated_code* io_generated_code,
const libxsmm_pgemm_descriptor* i_packed_pgemm_desc,
int i_arch, ... );

LIBXSMM_API
void libxsmm_generator_getrf_kernel( libxsmm_generated_code* io_generated_code,
const libxsmm_getrf_descriptor* i_packed_pgemm_desc,
int i_arch );

/* @TODO change int based architecture value */
LIBXSMM_API
void libxsmm_generator_trmm_kernel( libxsmm_generated_code* io_generated_code,
const libxsmm_trmm_descriptor* i_packed_trmm_desc,
const char* i_arch );

/* @TODO change int based architecture value */
LIBXSMM_API
void libxsmm_generator_trsm_kernel( libxsmm_generated_code* io_generated_code,
const libxsmm_trsm_descriptor* i_packed_trsm_desc,
const char* i_arch );

LIBXSMM_API
void libxsmm_generator_mateltwise_kernel( libxsmm_generated_code* io_generated_code,
const libxsmm_meltw_descriptor* i_mateltw_desc );
Expand Down
5 changes: 0 additions & 5 deletions include/libxsmm_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@
#include "../src/generator_matequation_avx_avx512.c"
#include "../src/generator_matequation_regblocks_avx_avx512.c"
#include "../src/generator_matequation_scratch_avx_avx512.c"
#include "../src/generator_packed.c"
#include "../src/generator_packed_gemm_ac_rm.c"
#include "../src/generator_packed_gemm_ac_rm_aarch64.c"
#include "../src/generator_packed_gemm_ac_rm_avx_avx2_avx512.c"
#include "../src/generator_packed_gemm_avx_avx512.c"
#include "../src/generator_packed_gemm_bc_rm.c"
#include "../src/generator_packed_gemm_bc_rm_aarch64.c"
#include "../src/generator_packed_gemm_bc_rm_avx_avx2_avx512.c"
#include "../src/generator_packed_getrf_avx_avx512.c"
#include "../src/generator_packed_spgemm.c"
#include "../src/generator_packed_spgemm_csc_bsparse.c"
#include "../src/generator_packed_spgemm_csc_bsparse_aarch64.c"
Expand All @@ -82,8 +79,6 @@
#include "../src/generator_packed_spgemm_csr_bsparse.c"
#include "../src/generator_packed_spgemm_csr_bsparse_aarch64.c"
#include "../src/generator_packed_spgemm_csr_bsparse_avx_avx2_avx512.c"
#include "../src/generator_packed_trmm_avx_avx512.c"
#include "../src/generator_packed_trsm_avx_avx512.c"
#include "../src/generator_spgemm.c"
#include "../src/generator_spgemm_csc_asparse.c"
#include "../src/generator_spgemm_csc_bsparse.c"
Expand Down
36 changes: 2 additions & 34 deletions include/libxsmm_typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,6 @@ LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_descriptor_blob {
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_gemm_descriptor libxsmm_gemm_descriptor;
/** Structure storing arguments of the matrix-eltw routine. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_meltw_descriptor libxsmm_meltw_descriptor;
/** Structure storing arguments of packed TRSM. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_trsm_descriptor libxsmm_trsm_descriptor;
/** Structure storing arguments of packed TRMM. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_trmm_descriptor libxsmm_trmm_descriptor;
/** Structure storing arguments of packed GETRF. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_getrf_descriptor libxsmm_getrf_descriptor;
/** Structure storing arguments of packed GEMM. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_pgemm_descriptor libxsmm_pgemm_descriptor;
/** Structure storing arguments of the matrix-equation routine. */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_meqn_descriptor libxsmm_meqn_descriptor;

Expand Down Expand Up @@ -533,18 +525,10 @@ typedef enum libxsmm_kernel_kind {
LIBXSMM_KERNEL_KIND_MELTW = 1,
/** Mateqn kernel kind */
LIBXSMM_KERNEL_KIND_MEQN = 2,
/** GEMM/packed kernel kind */
LIBXSMM_KERNEL_KIND_PGEMM = 3,
/** GEMM/packed kernel kind */
LIBXSMM_KERNEL_KIND_GETRF = 4,
/** TRMM kernel kind */
LIBXSMM_KERNEL_KIND_TRMM = 5,
/** TRSM kernel kind */
LIBXSMM_KERNEL_KIND_TRSM = 6,
/** User-defined kernels */
LIBXSMM_KERNEL_KIND_USER = 7,
LIBXSMM_KERNEL_KIND_USER = 3,
/** Not a JIT kernel */
LIBXSMM_KERNEL_UNREGISTERED = 8
LIBXSMM_KERNEL_UNREGISTERED = 4
} libxsmm_kernel_kind;

typedef enum libxsmm_dnn_tensor_format {
Expand Down Expand Up @@ -846,22 +830,6 @@ LIBXSMM_EXTERN_C typedef union LIBXSMM_RETARGETABLE libxsmm_xmmfunction {
/* matrix equation function */
LIBXSMM_EXTERN_C typedef LIBXSMM_RETARGETABLE void (*libxsmm_matrix_eqn_function)(const libxsmm_matrix_eqn_param* in_struct);

/** Specialized function for packed GEMM (weak-typed). */
LIBXSMM_EXTERN_C typedef LIBXSMM_RETARGETABLE void (*libxsmm_pgemm_xfunction)(
const void* a, const void* b, void* c);

/** Specialized function for packed GEMM (weak-typed). */
LIBXSMM_EXTERN_C typedef LIBXSMM_RETARGETABLE void (*libxsmm_getrf_xfunction)(
const void* a, const void* b, void* c);

/** Specialized function for TRMM (weak-typed). */
LIBXSMM_EXTERN_C typedef LIBXSMM_RETARGETABLE void (*libxsmm_trmm_xfunction)(
const void* a, const void* b, void* c);

/** Specialized function for TRSM (weak-typed). */
LIBXSMM_EXTERN_C typedef LIBXSMM_RETARGETABLE void (*libxsmm_trsm_xfunction)(
const void* a, const void* b, void* c);

/** Structure to receive information about GEMM-kernels (libxsmm_get_mmkernel_info). */
LIBXSMM_EXTERN_C typedef struct LIBXSMM_RETARGETABLE libxsmm_mmkernel_info {
/** Input/output data-type */
Expand Down
107 changes: 0 additions & 107 deletions samples/packed/gemm/Makefile

This file was deleted.

29 changes: 0 additions & 29 deletions samples/packed/gemm/blas_aux.c

This file was deleted.

Loading

0 comments on commit 30514b9

Please sign in to comment.