NumPower / numpower

PHP extension for efficient scientific computing and array manipulation with GPU support
https://numpower.org
Other
185 stars 4 forks source link

Bug fix patch #32

Closed henrique-borba closed 1 year ago

henrique-borba commented 1 year ago

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Fix NDArray_Fill method memory error Fixed isGPU method to return value correctly

What is the current behavior? (You can also link to an open issue here)

NDArray_Fill was causing the device to release memory prematurely.

[z=](php: ./src/buffer.c:81: buffer_get: Assertion `MAIN_MEM_STACK.buffer[uuid] != NULL' failed.)

NDArray_isGPU was returning incorrect values.