Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TNL gradient descent
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Klinkovský
TNL gradient descent
Commits
0d7e6ca8
There was an error fetching the commit references. Please try again later.
Commit
0d7e6ca8
authored
2 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Replace Eigen3 with TNL in the build configuration
parent
f6ce9ab8
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitmodules
+3
-3
3 additions, 3 deletions
.gitmodules
CMakeLists.txt
+13
-9
13 additions, 9 deletions
CMakeLists.txt
dep/CMakeLists.txt
+2
-7
2 additions, 7 deletions
dep/CMakeLists.txt
dep/eigen
+0
-1
0 additions, 1 deletion
dep/eigen
dep/tnl
+1
-0
1 addition, 0 deletions
dep/tnl
with
19 additions
and
20 deletions
.gitmodules
+
3
−
3
View file @
0d7e6ca8
[submodule "dep/eigen"]
path = dep/eigen
url = https://github.com/eigenteam/eigen-git-mirror.git
[submodule "dep/Catch2"]
[submodule "dep/Catch2"]
path = dep/Catch2
path = dep/Catch2
url = https://github.com/catchorg/Catch2.git
url = https://github.com/catchorg/Catch2.git
[submodule "dep/tnl"]
path = dep/tnl
url = https://mmg-gitlab.fjfi.cvut.cz/gitlab/tnl/tnl-dev.git
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
13
−
9
View file @
0d7e6ca8
# CMakeLists.txt
cmake_minimum_required
(
VERSION 3.13
)
#
# Author: Fabian Meyer
# Created On: 12 Jul 2019
cmake_minimum_required
(
VERSION 3.5
)
project
(
gdcpp
)
project
(
gdcpp
)
SET
(
CMAKE_CXX_STANDARD 1
1
)
SET
(
CMAKE_CXX_STANDARD 1
4
)
SET
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
SET
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Wextra"
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Wextra"
)
endif
(
CMAKE_COMPILER_IS_GNUCXX
)
endif
(
CMAKE_COMPILER_IS_GNUCXX
)
# force colorized output in continuous integration
if
(
DEFINED ENV{CI_JOB_NAME} OR
${
CMAKE_GENERATOR
}
STREQUAL
"Ninja"
)
message
(
STATUS
"Continuous integration or Ninja detected -- forcing compilers to produce colorized output."
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fcolor-diagnostics"
)
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fdiagnostics-color"
)
endif
()
endif
()
# find OpenMP
# find OpenMP
find_package
(
OpenMP
)
find_package
(
OpenMP
)
if
(
OPENMP_FOUND
)
if
(
OPENMP_FOUND
)
...
@@ -21,12 +26,11 @@ if(OPENMP_FOUND)
...
@@ -21,12 +26,11 @@ if(OPENMP_FOUND)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
OpenMP_EXE_LINKER_FLAGS
}
"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
OpenMP_EXE_LINKER_FLAGS
}
"
)
endif
(
OPENMP_FOUND
)
endif
(
OPENMP_FOUND
)
# find_package(Eigen3 REQUIRED)
add_subdirectory
(
dep
)
add_subdirectory
(
dep
)
include_directories
(
include_directories
(
include
include
${
EIGEN3
_INCLUDE_DIR
}
${
TNL
_INCLUDE_DIR
}
)
)
install
(
FILES
"include/gdcpp.h"
install
(
FILES
"include/gdcpp.h"
...
...
This diff is collapsed.
Click to expand it.
dep/CMakeLists.txt
+
2
−
7
View file @
0d7e6ca8
# CMakeLists.txt
set
(
TNL_ROOT
"
${
CMAKE_CURRENT_LIST_DIR
}
/tnl"
CACHE INTERNAL
""
)
#
set
(
TNL_INCLUDE_DIR
"
${
TNL_ROOT
}
/src/TNL"
CACHE INTERNAL
""
)
# Author: Fabian Meyer
# Created On: 12 Jul 2019
set
(
EIGEN3_ROOT
"
${
CMAKE_CURRENT_LIST_DIR
}
/eigen"
CACHE INTERNAL
""
)
set
(
EIGEN3_INCLUDE_DIR
"
${
EIGEN3_ROOT
}
"
CACHE INTERNAL
""
)
set
(
CATCH2_ROOT
"
${
CMAKE_CURRENT_LIST_DIR
}
/Catch2"
CACHE INTERNAL
""
)
set
(
CATCH2_ROOT
"
${
CMAKE_CURRENT_LIST_DIR
}
/Catch2"
CACHE INTERNAL
""
)
set
(
CATCH2_INCLUDE_DIR
"
${
CATCH2_ROOT
}
/single_include"
CACHE INTERNAL
""
)
set
(
CATCH2_INCLUDE_DIR
"
${
CATCH2_ROOT
}
/single_include"
CACHE INTERNAL
""
)
This diff is collapsed.
Click to expand it.
eigen
@
a1b9c26c
Compare
a1b9c26c
...
a1b9c26c
Subproject commit a1b9c26c5e62cb8c17836e601edd64b92aa8e5ae
This diff is collapsed.
Click to expand it.
tnl
@
91a599f3
Subproject commit 91a599f303ac734757625875bdacad7f10b07083
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