Aligned Memory Allocator for AVX-512 - Quant Developer Interview Question
Difficulty: Medium
Category: memory_optimization
Asked at: Akuna, Jump Trading, Tower Research, Optiver, HRT
Topics: memory, optimization, c++17, quant
Problem Description
High-frequency trading systems often rely on AVX-512 instructions to process 512 bits per cycle, requiring memory to be aligned to specific boundaries for maximum throughput. Standard memory allocators do not guarantee the 64-byte alignment necessary for these SIMD operations, necessitating custom memory management solutions to prevent performance degradation or hardware faults.
Task
Implement the AlignedBuffer class to manage a dynamic array of double values aligned to a 64-byte boundary using
Practice this medium developer interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.