Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp_sisso
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
Service Desk
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
nomad-lab
cpp_sisso
Commits
7386d3fb
Commit
7386d3fb
authored
4 years ago
by
Thomas Purcell
Browse files
Options
Downloads
Patches
Plain Diff
Update Cmake
See if pytests will actually work
parent
b1d372d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-8
6 additions, 8 deletions
.gitlab-ci.yml
cmake/toolchains/gnu_py.cmake
+1
-1
1 addition, 1 deletion
cmake/toolchains/gnu_py.cmake
src/CMakeLists.txt
+2
-1
2 additions, 1 deletion
src/CMakeLists.txt
with
9 additions
and
10 deletions
.gitlab-ci.yml
+
6
−
8
View file @
7386d3fb
...
...
@@ -7,35 +7,33 @@ stages:
build-intel
:
stage
:
build
script
:
-
module load intel impi
mkl
cmake anaconda/3/2019.03 mpi4py
-
module load intel impi cmake anaconda/3/2019.03 mpi4py
-
mkdir build_intel/
-
cd build_intel/
-
python -m venv sisso
-
source sisso/bin/activate
-
pip install mpi4py mkl numpy scipy pandas pytest
-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLROOT/lib/intel64/
-
pip install numpy scipy pandas pytest
-
cmake -C ../cmake/toolchains/intel_py.cmake ../
-
make
-
make install
-
cd ../
-
pytest tests
tags
:
tags
:
-
docker
build-gnu
:
stage
:
build
script
:
-
module load gcc impi
mkl
cmake anaconda/3/2019.03 mpi4py
-
module load gcc impi cmake anaconda/3/2019.03 mpi4py
-
mkdir build_gcc/
-
cd build_gcc/
-
python -m venv sisso
-
source sisso/bin/activate
-
pip install mpi4py mkl numpy scipy pandas pytest
-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLROOT/lib/intel64/
-
pip install numpy scipy pandas pytest
-
cmake -C ../cmake/toolchains/gnu_py.cmake ../
-
make
-
make install
-
cd ../
-
pytest tests
tags
:
tags
:
-
docker
This diff is collapsed.
Click to expand it.
cmake/toolchains/gnu_py.cmake
+
1
−
1
View file @
7386d3fb
...
...
@@ -4,4 +4,4 @@
set
(
CMAKE_CXX_COMPILER g++ CACHE STRING
""
)
set
(
CMAKE_CXX_FLAGS
"-O2"
CACHE STRING
""
)
set
(
USE_PYTHON ON CACHE BOOL
""
)
#
set(EXTERNAL_BOOST O
N
CACHE BOOL "")
set
(
EXTERNAL_BOOST O
FF
CACHE BOOL
""
)
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
1
View file @
7386d3fb
...
...
@@ -35,7 +35,8 @@ install(TARGETS sisso++ DESTINATION ${CMAKE_CURRENT_LIST_DIR}/../bin/)
if
(
USE_PYTHON
)
include
(
${
CMAKE_CURRENT_LIST_DIR
}
/../cmake/TransferDocStrings.cmake
)
set
(
CMAKE_INSTALL_RPATH
"
${
Boost_LIBRARY_DIRS
}
;
${
PYTHON_LIBDIR
}
;
${
MPI_DIR
}
"
)
set
(
CMAKE_INSTALL_RPATH
"
${
Boost_LIBRARY_DIRS
}
;
${
PYTHON_PREFIX
}
/lib64/;
${
MPI_DIR
}
"
)
message
(
STATUS
"CMAKE_INSTALL_RPATH =
${
CMAKE_INSTALL_RPATH
}
"
)
file
(
GLOB_RECURSE SISSOLIB_SOURCES *.cpp
)
list
(
REMOVE_ITEM SISSOLIB_SOURCES
${
CMAKE_CURRENT_LIST_DIR
}
/main.cpp
)
list
(
REMOVE_ITEM SISSOLIB_SOURCES
${
CMAKE_CURRENT_LIST_DIR
}
/python/bindings_docstring_keyed.cpp
)
...
...
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