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
14f1b515
Commit
14f1b515
authored
Apr 29, 2026
by
one
Browse files
Remove redundant code, refactor large block threshold
parent
c2d9cc7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
platforms/hip/CMakeLists.txt
platforms/hip/CMakeLists.txt
+0
-8
platforms/hip/src/HipNonbondedUtilities.cpp
platforms/hip/src/HipNonbondedUtilities.cpp
+1
-1
No files found.
platforms/hip/CMakeLists.txt
View file @
14f1b515
...
@@ -22,14 +22,6 @@ ENDIF()
...
@@ -22,14 +22,6 @@ ENDIF()
FIND_PACKAGE
(
HIPFFT CONFIG QUIET
)
FIND_PACKAGE
(
HIPFFT CONFIG QUIET
)
IF
(
NOT TARGET hiprtc::hiprtc
)
add_library
(
hiprtc::hiprtc SHARED IMPORTED
)
set_target_properties
(
hiprtc::hiprtc PROPERTIES
IMPORTED_LOCATION
"/opt/dtk/hip/lib/libhiprtc.so"
INTERFACE_INCLUDE_DIRECTORIES
"/opt/dtk/hip/include"
)
ENDIF
()
SET
(
OPENMM_BUILD_HIP_TESTS TRUE CACHE BOOL
"Whether to build HIP test cases"
)
SET
(
OPENMM_BUILD_HIP_TESTS TRUE CACHE BOOL
"Whether to build HIP test cases"
)
IF
(
BUILD_TESTING AND OPENMM_BUILD_HIP_TESTS
)
IF
(
BUILD_TESTING AND OPENMM_BUILD_HIP_TESTS
)
SUBDIRS
(
tests
)
SUBDIRS
(
tests
)
...
...
platforms/hip/src/HipNonbondedUtilities.cpp
View file @
14f1b515
...
@@ -73,7 +73,7 @@ HipNonbondedUtilities::HipNonbondedUtilities(HipContext& context) : context(cont
...
@@ -73,7 +73,7 @@ HipNonbondedUtilities::HipNonbondedUtilities(HipContext& context) : context(cont
// accelerate the process. This makes building the neighbor list faster, but it prevents
// accelerate the process. This makes building the neighbor list faster, but it prevents
// us from sorting atom blocks by size, which leads to a slightly less efficient neighbor
// us from sorting atom blocks by size, which leads to a slightly less efficient neighbor
// list. We guess based on system size which will be faster.
// list. We guess based on system size which will be faster.
useLargeBlocks
=
false
;
useLargeBlocks
=
(
context
.
getNumAtoms
()
>
150000
)
;
setKernelSource
(
HipKernelSources
::
nonbonded
);
setKernelSource
(
HipKernelSources
::
nonbonded
);
}
}
...
...
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