Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
fe5834ce
Commit
fe5834ce
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
more tweaks for samtech
parent
54728a8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+13
-17
13 additions, 17 deletions
CMakeLists.txt
with
13 additions
and
17 deletions
CMakeLists.txt
+
13
−
17
View file @
fe5834ce
...
...
@@ -149,24 +149,21 @@ if(ENABLE_BLAS_LAPACK)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH ia32/lib
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MSVC_MKL_REQUIRED libguide mkl_c mkl_intel_c mkl_intel_thread mkl_core
)
find_all_libraries
(
MSVC_MKL_LIBRARIES MSVC_MKL_REQUIRED
${
MKL_PATH
}
)
if
(
MSVC_MKL_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
MKL_MSVC_LIBRARIES
}
)
set
(
MKL_LIBS_REQUIRED libguide mkl_c mkl_intel_c mkl_intel_thread mkl_core
)
find_all_libraries
(
LAPACK_LIBRARIES MKL_LIBS_REQUIRED
${
MKL_PATH
}
)
if
(
LAPACK_LIBRARIES
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
endif
(
MSVC_MKL_LIBRARIES
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
set
(
MSVC_REF_REQUIRED lapack blas g2c gcc
)
find_all_libraries
(
MSVC_REF_LIBRARIES MSVC_REF_REQUIRED
""
)
if
(
MSVC_REF_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
MSVC_REF_LIBRARIES
}
)
else
(
LAPACK_LIBRARIES
)
set
(
REFLAPACK_LIBS_REQUIRED lapack blas g2c gcc
)
find_all_libraries
(
LAPACK_LIBRARIES REFLAPACK_LIBS_REQUIRED
""
)
if
(
LAPACK_LIBRARIES
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"RefBlas"
"RefLapack"
)
endif
(
MSVC_REF
_LIBRARIES
)
endif
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
endif
(
LAPACK
_LIBRARIES
)
endif
(
LAPACK_LIBRARIES
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Linux"
)
# on Linux also try to find the Intel MKL without a Fortran
# compiler
...
...
@@ -175,14 +172,13 @@ if(ENABLE_BLAS_LAPACK)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH lib/32
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
LINUX_MKL_REQUIRED guide mkl_gf_lp64 iomp5 mkl_gnu_thread mkl_core
)
find_all_libraries
(
LINUX_MKL_LIBRARIES LINUX_MKL_REQUIRED
${
MKL_PATH
}
)
if
(
LINUX_MKL_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
LINUX_MKL_LIBRARIES
}
)
set
(
MKL_LIBS_REQUIRED guide mkl_gf_lp64 iomp5 mkl_gnu_thread mkl_core
)
find_all_libraries
(
LAPACK_LIBRARIES MKL_LIBS_REQUIRED
${
MKL_PATH
}
)
if
(
LAPACK_LIBRARIES
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
endif
(
L
INUX_MKL
_LIBRARIES
)
endif
(
L
APACK
_LIBRARIES
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"SunOS"
)
# on SunOS we know blas and lapack are available in sunperf
set
(
HAVE_BLAS TRUE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment