|
1 | 1 | /****************************************************************************** |
2 | 2 | * Copyright (c) 2011, Duane Merrill. All rights reserved. |
3 | 3 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. |
4 | | - * |
| 4 | + * |
5 | 5 | * Redistribution and use in source and binary forms, with or without |
6 | 6 | * modification, are permitted provided that the following conditions are met: |
7 | 7 | * * Redistributions of source code must retain the above copyright |
|
12 | 12 | * * Neither the name of the NVIDIA CORPORATION nor the |
13 | 13 | * names of its contributors may be used to endorse or promote products |
14 | 14 | * derived from this software without specific prior written permission. |
15 | | - * |
| 15 | + * |
16 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
17 | 17 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
@@ -199,11 +199,11 @@ CUB_RUNTIME_FUNCTION __forceinline__ |
199 | 199 | static cudaError_t SyncStream(cudaStream_t stream) |
200 | 200 | { |
201 | 201 | #if (CUB_PTX_ARCH == 0) |
202 | | - return cudaStreamSynchronize(stream); |
| 202 | + return CubDebug(cudaStreamSynchronize(stream)); |
203 | 203 | #else |
204 | 204 | (void)stream; |
205 | 205 | // Device can't yet sync on a specific stream |
206 | | - return cudaDeviceSynchronize(); |
| 206 | + return CubDebug(cudaDeviceSynchronize()); |
207 | 207 | #endif |
208 | 208 | } |
209 | 209 |
|
@@ -255,15 +255,12 @@ cudaError_t MaxSmOccupancy( |
255 | 255 |
|
256 | 256 | // CUDA API calls not supported from this device |
257 | 257 | return CubDebug(cudaErrorInvalidConfiguration); |
258 | | - |
259 | 258 | #else |
260 | | - |
261 | | - return cudaOccupancyMaxActiveBlocksPerMultiprocessor ( |
| 259 | + return CubDebug(cudaOccupancyMaxActiveBlocksPerMultiprocessor( |
262 | 260 | &max_sm_occupancy, |
263 | 261 | kernel_ptr, |
264 | 262 | block_threads, |
265 | | - dynamic_smem_bytes); |
266 | | - |
| 263 | + dynamic_smem_bytes)); |
267 | 264 | #endif // CUB_RUNTIME_ENABLED |
268 | 265 | } |
269 | 266 |
|
|
0 commit comments