I am writing a huge program and given the amount of time required to perform the whole thing, i would like to use some parallel computation, however, i don’t understand how to implement it.
let’s say i have this piece of code :
for i in 1:100
for i in 1:20
my question is : how can i ask my computer to compute the second for loop in parallel. For example use 4cores/threads to do the for loop 4 steps at a time ?
i tried using @parallel and @thread before the for loop, but i always get an error
Thanks in advance