Skip to content

Commit

Permalink
Intel MKL and ARM PL Support (WIP)
Browse files Browse the repository at this point in the history
Support:

- Intel MKL (WIP)
- ARM PL Support (WIP)
  • Loading branch information
trholding committed Aug 5, 2023
1 parent dd336b0 commit 9c31c84
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
BLIS_PREFIX = /usr/local
BLIS_INC = $(BLIS_PREFIX)/include/blis
BLIS_LIB = $(BLIS_PREFIX)/lib/libblis.a
# -L${MKLROOT}/lib/intel64 -lmkl_rt -Wl,--no-as-needed -lpthread -lm -ldl
# -m64 -I"${MKLROOT}/include"


# choose your compiler, e.g. gcc/clang
# example override to clang: make run CC=clang
Expand Down Expand Up @@ -71,6 +74,14 @@ runblas: run.c
.PHONY: runblis
runblis: run.c
$(CC) -D BLIS -Ofast -fopenmp -march=native -I$(BLIS_INC) run.c -lm -lblis -o run

.PHONY: runarmpl
runarmpl: run.c
$(CC) -D ARMPL -Ofast -fopenmp -march=native run.c -lm -larmpl_lp64_mp -o run

.PHONY: runmkl
runmkl: run.c
$(CC) -D MKL -Ofast -fopenmp -march=native -I$(BLIS_INC) run.c -lm -lblis -o run

.PHONY: cosmorun
cosmorun:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ Read more:
- [x] OpenBLAS
- [x] CBLAS
- [x] BLIS
- [ ] Intel MKL (WIP)
- [ ] ArmPL (WIP)

**CPU/GPU**

- [x] OpenMP
- [x] OpenACC

Both OpenMP and OpenACC builds currently use host CPU and not offload GPU.
Both OpenMP and OpenACC builds currently use host CPU and do not offload GPU.

**GPU**

Expand Down Expand Up @@ -336,6 +338,8 @@ Else
- [ ] Alt model embedding
- [ ] NetBSD Rump Kernel Boot
- [ ] GNU/Linux Linux Minimal Boot
- [ ] Intel MKL Acceleration (WIP)
- [ ] Arm Performance Libraries (WIP)
- [ ] EFI Capsule
- [ ] OpenCL pure
- [ ] Vulkan
Expand Down
6 changes: 5 additions & 1 deletion run.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ __static_yoink("zipos");
// ----------------------------------------------------------------------------
// BLAS Support

#if defined(CLBLAST) || defined(OPENBLAS) || defined(CBLAS) || defined(BLIS)
#if defined(CLBLAST) || defined(OPENBLAS) || defined(CBLAS) || defined(BLIS) || defined(MKL) || defined(ARMPL)
#define BLAS
#endif

Expand All @@ -47,6 +47,10 @@ __static_yoink("zipos");
#elif defined(BLIS)
#include "blis.h"
#include "cblas.h"
#elif defined(MKL)
#include "mkl.h"
#elif defined(ARMPL)
#include <armpl.h>
#elif defined(OPENBLAS) || defined(CBLAS)
#include <cblas.h>
#endif
Expand Down

0 comments on commit 9c31c84

Please sign in to comment.