1diff -ru -x '*~' WideLM_orig/src/Makefile.in WideLM/src/Makefile.in
2--- WideLM_orig/src/Makefile.in 2012-02-17 04:28:05.000000000 +0900
3+++ WideLM/src/Makefile.in 2014-10-25 18:54:49.110011921 +0900
4@@ -12,12 +12,12 @@
5 #compiler/preprocessor options
6 R_INCS := @R_INCL@ @RCPP_INCL@
7 CC_ARGS := @CU_PARAMS@ -Xcompiler @R_CPIC@
8-CU_INCS := -I@CUDA_HOME@/include
9+CU_INCS := -I@CUDA_HOME@/include
10 CU_ARCH := -gencode arch=compute_20,code=sm_20
11
12 #linker options
13-LD_PARAMS := -Xlinker "@RCPP_LDFLAGS@"
14-RCU_LIBS := @R_LIB@ -L@CU_LIBDIR@ -lcublas
15+LD_PARAMS := -Xlinker "--export-dynamic -fopenmp -L${R_HOME}/lib -lR"
16+RCU_LIBS := -Xlinker "-L@CU_LIBDIR@ -lcublas"
17
18 all : WideLM.so
19