mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-04-20 06:49:29 +00:00
copy to switch chan
This commit is contained in:
@@ -95,6 +95,7 @@ void worker(int myRank, int gpuId, const std::string &ipPort) {
|
||||
log("Rank ", myRank, " (GPU ", gpuId, "): synchronize ...");
|
||||
auto deviceHandle = switchChannel.deviceHandle();
|
||||
|
||||
cudaMemcpyToSymbol(gConstSwitchChan, &deviceHandle, sizeof(deviceHandle));
|
||||
cudaDeviceSynchronize();
|
||||
|
||||
log("Rank ", myRank, " (GPU ", gpuId, "): launch kernel ...");
|
||||
@@ -109,6 +110,8 @@ void worker(int myRank, int gpuId, const std::string &ipPort) {
|
||||
|
||||
comm->bootstrap()->barrier();
|
||||
|
||||
log("Rank ", myRank, " (GPU ", gpuId, "): kernel launched ...");
|
||||
|
||||
//mscclpp::GpuBuffer buffer(bufferBytes);
|
||||
//mscclpp::GpuBuffer pktBuffer(pktBufferBytes);
|
||||
//mscclpp::RegisteredMemory localRegMem = comm.registerMemory(buffer.data(), buffer.bytes(), transport);
|
||||
|
||||
Reference in New Issue
Block a user