|
如何使用openmp呢?
我是debian用户安装了
用软件管理器搜索了安装了openmp的相关文件
但是编译下面的文件还是报错
源代码内容如下:
vim ttopenmp.f95
1 program hello90
2
3 use omp_lib
4
5 integer:: id, nthreads
6
7 !$omp parallel private(id)
8
9 id = omp_get_thread_num()
10
11 write (*,*) 'Hello World from thread', id
12
13 !$omp barrier
14
15 if ( id == 0 ) then
16
17 nthreads = omp_get_num_threads()
18
19 write (*,*) 'There are', nthreads, 'threads'
20
21 end if
22
23 !$omp end parallel
24
25 end program
f95 ttopenmp.f95 -g -o ttopenmp
In file ttopenmp.f95:3
use omp_lib
1
Fatal Error: Can't open module file 'omp_lib.mod' for reading at (1): 没有那个文件或目录
哪位指点一下
感激不尽 |
|