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
53770948
"platforms/common/src/CommonCalcNonbondedForce.cpp" did not exist on "cea03eea70ed71f248dbeb6ea447e83053e5c6af"
Unverified
Commit
53770948
authored
Nov 01, 2024
by
Peter Eastman
Committed by
GitHub
Nov 01, 2024
Browse files
Prevent HipContext.h from including vkFFT.h (#4714)
parent
e1d679aa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
22 deletions
+7
-22
platforms/hip/include/HipContext.h
platforms/hip/include/HipContext.h
+0
-13
platforms/hip/src/HipContext.cpp
platforms/hip/src/HipContext.cpp
+0
-4
platforms/hip/src/HipKernels.cpp
platforms/hip/src/HipKernels.cpp
+3
-2
plugins/amoeba/platforms/hip/src/AmoebaHipKernels.cpp
plugins/amoeba/platforms/hip/src/AmoebaHipKernels.cpp
+4
-3
No files found.
platforms/hip/include/HipContext.h
View file @
53770948
...
@@ -55,7 +55,6 @@
...
@@ -55,7 +55,6 @@
#include "HipIntegrationUtilities.h"
#include "HipIntegrationUtilities.h"
#include "HipNonbondedUtilities.h"
#include "HipNonbondedUtilities.h"
#include "HipPlatform.h"
#include "HipPlatform.h"
#include "HipFFT3D.h"
#include "openmm/OpenMMException.h"
#include "openmm/OpenMMException.h"
#include "openmm/common/ComputeContext.h"
#include "openmm/common/ComputeContext.h"
#include "openmm/Kernel.h"
#include "openmm/Kernel.h"
...
@@ -183,18 +182,6 @@ public:
...
@@ -183,18 +182,6 @@ public:
* Construct a ComputeEvent object of the appropriate class for this platform.
* Construct a ComputeEvent object of the appropriate class for this platform.
*/
*/
ComputeEvent
createEvent
();
ComputeEvent
createEvent
();
/**
* Create a new HipFFT3D.
*
* @param xsize the first dimension of the data sets on which FFTs will be performed
* @param ysize the second dimension of the data sets on which FFTs will be performed
* @param zsize the third dimension of the data sets on which FFTs will be performed
* @param realToComplex if true, a real-to-complex transform will be done. Otherwise, it is complex-to-complex.
* @param stream HIP stream
* @param in the data to transform, ordered such that in[x*ysize*zsize + y*zsize + z] contains element (x, y, z)
* @param out on exit, this contains the transformed data
*/
HipFFT3D
*
createFFT
(
int
xsize
,
int
ysize
,
int
zsize
,
bool
realToComplex
,
hipStream_t
stream
,
HipArray
&
in
,
HipArray
&
out
);
/**
/**
* Get the smallest legal size for a dimension of the grid supported by the FFT.
* Get the smallest legal size for a dimension of the grid supported by the FFT.
*/
*/
...
...
platforms/hip/src/HipContext.cpp
View file @
53770948
...
@@ -696,10 +696,6 @@ ComputeEvent HipContext::createEvent() {
...
@@ -696,10 +696,6 @@ ComputeEvent HipContext::createEvent() {
return
shared_ptr
<
ComputeEventImpl
>
(
new
HipEvent
(
*
this
));
return
shared_ptr
<
ComputeEventImpl
>
(
new
HipEvent
(
*
this
));
}
}
HipFFT3D
*
HipContext
::
createFFT
(
int
xsize
,
int
ysize
,
int
zsize
,
bool
realToComplex
,
hipStream_t
stream
,
HipArray
&
in
,
HipArray
&
out
)
{
return
new
HipFFT3D
(
*
this
,
xsize
,
ysize
,
zsize
,
realToComplex
,
stream
,
in
,
out
);
}
int
HipContext
::
findLegalFFTDimension
(
int
minimum
)
{
int
HipContext
::
findLegalFFTDimension
(
int
minimum
)
{
return
HipFFT3D
::
findLegalDimension
(
minimum
);
return
HipFFT3D
::
findLegalDimension
(
minimum
);
}
}
...
...
platforms/hip/src/HipKernels.cpp
View file @
53770948
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "CommonKernelSources.h"
#include "CommonKernelSources.h"
#include "HipBondedUtilities.h"
#include "HipBondedUtilities.h"
#include "HipExpressionUtilities.h"
#include "HipExpressionUtilities.h"
#include "HipFFT3D.h"
#include "HipIntegrationUtilities.h"
#include "HipIntegrationUtilities.h"
#include "HipNonbondedUtilities.h"
#include "HipNonbondedUtilities.h"
#include "HipKernelSources.h"
#include "HipKernelSources.h"
...
@@ -508,9 +509,9 @@ void HipCalcNonbondedForceKernel::initialize(const System& system, const Nonbond
...
@@ -508,9 +509,9 @@ void HipCalcNonbondedForceKernel::initialize(const System& system, const Nonbond
}
}
hipStream_t
fftStream
=
usePmeStream
?
pmeStream
:
cu
.
getCurrentStream
();
hipStream_t
fftStream
=
usePmeStream
?
pmeStream
:
cu
.
getCurrentStream
();
fft
=
cu
.
createFFT
(
gridSizeX
,
gridSizeY
,
gridSizeZ
,
true
,
fftStream
,
pmeGrid1
,
pmeGrid2
);
fft
=
new
HipFFT3D
(
cu
,
gridSizeX
,
gridSizeY
,
gridSizeZ
,
true
,
fftStream
,
pmeGrid1
,
pmeGrid2
);
if
(
doLJPME
)
if
(
doLJPME
)
dispersionFft
=
cu
.
createFFT
(
dispersionGridSizeX
,
dispersionGridSizeY
,
dispersionGridSizeZ
,
true
,
fftStream
,
pmeGrid1
,
pmeGrid2
);
dispersionFft
=
new
HipFFT3D
(
cu
,
dispersionGridSizeX
,
dispersionGridSizeY
,
dispersionGridSizeZ
,
true
,
fftStream
,
pmeGrid1
,
pmeGrid2
);
hasInitializedFFT
=
true
;
hasInitializedFFT
=
true
;
// Initialize the b-spline moduli.
// Initialize the b-spline moduli.
...
...
plugins/amoeba/platforms/hip/src/AmoebaHipKernels.cpp
View file @
53770948
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include "openmm/internal/AmoebaVdwForceImpl.h"
#include "openmm/internal/AmoebaVdwForceImpl.h"
#include "openmm/internal/NonbondedForceImpl.h"
#include "openmm/internal/NonbondedForceImpl.h"
#include "HipBondedUtilities.h"
#include "HipBondedUtilities.h"
#include "HipFFT3D.h"
#include "HipForceInfo.h"
#include "HipForceInfo.h"
#include "HipKernelSources.h"
#include "HipKernelSources.h"
#include "SimTKOpenMMRealType.h"
#include "SimTKOpenMMRealType.h"
...
@@ -68,7 +69,7 @@ void HipCalcAmoebaMultipoleForceKernel::initialize(const System& system, const A
...
@@ -68,7 +69,7 @@ void HipCalcAmoebaMultipoleForceKernel::initialize(const System& system, const A
ContextSelector
selector
(
cc
);
ContextSelector
selector
(
cc
);
HipArray
&
grid1
=
cu
.
unwrap
(
pmeGrid1
);
HipArray
&
grid1
=
cu
.
unwrap
(
pmeGrid1
);
HipArray
&
grid2
=
cu
.
unwrap
(
pmeGrid2
);
HipArray
&
grid2
=
cu
.
unwrap
(
pmeGrid2
);
fft
=
cu
.
createFFT
(
gridSizeX
,
gridSizeY
,
gridSizeZ
,
false
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
fft
=
new
HipFFT3D
(
cu
,
gridSizeX
,
gridSizeY
,
gridSizeZ
,
false
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
}
}
}
}
...
@@ -97,8 +98,8 @@ void HipCalcHippoNonbondedForceKernel::initialize(const System& system, const Hi
...
@@ -97,8 +98,8 @@ void HipCalcHippoNonbondedForceKernel::initialize(const System& system, const Hi
sort
=
new
HipSort
(
cu
,
new
SortTrait
(),
cc
.
getNumAtoms
());
sort
=
new
HipSort
(
cu
,
new
SortTrait
(),
cc
.
getNumAtoms
());
HipArray
&
grid1
=
cu
.
unwrap
(
pmeGrid1
);
HipArray
&
grid1
=
cu
.
unwrap
(
pmeGrid1
);
HipArray
&
grid2
=
cu
.
unwrap
(
pmeGrid2
);
HipArray
&
grid2
=
cu
.
unwrap
(
pmeGrid2
);
fft
=
cu
.
createFFT
(
gridSizeX
,
gridSizeY
,
gridSizeZ
,
true
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
fft
=
new
HipFFT3D
(
cu
,
gridSizeX
,
gridSizeY
,
gridSizeZ
,
true
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
dfft
=
cu
.
createFFT
(
dispersionGridSizeX
,
dispersionGridSizeY
,
dispersionGridSizeZ
,
true
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
dfft
=
new
HipFFT3D
(
cu
,
dispersionGridSizeX
,
dispersionGridSizeY
,
dispersionGridSizeZ
,
true
,
cu
.
getCurrentStream
(),
grid1
,
grid2
);
}
}
}
}
...
...
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