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
d580f92f
There was an error fetching the commit references. Please try again later.
Commit
d580f92f
authored
7 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Added --with-openmp flag to the build script
parent
a86bd502
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
build
+4
-0
4 additions, 0 deletions
build
with
5 additions
and
1 deletion
CMakeLists.txt
+
1
−
1
View file @
d580f92f
...
@@ -217,7 +217,7 @@ endif( WITH_CUDA STREQUAL "yes" )
...
@@ -217,7 +217,7 @@ endif( WITH_CUDA STREQUAL "yes" )
####
####
# Check for OpenMP
# Check for OpenMP
#
#
if
(
OPENMP_FOUND
)
if
(
OPENMP_FOUND
AND WITH_OPENMP STREQUAL
"yes"
)
message
(
"Compiler supports OpenMP."
)
message
(
"Compiler supports OpenMP."
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHAVE_OPENMP
${
OpenMP_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHAVE_OPENMP
${
OpenMP_CXX_FLAGS
}
"
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
build
+
4
−
0
View file @
d580f92f
...
@@ -15,6 +15,7 @@ VERBOSE=""
...
@@ -15,6 +15,7 @@ VERBOSE=""
WITH_CLANG
=
"
no
"
WITH_CLANG
=
"
no
"
WITH_CUDA
=
"
yes
"
WITH_CUDA
=
"
yes
"
WITH_CUDA_ARCH
=
"
auto
"
WITH_CUDA_ARCH
=
"
auto
"
WITH_OPENMP
=
"
yes
"
WITH_TESTS
=
"
yes
"
WITH_TESTS
=
"
yes
"
WITH_COVERAGE
=
"
no
"
WITH_COVERAGE
=
"
no
"
WITH_EXAMPLES
=
"
yes
"
WITH_EXAMPLES
=
"
yes
"
...
@@ -44,6 +45,7 @@ do
...
@@ -44,6 +45,7 @@ do
--
with
-
mic
=*
)
WITH_MIC
=
"
${option#*=}
"
;;
--
with
-
mic
=*
)
WITH_MIC
=
"
${option#*=}
"
;;
--
with
-
cuda
=*
)
WITH_CUDA
=
"
${option#*=}
"
;;
--
with
-
cuda
=*
)
WITH_CUDA
=
"
${option#*=}
"
;;
--
with
-
cuda
-
arch
=*
)
WITH_CUDA_ARCH
=
"
${option#*=}
"
;;
--
with
-
cuda
-
arch
=*
)
WITH_CUDA_ARCH
=
"
${option#*=}
"
;;
--
with
-
openmp
=*
)
WITH_OPENMP
=
"
${option#*=}
"
;;
--
with
-
tests
=*
)
WITH_TESTS
=
"
${option#*=}
"
;;
--
with
-
tests
=*
)
WITH_TESTS
=
"
${option#*=}
"
;;
--
with
-
coverage
=*
)
WITH_COVERAGE
=
"
${option#*=}
"
;;
--
with
-
coverage
=*
)
WITH_COVERAGE
=
"
${option#*=}
"
;;
--
with
-
examples
=*
)
WITH_EXAMPLES
=
"
${option#*=}
"
;;
--
with
-
examples
=*
)
WITH_EXAMPLES
=
"
${option#*=}
"
;;
...
@@ -77,6 +79,7 @@ then
...
@@ -77,6 +79,7 @@ then
echo
"
--with-mic=yes/no Enable MIC (Intel Xeon Phi).
'
no
'
by default (Intel Compiler required).
"
echo
"
--with-mic=yes/no Enable MIC (Intel Xeon Phi).
'
no
'
by default (Intel Compiler required).
"
echo
"
--with-cuda=yes/no Enable CUDA.
'
yes
'
by default (CUDA Toolkit is required).
"
echo
"
--with-cuda=yes/no Enable CUDA.
'
yes
'
by default (CUDA Toolkit is required).
"
echo
"
--with-cuda-arch=all/auto/30/35/... Choose CUDA architecture.
'
auto
'
by default.
"
echo
"
--with-cuda-arch=all/auto/30/35/... Choose CUDA architecture.
'
auto
'
by default.
"
echo
"
--with-openmp=yes/no Enable OpenMP.
'
yes
'
by default.
"
echo
"
--with-tests=yes/no Enable unit tests.
'
yes
'
by default.
"
echo
"
--with-tests=yes/no Enable unit tests.
'
yes
'
by default.
"
echo
"
--with-coverage=yes/no Enable code coverage reports for unit tests.
'
no
'
by default (lcov is required).
"
echo
"
--with-coverage=yes/no Enable code coverage reports for unit tests.
'
no
'
by default (lcov is required).
"
echo
"
--with-examples=yes/no Compile the
'
examples
'
directory.
'
yes
'
by default.
"
echo
"
--with-examples=yes/no Compile the
'
examples
'
directory.
'
yes
'
by default.
"
...
@@ -104,6 +107,7 @@ ${CMAKE} ${ROOT_DIR} \
...
@@ -104,6 +107,7 @@ ${CMAKE} ${ROOT_DIR} \
-
DWITH_MIC
=
$
{
WITH_MIC
}
\
-
DWITH_MIC
=
$
{
WITH_MIC
}
\
-
DWITH_CUDA
=
$
{
WITH_CUDA
}
\
-
DWITH_CUDA
=
$
{
WITH_CUDA
}
\
-
DWITH_CUDA_ARCH
=
$
{
WITH_CUDA_ARCH
}
\
-
DWITH_CUDA_ARCH
=
$
{
WITH_CUDA_ARCH
}
\
-
DWITH_OPENMP
=
$
{
WITH_OPENMP
}
\
-
DWITH_TESTS
=
$
{
WITH_TESTS
}
\
-
DWITH_TESTS
=
$
{
WITH_TESTS
}
\
-
DWITH_COVERAGE
=
$
{
WITH_COVERAGE
}
\
-
DWITH_COVERAGE
=
$
{
WITH_COVERAGE
}
\
-
DWITH_EXAMPLES
=
$
{
WITH_EXAMPLES
}
\
-
DWITH_EXAMPLES
=
$
{
WITH_EXAMPLES
}
\
...
...
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