Allocate pinned memory only if accel is enabled
This avoids a segfault that occurs currently if the code was compiled with CUDA enabled but then executed on the CPU, where pinned memory allocation might not work.
In the new version, pinned memory is only allocated if acceleration is enabled, otherwise aligned memory is used.
Fix allocation of pinned memory
- I have checked that my code follows the Octopus coding standards