Closed Qazalbash closed 1 year ago
Why not use openmp as done in my code?
I am great full for your positive response. I was unaware of openmp. I have also tried to implement your code in C language, please check it and share your thoughts over it. I would be very happy for it. Click here.
I added the multi-threading for performance. Here is the code for it
Code
Test & Results
I tested this on
Intel Core i7-1065G7 4 cores (8 threads)
and got the performance of almost 2x. It was tested for 1024x1024 dimension. The results are,Without multi-threading
With multi-threading