Skip to content

Commit

Permalink
[Misc] Disable LibXSMM SpMM Cmp for AVX2 platforms (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaraban authored Jul 10, 2023
1 parent e1f663f commit 62351d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/array/cpu/spmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ void SpMMCmpCsr(
#if !defined(_WIN32)
#ifdef USE_LIBXSMM
int cpu_id = libxsmm_cpuid_x86();
const bool no_libxsmm =
bcast.use_bcast || std::is_same<DType, double>::value ||
(std::is_same<DType, BFloat16>::value && cpu_id < LIBXSMM_X86_AVX512) ||
!dgl::runtime::Config::Global()->IsLibxsmmAvailable();
const bool no_libxsmm = bcast.use_bcast ||
std::is_same<DType, double>::value ||
cpu_id < LIBXSMM_X86_AVX512 ||
!dgl::runtime::Config::Global()->IsLibxsmmAvailable();
if (!no_libxsmm) {
SpMMCmpCsrLibxsmm<IdType, DType, Op, Cmp>(
bcast, csr, ufeat, efeat, out, argu, arge);
Expand Down

0 comments on commit 62351d8

Please sign in to comment.