-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
287 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) 2018-2020, Michael P. Howard | ||
// Copyright (c) 2021-2024, Auburn University | ||
// Part of azplugins, released under the BSD 3-Clause License. | ||
|
||
// Adapted from hoomd/md/export_PotentialPairGPUKernel.cu.inc of HOOMD-blue. | ||
// Copyright (c) 2009-2024 The Regents of the University of Michigan. | ||
// Part of HOOMD-blue, released under the BSD 3-Clause License. | ||
|
||
// See CMakeLists.txt for the source of these variables to be processed by CMake's | ||
// configure_file(). | ||
|
||
// clang-format off | ||
#include "hoomd/md/PotentialPairGPU.cuh" | ||
#include "PairEvaluator@[email protected]" | ||
|
||
#define EVALUATOR_CLASS PairEvaluator@_evaluator@ | ||
// clang-format on | ||
|
||
namespace hoomd | ||
{ | ||
namespace md | ||
{ | ||
namespace kernel | ||
{ | ||
template __attribute__((visibility("default"))) hipError_t | ||
gpu_compute_pair_forces<hoomd::azplugins::detail::EVALUATOR_CLASS>( | ||
const pair_args_t& pair_args, | ||
const hoomd::azplugins::detail::EVALUATOR_CLASS::param_type* d_params); | ||
} // end namespace kernel | ||
} // end namespace md | ||
} // end namespace hoomd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
|
||
"""azplugins.""" | ||
|
||
from hoomd.azplugins import pair | ||
|
||
__version__ = '1.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) 2018-2020, Michael P. Howard | ||
// Copyright (c) 2021-2024, Auburn University | ||
// Part of azplugins, released under the BSD 3-Clause License. | ||
|
||
// Adapted from hoomd/md/export_PotentialPair.cc.inc of HOOMD-blue. | ||
// Copyright (c) 2009-2024 The Regents of the University of Michigan. | ||
// Part of HOOMD-blue, released under the BSD 3-Clause License. | ||
|
||
// See CMakeLists.txt for the source of these variables to be processed by CMake's | ||
// configure_file(). | ||
|
||
// clang-format off | ||
#include "hoomd/md/PotentialPair.h" | ||
#include "PairEvaluator@[email protected]" | ||
|
||
#define EVALUATOR_CLASS PairEvaluator@_evaluator@ | ||
#define EXPORT_FUNCTION export_PotentialPair@_evaluator@ | ||
// clang-format on | ||
|
||
namespace hoomd | ||
{ | ||
namespace azplugins | ||
{ | ||
namespace detail | ||
{ | ||
void EXPORT_FUNCTION(pybind11::module& m) | ||
{ | ||
hoomd::md::detail::export_PotentialPair<EVALUATOR_CLASS>(m, "PotentialPair@_evaluator@"); | ||
} | ||
} // end namespace detail | ||
} // end namespace azplugins | ||
} // end namespace hoomd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) 2018-2020, Michael P. Howard | ||
// Copyright (c) 2021-2024, Auburn University | ||
// Part of azplugins, released under the BSD 3-Clause License. | ||
|
||
// Adapted from hoomd/md/export_PotentialPairGPU.cc.inc of HOOMD-blue. | ||
// Copyright (c) 2009-2024 The Regents of the University of Michigan. | ||
// Part of HOOMD-blue, released under the BSD 3-Clause License. | ||
|
||
// See CMakeLists.txt for the source of these variables to be processed by CMake's | ||
// configure_file(). | ||
|
||
// clang-format off | ||
#include "hoomd/md/PotentialPairGPU.h" | ||
#include "PairEvaluator@[email protected]" | ||
|
||
#define EVALUATOR_CLASS PairEvaluator@_evaluator@ | ||
#define EXPORT_FUNCTION export_PotentialPair@_evaluator@GPU | ||
// clang-format on | ||
|
||
// Use CPU class from another compilation unit to reduce compile time and compiler memory usage. | ||
extern template class hoomd::md::PotentialPair<hoomd::azplugins::detail::EVALUATOR_CLASS>; | ||
|
||
namespace hoomd | ||
{ | ||
namespace azplugins | ||
{ | ||
namespace detail | ||
{ | ||
void EXPORT_FUNCTION(pybind11::module& m) | ||
{ | ||
hoomd::md::detail::export_PotentialPairGPU<EVALUATOR_CLASS>(m, "PotentialPair@_evaluator@GPU"); | ||
} | ||
} // end namespace detail | ||
} // end namespace azplugins | ||
} // end namespace hoomd |
Oops, something went wrong.