File size: 815 Bytes
28958dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
MEMCHECK=/work/nightly/memcheck/bin/x86_64_Linux_release/cuda-memcheck 

#########################

files=`ls thrust.test.*`;
files=`ls thrust.example.*`;

#########################

nfiles=0
for fn in $files; do
  nfiles=$((nfiles + 1))
done
j=1
for fn in $files; do
  echo " ----------------------------------------------------------------------"
  echo "  *** MEMCHECK *** [$j/$nfiles] $fn"
  echo " ----------------------------------------------------------------------"
  $MEMCHECK --tool memcheck ./$fn --verbose
  echo " ----------------------------------------------------------------------"
  echo "  *** RACECHECK *** [$j/$nfiles] $fn"
  echo " ----------------------------------------------------------------------"
  $MEMCHECK --tool racecheck ./$fn --verbose --sizes=small
  j=$((j+1))
done;