Skip to content

Commit

Permalink
Kernels are now relaunched if not all work is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
braxtoncuneo committed Sep 7, 2023
1 parent 4345c19 commit 864e1a7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions mcdc/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,14 +905,26 @@ def loop_source_precursor(seed, mcdc):

def run_source_gpu_rt(mcdc):
source_gpu_rt.store_state(mcdc)
source_gpu_rt.init(4096)
source_gpu_rt.exec(20000000,288)
count = 0
while True:
source_gpu_rt.init(4096)
source_gpu_rt.exec(65536,288)
#print(f"({count})")
count += 1
if source_gpu_rt.halted():
break
return source_gpu_rt.load_state()

def run_precursor_gpu_rt(mcdc):
precursor_gpu_rt.store_state(mcdc)
precursor_gpu_rt.init(4096)
precursor_gpu_rt.exec(20000000,288)
count = 0
while True:
precursor_gpu_rt.init(4096)
precursor_gpu_rt.exec(65536,288)
#print(f"({count})")
count += 1
if source_gpu_rt.halted():
break
return precursor_gpu_rt.load_state(mcdc)


Expand Down Expand Up @@ -1192,7 +1204,6 @@ def process_sources(seed,mcdc):


def build_gpu_progs():
print("\n\n\nBuilding gpu progs \n\n\n")
global process_sources, process_source_precursors
process_sources = make_gpu_process_sources(False)
process_source_precursors = make_gpu_process_sources(True)
Expand Down

0 comments on commit 864e1a7

Please sign in to comment.