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
This commit is contained in:
Kiran Varaganti
2020-09-16 21:49:58 +05:30
parent 6c9bf36424
commit 5a8bd9f41c

View File

@@ -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