Skip to content

Commit 0a7a8b4

Browse files
committed
fix openmp + interface shim
1 parent aa76b29 commit 0a7a8b4

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

meson.build

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ if is_windows
1515
add_project_arguments('-DWIN32', '-D_WINDOWS', language : ['c', 'cpp'])
1616
endif
1717

18-
# Resolve SLEEF BEFORE the QBLAS subproject. QBLAS calls subproject('sleef')
19-
# without options when it's loaded as a subproject, and meson caches the
20-
# first subproject() call - so if QBLAS were loaded first, our disable_fma
21-
# option would be silently dropped (the SLEEF instance with FMA enabled
22-
# would be the one shipped, breaking Sandy Bridge SDE tests).
18+
2319
required_sleef_version = '3.9.0'
2420
# Don't use fallback here - we need to call subproject() explicitly later with disable_fma option
2521
sleef_dep = dependency('sleef', version: '>=' + required_sleef_version, required: false)

src/csrc/quadblas_interface.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
/* numpy-quaddtype shim around QBLAS.
2-
*
3-
* The legacy code called the QuadBLAS:: C++ template namespace from the
4-
* pre-overhaul, header-only QBLAS. The current QBLAS (branch
5-
* `overhaul-rewrite`) exposes a stable C ABI in `qblas/qblas.h` with
6-
* CBLAS-style entry points (`cblas_qdot`, `cblas_qgemm`, …) and runtime
7-
* SIMD dispatch (sse2/avx2/avx512/neon). This file translates the
8-
* `qblas_dot` / `qblas_gemv` / `qblas_gemm` symbols that the rest of
9-
* numpy-quaddtype calls into the new CBLAS-style API. Function
10-
* signatures exposed to the rest of the package are unchanged.
11-
*/
1+
// numpy-quaddtype shim around QBLAS.
122

133
#include "quadblas_interface.h"
144
#include <cstring>
@@ -79,7 +69,6 @@ qblas_gemm(char layout, char transa, char transb,
7969
int
8070
qblas_supports_backend(QuadBackendType backend)
8171
{
82-
/* QBLAS only supports the SLEEF backend (it is built on top of SLEEF). */
8372
return (backend == BACKEND_SLEEF) ? 1 : 0;
8473
}
8574

0 commit comments

Comments
 (0)