Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 116 additions & 7 deletions cscs-checks/cuda/src/cuda_memtest-1.2.3.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,119 @@
Binary files cuda_memtest-1.2.3-orig/cuda_memtest and cuda_memtest-1.2.3/cuda_memtest differ
Binary files cuda_memtest-1.2.3-orig/cuda_memtest.o and cuda_memtest-1.2.3/cuda_memtest.o differ
diff -urN cuda_memtest-1.2.3-orig/Makefile cuda_memtest-1.2.3/Makefile
--- cuda_memtest-1.2.3-orig/Makefile 2012-02-06 21:39:33.000000000 +0100
+++ cuda_memtest-1.2.3/Makefile 2019-02-15 10:16:10.769307000 +0100
diff -u cuda_memtest-1.2.3-orig/cuda_memtest.h cuda_memtest-1.2.3/cuda_memtest.h
--- cuda_memtest-1.2.3-orig/cuda_memtest.h 2019-03-21 16:13:55.000000000 +0100
+++ cuda_memtest-1.2.3/cuda_memtest.h 2019-03-21 16:14:16.000000000 +0100
@@ -8,18 +8,18 @@
*
* Developed by:
*
- * Innovative Systems Lab
- * National Center for Supercomputing Applications
+ * Innovative Systems Lab
+ * National Center for Supercomputing Applications
* http://www.ncsa.uiuc.edu/AboutUs/Directorates/ISL.html
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal with
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal with
* the Software without restriction, including without limitation the rights to use,
- * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so, subject
* to the following conditions:
*
- * * Redistributions of source code must retain the above copyright notice, this list
+ * * Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimers.
*
* * Redistributions in binary form must reproduce the above copyright notice, this list
@@ -30,11 +30,11 @@
* Applications, nor the names of its contributors may be used to endorse or promote products
* derived from this Software without specific prior written permission.
*
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
- * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
+ * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS WITH THE SOFTWARE.
*/

@@ -71,27 +71,27 @@
#define PRINTF(fmt,...) do{ \
if (monitor_temp){ \
pthread_mutex_lock(&mutex); \
- printf("[%s][%s][%d][%d C]:"fmt, time_string(), hostname, gpu_idx, gpu_temp[gpu_idx],##__VA_ARGS__); \
+ printf("[%s][%s][%d][%d C]:" fmt, time_string(), hostname, gpu_idx, gpu_temp[gpu_idx],##__VA_ARGS__); \
pthread_mutex_unlock(&mutex); \
} \
else{ \
pthread_mutex_lock(&mutex); \
- printf("[%s][%s][%d]:"fmt, time_string(), hostname, gpu_idx, ##__VA_ARGS__); \
+ printf("[%s][%s][%d]:" fmt, time_string(), hostname, gpu_idx, ##__VA_ARGS__); \
pthread_mutex_unlock(&mutex); \
} \
fflush(stdout); \
- } while(0)
+ } while(0)


#define FPRINTF(fmt,...) do{ \
if (monitor_temp){ \
- fprintf(stderr, "[%s][%s][%d][%d C]:"fmt, time_string(), hostname, gpu_idx, gpu_temp[gpu_idx],##__VA_ARGS__); \
+ fprintf(stderr, "[%s][%s][%d][%d C]:" fmt, time_string(), hostname, gpu_idx, gpu_temp[gpu_idx],##__VA_ARGS__); \
} \
else{ \
- fprintf(stderr, "[%s][%s][%d]:"fmt, time_string(), hostname, gpu_idx, ##__VA_ARGS__); \
+ fprintf(stderr, "[%s][%s][%d]:" fmt, time_string(), hostname, gpu_idx, ##__VA_ARGS__); \
} \
fflush(stderr); \
- } while(0)
+ } while(0)



@@ -113,21 +113,21 @@
PRINTF("%s: %d out of %d blocks finished\n", msg, num_checked_blocks, tot_num_blocks ); \
} \
} \
- fflush(stdout);
+ fflush(stdout);


#define CUERR do{ cudaError_t cuda_err; \
if ((cuda_err = cudaGetLastError()) != cudaSuccess) { \
FPRINTF("ERROR: CUDA error: %s, line %d, file %s\n", cudaGetErrorString(cuda_err), __LINE__, __FILE__); \
PRINTF("ERROR: CUDA error: %s, line %d, file %s\n", cudaGetErrorString(cuda_err), __LINE__, __FILE__); \
- exit(cuda_err);}}while(0)
+ exit(cuda_err);}}while(0)

#define SYNC_CUERR do{ cudaError_t cuda_err; \
cudaThreadSynchronize(); \
if ((cuda_err = cudaGetLastError()) != cudaSuccess) { \
FPRINTF("ERROR: CUDA error: %s, line %d, file %s\n", cudaGetErrorString(cuda_err), __LINE__, __FILE__); \
PRINTF("ERROR: CUDA error: %s, line %d, file %s\n", cudaGetErrorString(cuda_err), __LINE__, __FILE__); \
- exit(cuda_err);}}while(0)
+ exit(cuda_err);}}while(0)

#define TDIFF(tb, ta) (tb.tv_sec - ta.tv_sec + 0.000001*(tb.tv_usec - ta.tv_usec))
#define DIM(x) (sizeof(x)/sizeof(x[0]))
@@ -141,7 +141,7 @@
typedef struct cuda_memtest_s{
test_func_t func;
char* desc;
- unsigned int enabled;
+ unsigned int enabled;
}cuda_memtest_t;


Common subdirectories: cuda_memtest-1.2.3-orig/doc and cuda_memtest-1.2.3/doc
diff -u cuda_memtest-1.2.3-orig/Makefile cuda_memtest-1.2.3/Makefile
--- cuda_memtest-1.2.3-orig/Makefile 2019-03-21 16:13:55.000000000 +0100
+++ cuda_memtest-1.2.3/Makefile 2019-03-21 16:14:09.000000000 +0100
@@ -54,7 +54,7 @@

CUDA_INCLUDES := -I. -I${CUDA_INSTALL_PATH}/include
Expand All @@ -12,5 +123,3 @@ diff -urN cuda_memtest-1.2.3-orig/Makefile cuda_memtest-1.2.3/Makefile
CFLAGS_SM10= -arch sm_10 -DSM_10 -O3
CFLAGS_SM20= -arch sm_20 -DSM_20 -O3
CUDA_SRC_FILES= cuda_memtest.cu misc.cpp tests.cu
Binary files cuda_memtest-1.2.3-orig/misc.o and cuda_memtest-1.2.3/misc.o differ
Binary files cuda_memtest-1.2.3-orig/tests.o and cuda_memtest-1.2.3/tests.o differ