Firas
Firas
MModular
Created by franchesoni on 10/17/2024 in #questions
List of SIMD bug
I am not sure about my answer but this what I think: one variable of SIMD is like a hardware vector that you can use to do single instruction on multiple data, and the maximum value for one SIMD is upper bounded. you can use check the value for your architecture using: from sys.info import simdwidthof alias simd_width = simdwidthofDType.int32 reagrding your code: yes we can do somthing like SIMDtype=DType.float32, size=size. with size>>simd_width, but I think it's somthing that mojo handle without we know. "abstraction" regarding your Matrix: you can look at the matrix_mul_mojo_example from there webiste and look how they utilize the SIMD using the vectorize built in optimization. also look at the parallelize to multiple processors....
77 replies
MModular
Created by Firas on 9/9/2024 in #questions
vectorize functional VS SIMD regular ops
Thanks a lot ... yes at the end i assumed that....
7 replies
MModular
Created by Firas on 9/9/2024 in #questions
vectorize functional VS SIMD regular ops
thanks Jake ! thanks for letting me know about the pointer things 👍 Regarding the question, for instance, if we examine the inner loop in the matrix multiplication example from Mojo, they implement it using vectorization. Therefore, if we convert the data to SIMD format and utilize SIMD operations, would the process would be faster ?
7 replies
MModular
Created by Firas on 9/7/2024 in #questions
How to random int ??
ok thanks guys I was so confused and tired after hours of coding, all what I needed is the int() builtin function 🫂
5 replies
MModular
Created by Firas on 5/2/2024 in #questions
RayTracing example - __add__ method (dunder methods)
Ok wow thanks a lot !!
5 replies