Skip to content

Commit

Permalink
Make AVX512 BFLOAT16 kernels conditional on compiler capability
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jan 11, 2024
1 parent 1dada6d commit 995a990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/x86_64/KERNEL.COOPERLAKE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include $(KERNELDIR)/KERNEL.SKYLAKEX

ifneq ($(NO_AVX512BF16), 1)
SBGEMM_SMALL_M_PERMIT = sbgemm_small_kernel_permit_cooperlake.c
SBGEMM_SMALL_K_NN = sbgemm_small_kernel_nn_cooperlake.c
SBGEMM_SMALL_K_B0_NN = sbgemm_small_kernel_nn_cooperlake.c
Expand All @@ -20,3 +20,4 @@ SBGEMMINCOPYOBJ = sbgemm_incopy$(TSUFFIX).$(SUFFIX)
SBGEMMITCOPYOBJ = sbgemm_itcopy$(TSUFFIX).$(SUFFIX)
SBGEMMONCOPYOBJ = sbgemm_oncopy$(TSUFFIX).$(SUFFIX)
SBGEMMOTCOPYOBJ = sbgemm_otcopy$(TSUFFIX).$(SUFFIX)
endif
2 changes: 2 additions & 0 deletions kernel/x86_64/KERNEL.SAPPHIRERAPIDS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include $(KERNELDIR)/KERNEL.COOPERLAKE

ifneq ($(NO_AVX512BF16), 1)
SBGEMM_SMALL_M_PERMIT =
SBGEMM_SMALL_K_NN =
SBGEMM_SMALL_K_B0_NN =
Expand All @@ -20,3 +21,4 @@ SBGEMMINCOPYOBJ = sbgemm_incopy$(TSUFFIX).$(SUFFIX)
SBGEMMITCOPYOBJ = sbgemm_itcopy$(TSUFFIX).$(SUFFIX)
SBGEMMONCOPYOBJ = sbgemm_oncopy$(TSUFFIX).$(SUFFIX)
SBGEMMOTCOPYOBJ = sbgemm_otcopy$(TSUFFIX).$(SUFFIX)
endif

0 comments on commit 995a990

Please sign in to comment.