From 5a8bd9f41cd0d2d9f647ec5d176e4db783957bcb Mon Sep 17 00:00:00 2001 From: Kiran Varaganti Date: Wed, 16 Sep 2020 21:49:58 +0530 Subject: [PATCH] Enable BLAS interface in BLIS Modified Makefile in test folder to enable calling BLAS interfaces for BLIS as well. This is possible by replacing -DBLIS with -DBLAS=\"aocl\" in the makefile. Also added linking to multi-threaded MKL library. Change-Id: Iccf2ec99b48bb35da985b69218bc680f678ff7c9 --- test/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index e3b2afe61..7a486860f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,3 +1,4 @@ + # # # BLIS @@ -114,6 +115,14 @@ MKL_LIB := -L$(MKL_LIB_PATH) \ -lmkl_sequential \ -lpthread -lm -ldl +# Uncomment below lines & comment above lines to link with multi-threaded library. +#MKL_LIB := -L$(MKL_LIB_PATH) \ +# -lmkl_intel_lp64 \ +# -lmkl_core \ +# -lmkl_gnu_thread \ +# -lpthread -lm -ldl -liomp5 + + # ESSL # Note: ESSL is named differently for SMP and/or BG #ESSL_TYPE := # This is the 32b library on POWER @@ -324,7 +333,7 @@ test_%_mac.o: test_%.c $(CC) $(CFLAGS) -DBLAS=\"mac\" -c $< -o $@ test_%_blis.o: test_%.c - $(CC) $(CFLAGS) -DBLIS -c $< -o $@ + $(CC) $(CFLAGS) -DBLAS=\"aocl\" -c $< -o $@ # -- Executable file rules -- @@ -374,4 +383,3 @@ clean: cleanx cleanx: - $(RM_F) *.o *.x -