diff --git a/intercept/scripts/run.py b/intercept/scripts/run.py index 27a91794..811d8b0f 100644 --- a/intercept/scripts/run.py +++ b/intercept/scripts/run.py @@ -150,6 +150,11 @@ def sampler_from_string(ctx, sampler_descr): with open("kernel.cl", 'r') as file: kernel = file.read() prg = cl.Program(ctx, kernel).build(options) +elif os.path.isfile("kernel.spv"): + print("Using kernel IL") + with open("kernel.spv", 'r') as file: + kernel = np.fromfile(file, dtype='uint8').tobytes() + prg = cl.Program(ctx, kernel).build(options) else: print("Using kernel device binary") binary_files = gl.glob("./DeviceBinary*.bin")