Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
b516c1ed
Unverified
Commit
b516c1ed
authored
Apr 05, 2018
by
peastman
Committed by
GitHub
Apr 05, 2018
Browse files
Merge pull request #2037 from swails/jenkins
Use g++ instead of clang and fix PythonInstall
parents
424c06e4
2e144b6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
devtools/ci/jenkins/install.sh
devtools/ci/jenkins/install.sh
+6
-8
wrappers/python/pysetup.cmake.in
wrappers/python/pysetup.cmake.in
+1
-2
No files found.
devtools/ci/jenkins/install.sh
View file @
b516c1ed
...
@@ -8,15 +8,14 @@ swig -version
...
@@ -8,15 +8,14 @@ swig -version
echo
"Using cmake (
`
which cmake
`
) version"
:
echo
"Using cmake (
`
which cmake
`
) version"
:
cmake
--version
cmake
--version
echo
"Using
clang
(
`
which
clang
`
) version:"
echo
"Using
g++
(
`
which
g++
`
) version:"
clang
--version
g++
--version
module load cuda/
${
CUDA_VERSION
}
conda/jenkins
module load cuda/
9.0
# Constants
# Constants
CONDAENV
=
openmm-test-3.5
CONDAENV
=
openmm-test-3.5
INSTALL_DIRECTORY
=
"
${
WORKSPACE
}
/openmm-install"
INSTALL_DIRECTORY
=
"
`
pwd
`
/install"
SRC_DIRECTORY
=
"
${
WORKSPACE
}
/openmm-src"
# set in the Jenkins configuration
export
OPENMM_CUDA_COMPILER
=
`
which nvcc
`
export
OPENMM_CUDA_COMPILER
=
`
which nvcc
`
# Create a conda environment, but clean up after one first. If it doesn't exist, don't complain.
# Create a conda environment, but clean up after one first. If it doesn't exist, don't complain.
...
@@ -31,9 +30,8 @@ conda install -yn ${CONDAENV} numpy scipy pytest --quiet
...
@@ -31,9 +30,8 @@ conda install -yn ${CONDAENV} numpy scipy pytest --quiet
source
activate
${
CONDAENV
}
# enter our new environment
source
activate
${
CONDAENV
}
# enter our new environment
# Build OpenMM
# Build OpenMM
cd
"
${
SRC_DIRECTORY
}
"
cmake
-DCMAKE_INSTALL_PREFIX
=
"
${
INSTALL_DIRECTORY
}
"
-DCMAKE_CXX_COMPILER
=
g++
-DCMAKE_C_COMPILER
=
gcc
.
cmake
-DCMAKE_INSTALL_PREFIX
=
"
${
INSTALL_DIRECTORY
}
"
-DCMAKE_CXX_COMPILER
=
clang++
-DCMAKE_C_COMPILER
=
clang
.
make
-j6
install
make
-j4
install
make PythonInstall
make PythonInstall
# Now run the tests
# Now run the tests
...
...
wrappers/python/pysetup.cmake.in
View file @
b516c1ed
set(ENV{OPENMM_INCLUDE_PATH} "@WRAPPER_INCLUDE_DIRS@")
set(ENV{OPENMM_INCLUDE_PATH} "@WRAPPER_INCLUDE_DIRS@")
file(TO_NATIVE_PATH "@CMAKE_INSTALL_PREFIX@/lib" OPENMM_LIB_PATH)
set(ENV{OPENMM_LIB_PATH} "@CMAKE_INSTALL_PREFIX@/lib")
set(ENV{OPENMM_LIB_PATH} "${OPENMM_LIB_PATH}")
message("OPENMM_LIB_PATH = " $ENV{OPENMM_LIB_PATH})
message("OPENMM_LIB_PATH = " $ENV{OPENMM_LIB_PATH})
message("OPENMM_INCLUDE_PATH = " $ENV{OPENMM_INCLUDE_PATH})
message("OPENMM_INCLUDE_PATH = " $ENV{OPENMM_INCLUDE_PATH})
execute_process(
execute_process(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment