ModularM
Modular16mo ago
76 replies
franchesoni

List of SIMD bug

The following simple code doesn't work, is this because of memory? I find the documentation is lacking, it only says SIMD are restricted to powers of 2, which I compy with...
alias S: Int = 256
alias S2: Int = S*S
alias SquareMatrix = SIMD[size=S2]

def main():
    var sqms = List[SquareMatrix[DType.float32]]()
    for ind in range(2):  # using 1 instead of 2 gives no issues
        sqm = SquareMatrix[DType.float32]()
        sqms.append(sqm)
    print('success!')  # we never get here :(
Was this page helpful?