Skip to content

Commit 5c32b17

Browse files
committed
Trim trailing whitespace and fix codespell
1 parent d60be05 commit 5c32b17

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

src/api/cuda/ucx/nixl_device.cuh

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum nixl_gpu_coordination_level_t {
3636

3737
/**
3838
* @brief Post a memory transfer request to the GPU.
39-
*
39+
*
4040
* @param req_hndl [in] The request handle.
4141
* @param address [in] The local address of the memory to be transferred.
4242
* @param remote_addr [in] The remote address of the memory to be transferred.
@@ -45,10 +45,10 @@ enum nixl_gpu_coordination_level_t {
4545
*
4646
* @return nixl_status_t Error code if call was not successful
4747
*/
48-
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
49-
__device__ static inline nixl_status_t
50-
nixlGpuPostMemXferReq(nixlGpuXferReqH* req_hndl,
51-
void *address,
48+
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
49+
__device__ static inline nixl_status_t
50+
nixlGpuPostMemXferReq(nixlGpuXferReqH* req_hndl,
51+
void *address,
5252
uint64_t remote_addr,
5353
nixlGpuXferStatusH* xfer_status = nullptr,
5454
bool is_no_delay = true)
@@ -58,7 +58,7 @@ nixlGpuPostMemXferReq(nixlGpuXferReqH* req_hndl,
5858

5959
/**
6060
* @brief Post a signal transfer request to the GPU.
61-
*
61+
*
6262
* @param req_hndl [in] The request handle.
6363
* @param signal_inc [in] The increment of the signal.
6464
* @param signal_remote_addr [in] The remote address of the signal.
@@ -67,25 +67,25 @@ nixlGpuPostMemXferReq(nixlGpuXferReqH* req_hndl,
6767
*
6868
* @return nixl_status_t Error code if call was not successful
6969
*/
70-
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
71-
__device__ static inline nixl_status_t
72-
nixlGpuPostSignalXferReq(nixlGpuXferReqH* req_hndl,
73-
uint64_t signal_inc,
74-
uint64_t signal_remote_addr,
75-
nixlGpuXferStatusH* xfer_status = nullptr,
70+
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
71+
__device__ static inline nixl_status_t
72+
nixlGpuPostSignalXferReq(nixlGpuXferReqH* req_hndl,
73+
uint64_t signal_inc,
74+
uint64_t signal_remote_addr,
75+
nixlGpuXferStatusH* xfer_status = nullptr,
7676
bool is_no_delay = true)
7777
{
7878
return NIXL_ERR_NOT_SUPPORTED;
7979
}
8080

8181
/**
8282
* @brief Post a partial memory transfer request to the GPU.
83-
*
83+
*
8484
* @param req_hndl [in] The request handle.
8585
* @param count [in] The number of blocks to send.
8686
* @param indices [in] The indices of the blocks to send.
8787
* @param sizes [in] The sizes of the blocks to send.
88-
* @param addreses [in] The addresses of the blocks to send.
88+
* @param addresses [in] The addresses of the blocks to send.
8989
* @param remote_addrs [in] The remote addresses of the blocks to send.
9090
* @param signal_remote_addr [in] The remote address of the signal. If address is 0, no signal.
9191
* @param signal_inc [in] The increment of the signal.
@@ -94,28 +94,28 @@ nixlGpuPostSignalXferReq(nixlGpuXferReqH* req_hndl,
9494
*
9595
* @return nixl_status_t Error code if call was not successful
9696
*/
97-
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
98-
__device__ static inline nixl_status_t
99-
nixlGpuPostPartialMemXferReq(nixlGpuXferReqH* req_hndl,
100-
size_t count,
97+
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
98+
__device__ static inline nixl_status_t
99+
nixlGpuPostPartialMemXferReq(nixlGpuXferReqH* req_hndl,
100+
size_t count,
101101
const int* indices,
102-
const size_t* sizes,
103-
const void** addreses,
104-
const uint64_t* remote_addrs,
102+
const size_t* sizes,
103+
const void** addresses,
104+
const uint64_t* remote_addrs,
105105
uint64_t signal_remote_addr,
106-
uint64_t signal_inc,
107-
nixlGpuXferStatusH* xfer_status = nullptr,
106+
uint64_t signal_inc,
107+
nixlGpuXferStatusH* xfer_status = nullptr,
108108
bool is_no_delay = true)
109109
{
110110
return NIXL_ERR_NOT_SUPPORTED;
111111
}
112112

113113
/**
114114
* @brief Post a memory transfer request to the GPU.
115-
*
115+
*
116116
* @param req_hndl [in] The request handle.
117117
* @param sizes [in] The sizes of the blocks to send.
118-
* @param addreses [in] The addresses of the blocks to send.
118+
* @param addresses [in] The addresses of the blocks to send.
119119
* @param remote_addrs [in] The remote addresses of the blocks to send.
120120
* @param signal_remote_addr [in] The remote address of the signal. If address is 0, no signal.
121121
* @param signal_inc [in] The increment of the signal.
@@ -124,29 +124,29 @@ nixlGpuPostPartialMemXferReq(nixlGpuXferReqH* req_hndl,
124124
*
125125
* @return nixl_status_t Error code if call was not successful
126126
*/
127-
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
128-
__device__ static inline nixl_status_t
129-
nixlPostGpuXferReq(nixlGpuXferReqH* req_hndl,
130-
const size_t* sizes,
131-
const void** addreses,
132-
const uint64_t* remote_addrs,
127+
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
128+
__device__ static inline nixl_status_t
129+
nixlPostGpuXferReq(nixlGpuXferReqH* req_hndl,
130+
const size_t* sizes,
131+
const void** addresses,
132+
const uint64_t* remote_addrs,
133133
uint64_t signal_remote_addr,
134-
uint64_t signal_inc,
135-
nixlGpuXferStatusH* xfer_status = nullptr,
136-
bool is_no_delay = true)
134+
uint64_t signal_inc,
135+
nixlGpuXferStatusH* xfer_status = nullptr,
136+
bool is_no_delay = true)
137137
{
138138
return NIXL_ERR_NOT_SUPPORTED;
139139
}
140140

141141
/**
142142
* @brief Get the status of a transfer request.
143-
*
143+
*
144144
* @param xfer_status [in] The status of the transfer.
145145
*
146146
* @return nixl_status_t Error code if call was not successful
147147
*/
148-
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
149-
__device__ static inline nixl_status_t
148+
template<nixl_gpu_coordination_level_t level = NIXL_GPU_COORDINATION_BLOCK>
149+
__device__ static inline nixl_status_t
150150
nixlGpuGetXferStatus(nixlGpuXferStatusH* xfer_status)
151151
{
152152
return NIXL_ERR_NOT_SUPPORTED;

0 commit comments

Comments
 (0)