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
93354c21
Commit
93354c21
authored
Oct 30, 2008
by
Christopher Bruns
Browse files
Several changes to get OpenMM to build on Linux
* capitalization of gpuTypes.h * various cmake issues
parent
379499aa
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
9 deletions
+12
-9
CMakeLists.txt
CMakeLists.txt
+4
-1
platforms/cuda/CMakeLists.txt
platforms/cuda/CMakeLists.txt
+1
-1
platforms/cuda/cuda-cmake/parse_cubin.cmake
platforms/cuda/cuda-cmake/parse_cubin.cmake
+2
-2
platforms/cuda/src/CudaKernels.h
platforms/cuda/src/CudaKernels.h
+1
-1
platforms/cuda/src/CudaPlatform.cpp
platforms/cuda/src/CudaPlatform.cpp
+1
-1
platforms/cuda/src/CudaStreamFactory.cpp
platforms/cuda/src/CudaStreamFactory.cpp
+1
-1
platforms/cuda/tests/TestCudaRandom.cpp
platforms/cuda/tests/TestCudaRandom.cpp
+1
-1
platforms/reference/src/ReferenceKernels.cpp
platforms/reference/src/ReferenceKernels.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
93354c21
...
...
@@ -14,6 +14,9 @@
# libOpenMM_static[_d].a
#----------------------------------------------------
# On Linux it appears that cmake 2.4 does not work with Cuda cmake rules
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.6
)
# Don't create a new project name if this is part of a mega-build from the
# parent directory
IF
(
NOT PROJECT_NAME
)
...
...
@@ -22,7 +25,7 @@ ENDIF( NOT PROJECT_NAME )
INCLUDE
(
Dart
)
SUBDIRS
(
tests
platforms/reference/tests platforms/cuda
)
SUBDIRS
(
platforms/reference/tests platforms/cuda
)
ADD_DEFINITIONS
(
-DOPENMM_BUILDING_SHARED_LIBRARY
)
...
...
platforms/cuda/CMakeLists.txt
View file @
93354c21
...
...
@@ -93,7 +93,7 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
FILE
(
GLOB src_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.cu
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*/*.cu
)
FOREACH
(
file
${
src_files
}
)
FILE
(
RELATIVE_PATH file
${
CMAKE_CURRENT_SOURCE_DIR
}
${
file
}
)
MESSAGE
(
${
file
}
)
#
MESSAGE(${file})
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
file
}
)
#append
ENDFOREACH
(
file
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
...
...
platforms/cuda/cuda-cmake/parse_cubin.cmake
View file @
93354c21
...
...
@@ -98,8 +98,8 @@ IF (${file_text} MATCHES ".+")
ENDFOREACH
(
line
)
ELSE
(
${
depend
_text
}
MATCHES
".+"
)
ELSE
(
${
file
_text
}
MATCHES
".+"
)
# MESSAGE("FOUND NO DEPENDS")
ENDIF
(
${
depend
_text
}
MATCHES
".+"
)
ENDIF
(
${
file
_text
}
MATCHES
".+"
)
platforms/cuda/src/CudaKernels.h
View file @
93354c21
...
...
@@ -34,7 +34,7 @@
#include "CudaPlatform.h"
#include "kernels.h"
#include "kernels/gpu
T
ypes.h"
#include "kernels/gpu
t
ypes.h"
#include "System.h"
class
CudaAndersenThermostat
;
...
...
platforms/cuda/src/CudaPlatform.cpp
View file @
93354c21
...
...
@@ -33,7 +33,7 @@
#include "CudaKernelFactory.h"
#include "CudaKernels.h"
#include "internal/OpenMMContextImpl.h"
#include "kernels/gpu
T
ypes.h"
#include "kernels/gpu
t
ypes.h"
#include "System.h"
using
namespace
OpenMM
;
...
...
platforms/cuda/src/CudaStreamFactory.cpp
View file @
93354c21
...
...
@@ -34,7 +34,7 @@
#include "CudaStreamImpl.h"
#include "OpenMMException.h"
#include "internal/OpenMMContextImpl.h"
#include "kernels/gpu
T
ypes.h"
#include "kernels/gpu
t
ypes.h"
using
namespace
OpenMM
;
...
...
platforms/cuda/tests/TestCudaRandom.cpp
View file @
93354c21
...
...
@@ -34,7 +34,7 @@
*/
#include "../../../tests/AssertionUtilities.h"
#include "../src/kernels/gpu
T
ypes.h"
#include "../src/kernels/gpu
t
ypes.h"
#include "../src/kernels/cudaKernels.h"
#include <iostream>
...
...
platforms/reference/src/ReferenceKernels.cpp
View file @
93354c21
...
...
@@ -648,7 +648,7 @@ void ReferenceRemoveCMMotionKernel::initialize(const System& system, const CMMot
}
void
ReferenceRemoveCMMotionKernel
::
execute
(
OpenMMContextImpl
&
context
)
{
int
step
=
std
::
floor
(
context
.
getTime
()
/
context
.
getIntegrator
().
getStepSize
());
int
step
=
(
int
)
std
::
floor
(
context
.
getTime
()
/
context
.
getIntegrator
().
getStepSize
());
if
(
step
%
frequency
!=
0
)
return
;
RealOpenMM
**
velData
=
((
ReferenceFloatStreamImpl
&
)
context
.
getVelocities
().
getImpl
()).
getData
();
...
...
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