RigidBodyGPU_CallsLeaveTheCallerOnItsCard: one engine on each card with the per-card Reserve
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PXc1zD1yxHqaR1DGdCTHL4
This commit is contained in:
1 parent
fbdf036e6f
commit
b004a846dd
1 file changed
+3
-1
@@ -1705,7 +1705,9 @@ TEST_CASE("RigidBodyGPU_CallsLeaveTheCallerOnItsCard", "[ModelValidation][gpu]")
|
||||
const auto fobs = OwnAmplitudes(cryst, st, 3.5, logger);
|
||||
const size_t cards = get_gpu_count();
|
||||
std::vector<gemmi::Model> models(cards, st.models[0]);
|
||||
auto pool = TestPool(models[0], st.cell, *sg, 3.5, fobs.v.size(), cards, logger);
|
||||
auto pool = RigidBodyGPUPool::Plan(models[0], st.cell, *sg, 3.5, fobs.v.size(), logger);
|
||||
REQUIRE(pool);
|
||||
pool->Reserve(std::vector<size_t>(cards, 1));
|
||||
const int caller = RigidBodyGPUEngine::CurrentDevice();
|
||||
std::vector<std::unique_ptr<RigidBodyTargetGPU>> targets;
|
||||
for (size_t k = 0; k < cards; k++)
|
||||
|
||||
Reference in new issue
Block a user