Allocate aligned memory
All threads resolved!
All threads resolved!
Compare changes
- Sebastian Ohlmann authored
For runs on the CPU, the memory for the batches of the wavefunctions in the states is now allocated in an aligned way. The alignment is chosen according to the vectorization recognized at configure time. This improves vectorized instructions, especially for the finite difference kernels where vector instuction intrinsics are used.
+ 13
− 3
@@ -19,6 +19,8 @@
@@ -42,15 +44,23 @@ void *my_allocate(int size_bytes) {