We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3348b7 + 379bfff commit 025bc92Copy full SHA for 025bc92
1 file changed
cuda_memtest.cpp
@@ -153,18 +153,18 @@ thread_func(void* _arg)
153
}
154
155
unsigned int tot_num_blocks_old = tot_num_blocks;
156
- apiError_t err;
157
158
// Try to allocate tot_num_blocks memory, if this fails we reduce the number of blocks
159
// until we find a valid number of blocks which can be allocated.
160
do{
161
// reset error
162
- MEMTEST_API_PREFIX(GetLastError());
+ CUERR(MEMTEST_API_PREFIX(GetLastError()));
163
DEBUG_PRINTF("Trying to allocate %d MB\n", tot_num_blocks);
164
if (tot_num_blocks <= 0){
165
FPRINTF("ERROR: cannot allocate any memory from GPU\n");
166
exit(ERR_GENERAL);
167
+ apiError_t err;
168
if(useMappedMemory)
169
{
170
//create cuda mapped memory
0 commit comments