# Copyright 2021-2022. The MBI project. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under the terms of the license (GNU GPL).
+import os
import sys
from generator_utils import *
for c2 in coll + icoll + ibarrier:
patterns = {}
patterns = {'c1': c1, 'c2': c2}
- patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {sys.argv[0]}. DO NOT EDIT.'
+ patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {os.path.basename(sys.argv[0])}. DO NOT EDIT.'
patterns['collfeature'] = 'Yes' if c1 in coll or c2 in coll else 'Lacking'
patterns['icollfeature'] = 'Yes' if c1 in icoll + ibarrier or c2 in icoll + ibarrier else 'Lacking'
patterns['c1'] = c1
# Copyright 2021-2022. The MBI project. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under the terms of the license (GNU GPL).
+import os
import sys
from generator_utils import *
for call in tcoll:
patterns = {}
patterns = {'call': call}
- patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {sys.argv[0]}. DO NOT EDIT.'
+ patterns['generatedby'] = f'DO NOT EDIT: this file was generated by {os.path.basename(sys.argv[0])}. DO NOT EDIT.'
patterns['toolfeature'] = 'Yes'
patterns['call'] = call
patterns['operation'] = operation[call]("1")