Sync v13.5-public from internal repo

This commit is contained in:
cuda-samples sync
2026-11-04 20:44:00 +00:00
parent 5443602d89
commit a9315c55fb
53 changed files with 1750 additions and 183 deletions

View File

@@ -33,8 +33,10 @@
template <typename T> struct DeviceData
{
T *dPos[2]; // mapped host pointers
T *dReadScratch;
T *dVel;
cudaEvent_t event;
cudaStream_t stream;
unsigned int offset;
unsigned int numBodies;
};
@@ -66,6 +68,12 @@ public:
virtual unsigned int getNumBodies() const { return m_numBodies; }
// Stream that GPU0 kernels (and PBO map/unmap) are issued on. Single-GPU
// leaves this as the legacy default stream (0); multi-GPU uses a
// non-blocking stream. Benchmark / FPS timing must record on this stream
// rather than hard-coding 0.
cudaStream_t getComputeStream() const { return m_deviceData[0].stream; }
protected: // methods
BodySystemCUDA() {}