diff options
author | Zhou Mo <cdluminate@gmail.com> | 2017-07-30 15:38:00 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2017-08-25 21:25:28 +0300 |
commit | 34cb2621266422b4e30c8bfb4ff7743a657799ce (patch) | |
tree | d3232dfd29232d4bc2574d021de4b15869bdd096 | |
parent | e42a37e92fb94be6d38b5f9f587613b95167927c (diff) |
Fix typos.
-rw-r--r-- | lib/THC/THCCachingHostAllocator.h | 2 | ||||
-rw-r--r-- | lib/THC/THCTensorConv.cu | 2 | ||||
-rw-r--r-- | lib/THC/THCTensorMode.cuh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/THC/THCCachingHostAllocator.h b/lib/THC/THCCachingHostAllocator.h index 05513ac..8fb0ec9 100644 --- a/lib/THC/THCCachingHostAllocator.h +++ b/lib/THC/THCCachingHostAllocator.h @@ -22,7 +22,7 @@ THC_API THAllocator THCCachingHostAllocator; // Records an event in the specified stream. The allocation 'ptr' will not be -// re-used until the event has occured. +// re-used until the event has occurred. THC_API cudaError_t THCCachingHostAllocator_recordEvent(void *ptr, THCStream *stream); // Releases cached pinned memory allocations via cudaHostFree diff --git a/lib/THC/THCTensorConv.cu b/lib/THC/THCTensorConv.cu index c8c1ad6..b8f3263 100644 --- a/lib/THC/THCTensorConv.cu +++ b/lib/THC/THCTensorConv.cu @@ -663,7 +663,7 @@ THC_API void THCudaTensor_conv2DRevgerm(THCState *state, THCudaTensor *output, f float *output_data = THCudaTensor_data(state, output); // kernel is called multiple times - // (the arbitrary split below is just here to make sure we dont go over 256 threads) + // (the arbitrary split below is just here to make sure we don't go over 256 threads) for (int sl=0; sl<nbatch; sl+=6) { // auto compute nb of blocks and threads dim3 blocks(nKernelPlane, nInputPlane); diff --git a/lib/THC/THCTensorMode.cuh b/lib/THC/THCTensorMode.cuh index b67ac2a..4d062e7 100644 --- a/lib/THC/THCTensorMode.cuh +++ b/lib/THC/THCTensorMode.cuh @@ -245,7 +245,7 @@ __global__ void computeMode( // Finally, we need to find the "an" index of the mode in the input Tensor. The API does // not constrain which index we pick, so it can be any of the indices that contain the mode. // We will do a reduction to find the index. We go back to using the (index, flag) buffer - // arrangment. First, we mark indices that are equal to the mode, i.e B[i] = true if + // arrangement. First, we mark indices that are equal to the mode, i.e B[i] = true if // input[i] == mode, and initialize C[i] to be the index // // Again we reduce 2 elements in the thread's registers prior to the block-wide reduction |