inducer / inducer/pyopencl

unaligned numpy arrays

Open
#170 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

For FPGA execution of OpenCL kernels, the board expects 64-byte aligned host arrays. However, there seems to be no way to get numpy arrays to obey custom alignments (It seems the inbuilt ALIGNMENT length is 16 or some such). In most cases, this is harmless, but sometimes it cases the FPGA OpenCL kernel to stall/freeze. I'm wondering if there's some way to get PyOpenCL to align buffers on the host prior to transfer?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.