Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
7a51ba8a
There was an error fetching the commit references. Please try again later.
Commit
7a51ba8a
authored
5 years ago
by
Tomáš Oberhuber
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added option for turning off build with BLAS.
parent
c81fb4cc
No related branches found
No related tags found
1 merge request
!32
Expression templates 2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+6
-4
6 additions, 4 deletions
CMakeLists.txt
build
+6
-1
6 additions, 1 deletion
build
with
12 additions
and
5 deletions
CMakeLists.txt
+
6
−
4
View file @
7a51ba8a
...
...
@@ -317,10 +317,12 @@ if( ${WITH_TESTS} )
endif
()
endif
()
find_package
(
BLAS
)
if
(
BLAS_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHAVE_BLAS"
)
set
(
HAVE_BLAS TRUE
)
if
(
${
WITH_BLAS
}
)
find_package
(
BLAS
)
if
(
BLAS_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHAVE_BLAS"
)
set
(
HAVE_BLAS TRUE
)
endif
()
endif
()
#if( BUILD_MPI )
# FIND_PATH( PETSC_INCLUDE_DIR petsc.h
...
...
This diff is collapsed.
Click to expand it.
build
+
6
−
1
View file @
7a51ba8a
...
...
@@ -28,6 +28,7 @@ WITH_EXAMPLES="yes"
WITH_PYTHON
=
"
yes
"
WITH_TOOLS
=
"
yes
"
WITH_BENCHMARKS
=
"
yes
"
WITH_BLAS
=
"
yes
"
WITH_TEMPLATE_INSTANTIATION
=
"
no
"
INSTANTIATE_LONG_INT
=
"
no
"
...
...
@@ -63,6 +64,7 @@ do
--
with
-
examples
=*
)
WITH_EXAMPLES
=
"
${option#*=}
"
;;
--
with
-
tools
=*
)
WITH_TOOLS
=
"
${option#*=}
"
;;
--
with
-
benchmarks
=*
)
WITH_BENCHMARKS
=
"
${option#*=}
"
;;
--
with
-
blas
=*
)
WITH_BLAS
=
"
${option#*=}
"
;;
--
with
-
python
=*
)
WITH_PYTHON
=
"
${option#*=}
"
;;
--
with
-
templates
-
instantiation
=*
)
WITH_TEMPLATE_INSTANTIATION
=
"
${option#*=}
"
;;
--
instantiate
-
long
-
int
=*
)
INSTANTIATE_LONG_INT
=
"
${option#*=}
"
;;
...
...
@@ -102,6 +104,8 @@ if [[ ${HELP} == "yes" ]]; then
echo
"
--with-examples=yes/no Compile the
'
examples
'
directory.
'
yes
'
by default.
"
echo
"
--with-tools=yes/no Compile the
'
src/Tools
'
directory.
'
yes
'
by default.
"
echo
"
--with-python=yes/no Compile the Python bindings.
'
yes
'
by default.
"
echo
"
--with-benchmarks=yes/no Compile the
'
src/Benchmarks
'
directory.
'
yes
'
by default.
"
echo
"
--with-blas=yes/no Compile the BLAS support - for benchmark purposes only.
'
yes
'
by default.
"
echo
"
--with-templates-instantiation=yes/no Precompiles some TNL templates during the build.
'
no
'
by default.
"
echo
"
--cmake=CMAKE Path to cmake.
'
cmake
'
by default.
"
echo
"
--verbose It enables verbose build.
"
...
...
@@ -172,8 +176,9 @@ cmake_command=(
-
DWITH_COVERAGE
=
$
{
WITH_COVERAGE
}
-
DWITH_EXAMPLES
=
$
{
WITH_EXAMPLES
}
-
DWITH_TOOLS
=
$
{
WITH_TOOLS
}
-
DWITH_BENCHMARKS
=
$
{
WITH_BENCHMARKS
}
-
DWITH_PYTHON
=
$
{
WITH_PYTHON
}
-
DWITH_BENCHMARKS
=
$
{
WITH_BENCHMARKS
}
-
DWITH_BLAS
=
$
{
WITH_BLAS
}
-
DDCMTK_DIR
=
$
{
DCMTK_DIR
}
-
DWITH_TEMPLATE_INSTANTIATION
=
$
{
WITH_TEMPLATE_INSTANTIATION
}
-
DINSTANTIATE_FLOAT
=
$
{
INSTANTIATE_FLOAT
}
...
...
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