Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MBI: buffer on stack is a programming error, not a MPI error
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 26 Mar 2022 22:59:49 +0000 (23:59 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 26 Mar 2022 23:28:29 +0000 (00:28 +0100)
teshsuite/smpi/MBI/RMAWinBufferGenerator.py

index db49af8..5ed8b28 100755 (executable)
@@ -83,7 +83,7 @@ int main(int argc, char *argv[]) {
 """
 
 
-for b in ['stack', 'missing', 'null',  'malloc', 'bufferSize']:
+for b in ['missing', 'null',  'malloc', 'bufferSize']:
     patterns = {}
     patterns = {'b': b}
     patterns['origin'] = "MPI-CorrBench"
@@ -100,11 +100,7 @@ for b in ['stack', 'missing', 'null',  'malloc', 'bufferSize']:
     ok = 'nok'
     replace['buffer'] = 'buffer'
 
-    if b == 'stack':
-        replace['bufferalloc'] = 'int buffer[N]; /* MBIERROR1 */'
-        replace['buffer'] = '&buffer'
-        replace['longdesc'] = 'Use a stack oriented buffer in window creation, buffer on temporary stack memory.'
-    elif b == 'missing':
+    if b == 'missing':
         replace['bufferalloc'] = '/* MBIERROR1 */'
         replace['longdesc'] = 'Uninitialized buffer in window creation.'
     elif b == 'null':