Closed matthiasdiener closed 1 year ago
With decode() and pocl, this results in the following error:
decode()
$ python experiments/print-binary.py foo.cl Traceback (most recent call last): File "/Users/mdiener/Work/drivers_y3-prediction-esdg/emirge/pyopencl/experiments/print-binary.py", line 13, in <module> print(prg.binaries[0].decode("utf-8")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9f in position 8: invalid start byte
With this PR:
$ python experiments/print-binary.py foo.cl poclbin|Ç¿zÖ LN/PIKEMMJELAABPLIMDDGLDMIKPKNLCOPMBLENO /program.bcpÞÀ [...]
This is the only file in experiments, so I thought it may be a candidate to move to scripts.
experiments
scripts
contrib/cldis.py has kind of the same functionality right?
contrib/cldis.py
Yeah, let's just get rid of print-binary.
print-binary
Sounds good, I changed this PR to remove it.
Thanks!
With
decode()
and pocl, this results in the following error:With this PR:
This is the only file in
experiments
, so I thought it may be a candidate to move toscripts
.