File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ JNIEXPORT jdouble JNICALL Java_edu_berkeley_bid_CPUMACH_word2vecEvalPos
276
276
cv = cv / (1.0f + cv );
277
277
}
278
278
279
- dv += log (max ((double )cv , 1.0e-40 ));
279
+ dv += log (fmax ((double )cv , 1.0e-40 ));
280
280
}
281
281
}
282
282
}
@@ -346,7 +346,7 @@ JNIEXPORT jdouble JNICALL Java_edu_berkeley_bid_CPUMACH_word2vecEvalNeg
346
346
cv = exp (cv );
347
347
cv = cv / (1.0f + cv );
348
348
}
349
- dv += log (max (1.0 - (double )cv , 1.0e-40 ));
349
+ dv += log (fmax (1.0 - (double )cv , 1.0e-40 ));
350
350
}
351
351
}
352
352
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if [ "$OS" = "apple" ] ; then
60
60
JAVA_HOME=` /usr/libexec/java_home`
61
61
fi
62
62
CUDA_HOME=" /usr/local/cuda"
63
- CC=" gcc "
63
+ CC=" icc "
64
64
GCC=" g++"
65
65
NVCC=" nvcc"
66
66
NVCCFLAGS=" -c -ccbin=clang -use_fast_math -I$BIDMACH_ROOT /jni/include \
@@ -72,9 +72,9 @@ if [ "$OS" = "apple" ] ; then
72
72
OBJ=" o"
73
73
OUTFLG=" -o "
74
74
CPPFLAGS=" -fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME /include -I$JAVA_HOME /include/darwin -I$BIDMACH_ROOT /jni/include -I$CUDA_HOME /include"
75
- CFLAGS=" -fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME /include -I$JAVA_HOME /include/darwin -I$MKL_ROOT /include -I$MKL_ROOT /include/${ARCHD}${SUBDIR} "
75
+ CFLAGS=" -openmp - fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME /include -I$JAVA_HOME /include/darwin -I$MKL_ROOT /include -I$MKL_ROOT /include/${ARCHD}${SUBDIR} "
76
76
LB=" ar rc"
77
- LD=" g++ -shared "
77
+ LD=" icc -dynamiclib "
78
78
GLD=" nvcc -shared -Xlinker -rpath -Xlinker ${CUDA_HOME} /lib -lstdc++"
79
79
LDFLAGS=" $LDFLAGS "
80
80
LIBPREPEND=" lib"
You can’t perform that action at this time.
0 commit comments