A quick run of following code:
platform = api.get_platforms()[platform_number]
device = platform.get_devices()[device_number]
thr_free = api.Thread(device)
thr_compile = api.Thread(device)
#Compile with something
thr_compile.compile(<...>)
#Free memory
thr_free.release()
thr_compile.release()
You would notice that the memory on device is cleared for non-compiled thread, but not for the compiled one
A quick run of following code:
You would notice that the memory on device is cleared for non-compiled thread, but not for the compiled one