You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try "from bilateralfilter import bilateralfilter, bilateralfilter_batch":
(i have append.the path of lib.linux-x86_64-3.7, but it seems not work)
You can comment out all the places where omp appears.
For example, in bilateralfilter.cpp:
void bilateralfilter_batch(float * images, int len_images, float * ins, int len_ins, float * outs, int len_outs,
int N, int K, int H, int W, float sigmargb, float sigmaxy){
//const int maxNumThreads = omp_get_max_threads();
//printf("Maximum number of threads for this machine: %i\n", maxNumThreads);
//omp_set_num_threads(std::min(maxNumThreads,N));
// #pragma omp parallel for
for(int n=0;n<N;n++){
bilateralfilter(images+n*3*H*W, 3*H*W, ins+n*K*H*W, K*H*W, outs+n*K*H*W, K*H*W,
H, W, sigmargb, sigmaxy);
}
//printf("parallel for\n");
}
when i try "from bilateralfilter import bilateralfilter, bilateralfilter_batch":
(i have append.the path of lib.linux-x86_64-3.7, but it seems not work)
ImportError: /home/dancer/anaconda3/envs/ToCo/lib/python3.7/site-packages/bilateralfilter-0.1-py3.7-linux-x86_64.egg/_bilateralfilter.cpython-37m-x86_64-linux-gnu.so: undefined symbol: omp_get_thread_num
The text was updated successfully, but these errors were encountered: