Initial commit

This commit is contained in:
Bram Veenboer
2025-08-01 13:56:02 +02:00
commit a189a80cc2
20 changed files with 500 additions and 0 deletions

16
src/mkl.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <mkl_vml.h>
#include "trigdx/mkl.hpp"
void MKLBackend::compute_sinf(size_t n, const float *x, float *s) const {
vmsSin(static_cast<MKL_INT>(n), x, s, VML_HA);
}
void MKLBackend::compute_cosf(size_t n, const float *x, float *c) const {
vmsCos(static_cast<MKL_INT>(n), x, c, VML_HA);
}
void MKLBackend::compute_sincosf(size_t n, const float *x, float *s,
float *c) const {
vmsSinCos(static_cast<MKL_INT>(n), x, s, c, VML_HA);
}