Skip to content

Commit

Permalink
[grid] in gg_tt.mad/bin/internal/madevent_interface.py, improve madgr…
Browse files Browse the repository at this point in the history
…aph5#947 fix: do not delete G* if it is not a directory (e.g. GpuAbstraction.h)
  • Loading branch information
valassi committed Aug 2, 2024
1 parent 8e29029 commit cf52afc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions epochX/cudacpp/gg_tt.mad/bin/internal/madevent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3967,8 +3967,7 @@ def do_create_gridpack(self, line):
for P in Pdir:
allG = misc.glob('G*', path=P)
for G in allG:
if G.endswith('GpuAbstraction.h'): continue
if G.endswith('GpuRuntime.h'): continue
if not os.path.isdir(G): continue
if pjoin(P, G) not in Gdir:
logger.debug('removing %s', pjoin(P,G))
shutil.rmtree(pjoin(P,G))
Expand Down

0 comments on commit cf52afc

Please sign in to comment.