主题:求助 openmp 怎么配置都不正确。
在本论坛找的例子:代码如下
program EXAM
use omp_lib
implicit none
integer nth,tid,npro
integer num_threads
num_threads=4
call omp_set_num_threads(num_threads)
! $OMP parallel private(nth, tid)
tid=omp_get_thread_num()
write(*,*) "hello world from OMP thread ",tid
if(tid==0)then
nth=omp_get_num_threads()
write(*,*) "Number of threads ",nth,omp_get_num_procs()
endif
! $OMP END parallel
pause
end program EXAM
结果debug时老是出现下面的错误:
OMP: Warning #2: Cannot open message catalog "2052\libiomp5ui.dll":
OMP: System error #2: 找不到指定的模块。
OMP: System error #126: 找不到指定的模块。
OMP: wanging #191: ittnotify:loading"libittnotify.dll"library failed
而且我在安装路径里面就没看到libiomp5ui.dll,急死了,求帮忙。
program EXAM
use omp_lib
implicit none
integer nth,tid,npro
integer num_threads
num_threads=4
call omp_set_num_threads(num_threads)
! $OMP parallel private(nth, tid)
tid=omp_get_thread_num()
write(*,*) "hello world from OMP thread ",tid
if(tid==0)then
nth=omp_get_num_threads()
write(*,*) "Number of threads ",nth,omp_get_num_procs()
endif
! $OMP END parallel
pause
end program EXAM
结果debug时老是出现下面的错误:
OMP: Warning #2: Cannot open message catalog "2052\libiomp5ui.dll":
OMP: System error #2: 找不到指定的模块。
OMP: System error #126: 找不到指定的模块。
OMP: wanging #191: ittnotify:loading"libittnotify.dll"library failed
而且我在安装路径里面就没看到libiomp5ui.dll,急死了,求帮忙。