Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
7a15aedf
Commit
7a15aedf
authored
Sep 07, 2019
by
Haichen Shen
Committed by
Yizhi Liu
Sep 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] Fix blas cmake for mac os (#3898)
* fix cmake for mac os * rename
parent
8c50469c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cmake/modules/contrib/BLAS.cmake
+5
-5
No files found.
cmake/modules/contrib/BLAS.cmake
View file @
7a15aedf
...
...
@@ -28,17 +28,17 @@ elseif(USE_BLAS STREQUAL "mkl")
set
(
USE_MKL_PATH /opt/intel/mkl
)
endif
()
if
(
APPLE
)
find_library
(
BLAS_LIBRARY NAMES mklml mkl_rt HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64
)
find_library
(
BLAS_LIBRARY
_MKL
NAMES mklml mkl_rt HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64
)
elseif
(
UNIX
)
find_library
(
BLAS_LIBRARY NAMES mkl_rt mklml_gnu HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64
)
find_library
(
BLAS_LIBRARY
_MKL
NAMES mkl_rt mklml_gnu HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64
)
elseif
(
MSVC
)
find_library
(
BLAS_LIBRARY NAMES mkl_rt HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64_win
)
find_library
(
BLAS_LIBRARY
_MKL
NAMES mkl_rt HINTS
${
USE_MKL_PATH
}
/lib/
${
USE_MKL_PATH
}
/lib/intel64_win
)
endif
()
include_directories
(
${
USE_MKL_PATH
}
/include
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
BLAS_LIBRARY
}
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
BLAS_LIBRARY
_MKL
}
)
list
(
APPEND RUNTIME_SRCS
${
CBLAS_CONTRIB_SRC
}
)
add_definitions
(
-DUSE_MKL_BLAS=1
)
message
(
STATUS
"Use BLAS library "
${
BLAS_LIBRARY
}
)
message
(
STATUS
"Use BLAS library "
${
BLAS_LIBRARY
_MKL
}
)
elseif
(
USE_BLAS STREQUAL
"atlas"
OR USE_BLAS STREQUAL
"blas"
)
find_library
(
BLAS_LIBRARY cblas
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
BLAS_LIBRARY
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment