You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2019/07/19 03:42:44 UTC

[incubator-mxnet] 24/28: add/test the support with Openblas in Windows X64

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to tag v1.1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit bc8aa8467b6c52de5176fe65ec614290203520a8
Merge: 46489a7 e294d63
Author: SiNZeRo <fl...@gmail.com>
AuthorDate: Sat Dec 27 14:29:54 2014 +0000

    add/test the support with Openblas in Windows X64

 example/Makefile.openblas | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --cc example/Makefile.openblas
index 0000000,0000000..bd90eca
new file mode 100644
--- /dev/null
+++ b/example/Makefile.openblas
@@@ -1,0 -1,0 +1,37 @@@
++# set LD_LIBRARY_PATH
++# echo "Link mshadow with precomplied Openblas"
++export OPENBLAS_ROOT=../../OpenBLAS-v0.2.13-Win64-int32
++export CC  = gcc
++export CXX = g++
++export NVCC =nvcc
++export CFLAGS = -Wall -O3 -msse3 -Wno-unknown-pragmas -funroll-loops -I../ -I$(OPENBLAS_ROOT)/include -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_CBLAS=1 -D__APPLE__
++export LDFLAGS= -static -lpthread -lopenblas -L$(OPENBLAS_ROOT)/lib
++export NVCCFLAGS = -O3 --use_fast_math -ccbin $(CXX)
++
++# specify tensor path
++BIN = basic defop basic-matrix-dot
++OBJ =
++CUOBJ =
++CUBIN =
++.PHONY: clean all
++
++all: $(BIN) $(OBJ) $(CUBIN) $(CUOBJ)
++
++basic: basic.cpp
++defop: defop.cpp
++basic-matrix-dot: basic-matrix-dot.cpp
++
++$(BIN) :
++	$(CXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c, $^)  $(LDFLAGS)
++
++$(OBJ) :
++	$(CXX) -c $(CFLAGS) -o $@ $(firstword $(filter %.cpp %.c, $^) )
++
++$(CUOBJ) :
++	$(NVCC) -c -o $@ $(NVCCFLAGS) -Xcompiler "$(CFLAGS)" $(filter %.cu, $^)
++
++$(CUBIN) :
++	$(NVCC) -o $@ $(NVCCFLAGS) -Xcompiler "$(CFLAGS)" -Xlinker "$(LDFLAGS)" $(filter %.cu %.cpp %.o, $^)
++
++clean:
++	$(RM) $(OBJ) $(BIN) $(CUBIN) $(CUOBJ) *~