Hi
I’m researching parallel processing using CKKS, and it seems the OpenFHE library internally implements parallel processing using OpenMP.
I’d like to perform hierarchical parallel processing using the code below. Is this possible?
//Enables hierarchical parallel processing
omp_set_nested(1);
・・・
//Hierarchical parallel processing
#pragma omp parallel for num_threads(2)
for (int i=0; i<2; i++){
cryptoContext->EvalMult(ciph, ciph);
}
I’m using a MacBook Pro (8 cores) with M1, so I’m assuming that two threads will be assigned to the for loop and four threads to the OpenFHE function, for a total of 2 * 4 = 8 threads. Is that correct?