@@ -58,8 +58,7 @@ void ProxyChannelOneToOneTest::setupMeshConnections(
5858
5959 communicator->setup ();
6060
61- mscclpp::SemaphoreId cid = channelService->addSemaphore (conn);
62- channelService->addPitch (cid, std::pair<size_t , size_t >(pitch, pitch));
61+ mscclpp::SemaphoreId cid = channelService->add2DChannel (conn, std::pair<size_t , size_t >(pitch, pitch));
6362 communicator->setup ();
6463
6564 proxyChannels.emplace_back (mscclpp::deviceHandle (
@@ -77,13 +76,13 @@ __device__ size_t getTileElementOffset(int elementId, int width, int rowIndex, i
7776}
7877
7978__global__ void kernelProxyTilePingPong (int * buff, int rank, int pitch, int rowIndex, int colIndex, int width,
80- int hight , int * ret) {
79+ int height , int * ret) {
8180 DeviceHandle<mscclpp::SimpleProxyChannel>& proxyChan = gChannelOneToOneTestConstProxyChans ;
8281 volatile int * sendBuff = (volatile int *)buff;
8382 int nTries = 1000 ;
8483 int flusher = 0 ;
8584 size_t offset = rowIndex * pitch + colIndex * sizeof (int );
86- size_t nElem = width * hight ;
85+ size_t nElem = width * height ;
8786 size_t nElemPerPitch = pitch / sizeof (int );
8887 for (int i = 0 ; i < nTries; i++) {
8988 if (rank == 0 ) {
@@ -105,7 +104,7 @@ __global__ void kernelProxyTilePingPong(int* buff, int rank, int pitch, int rowI
105104 }
106105 __syncthreads ();
107106 // __threadfence_system(); // not necessary if we make sendBuff volatile
108- if (threadIdx .x == 0 ) proxyChan.put2DWithSignal (offset, width * sizeof (int ), hight );
107+ if (threadIdx .x == 0 ) proxyChan.put2DWithSignal (offset, width * sizeof (int ), height );
109108 }
110109 if (rank == 1 ) {
111110 if (threadIdx .x == 0 ) proxyChan.wait ();
@@ -125,7 +124,7 @@ __global__ void kernelProxyTilePingPong(int* buff, int rank, int pitch, int rowI
125124 }
126125 __syncthreads ();
127126 // __threadfence_system(); // not necessary if we make sendBuff volatile
128- if (threadIdx .x == 0 ) proxyChan.put2DWithSignal (offset, width * sizeof (int ), hight );
127+ if (threadIdx .x == 0 ) proxyChan.put2DWithSignal (offset, width * sizeof (int ), height );
129128 }
130129 }
131130 flusher++;
0 commit comments