-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3461 from tensor-tang/mklso
add shared mkl lib in whl
- Loading branch information
Showing
6 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
if(WITH_MKLML) | ||
set(BLAS_LIB mklml) | ||
else() | ||
set(BLAS_LIB cblas) | ||
endif() | ||
|
||
if(WITH_GPU) | ||
nv_library(math_function SRCS math_function.cc math_function.cu DEPS ${BLAS_LIB} device_context) | ||
nv_library(math_function SRCS math_function.cc math_function.cu DEPS cblas device_context) | ||
else() | ||
cc_library(math_function SRCS math_function.cc DEPS ${BLAS_LIB} device_context) | ||
cc_library(math_function SRCS math_function.cc DEPS cblas device_context) | ||
endif() | ||
|
||
nv_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters