LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 819|回复: 0

openmp求助

[复制链接]
发表于 2007-8-27 10:41:37 | 显示全部楼层 |阅读模式
如何使用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): 没有那个文件或目录

哪位指点一下

感激不尽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表