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
GitLab 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
Aug 27, 2009
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
more tweaks for samtech
parent
54728a8e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show 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)
...
@@ -149,24 +149,21 @@ if(ENABLE_BLAS_LAPACK)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH ia32/lib
)
set
(
MKL_PATH ia32/lib
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MSVC_MKL_REQUIRED libguide mkl_c mkl_intel_c mkl_intel_thread mkl_core
)
set
(
MKL_LIBS_REQUIRED libguide mkl_c mkl_intel_c mkl_intel_thread mkl_core
)
find_all_libraries
(
MSVC_MKL_LIBRARIES MSVC_MKL_REQUIRED
${
MKL_PATH
}
)
find_all_libraries
(
LAPACK_LIBRARIES MKL_LIBS_REQUIRED
${
MKL_PATH
}
)
if
(
MSVC_MKL_LIBRARIES
)
if
(
LAPACK_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
MKL_MSVC_LIBRARIES
}
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
endif
(
MSVC_MKL_LIBRARIES
)
else
(
LAPACK_LIBRARIES
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
set
(
REFLAPACK_LIBS_REQUIRED lapack blas g2c gcc
)
set
(
MSVC_REF_REQUIRED lapack blas g2c gcc
)
find_all_libraries
(
LAPACK_LIBRARIES REFLAPACK_LIBS_REQUIRED
""
)
find_all_libraries
(
MSVC_REF_LIBRARIES MSVC_REF_REQUIRED
""
)
if
(
LAPACK_LIBRARIES
)
if
(
MSVC_REF_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
MSVC_REF_LIBRARIES
}
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"RefBlas"
"RefLapack"
)
list
(
APPEND CONFIG_OPTIONS
"RefBlas"
"RefLapack"
)
endif
(
MSVC_REF
_LIBRARIES
)
endif
(
LAPACK
_LIBRARIES
)
endif
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
endif
(
LAPACK_LIBRARIES
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Linux"
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Linux"
)
# on Linux also try to find the Intel MKL without a Fortran
# on Linux also try to find the Intel MKL without a Fortran
# compiler
# compiler
...
@@ -175,14 +172,13 @@ if(ENABLE_BLAS_LAPACK)
...
@@ -175,14 +172,13 @@ if(ENABLE_BLAS_LAPACK)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
else
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
MKL_PATH lib/32
)
set
(
MKL_PATH lib/32
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
endif
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
LINUX_MKL_REQUIRED guide mkl_gf_lp64 iomp5 mkl_gnu_thread mkl_core
)
set
(
MKL_LIBS_REQUIRED guide mkl_gf_lp64 iomp5 mkl_gnu_thread mkl_core
)
find_all_libraries
(
LINUX_MKL_LIBRARIES LINUX_MKL_REQUIRED
${
MKL_PATH
}
)
find_all_libraries
(
LAPACK_LIBRARIES MKL_LIBS_REQUIRED
${
MKL_PATH
}
)
if
(
LINUX_MKL_LIBRARIES
)
if
(
LAPACK_LIBRARIES
)
set
(
LAPACK_LIBRARIES
${
LINUX_MKL_LIBRARIES
}
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_BLAS TRUE
)
set
(
HAVE_LAPACK TRUE
)
set
(
HAVE_LAPACK TRUE
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
list
(
APPEND CONFIG_OPTIONS
"IntelBlas"
"IntelLapack"
)
endif
(
L
INUX_MKL
_LIBRARIES
)
endif
(
L
APACK
_LIBRARIES
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"SunOS"
)
elseif
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"SunOS"
)
# on SunOS we know blas and lapack are available in sunperf
# on SunOS we know blas and lapack are available in sunperf
set
(
HAVE_BLAS TRUE
)
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