警告信息 [英] Warning message

查看:119
本文介绍了警告信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译程序时,我有以下消息


在函数''int main()''


忽略#pragma omp for


代码如下


#ifdef _OPENMP

#include< omp.h>

#endif

int main()

{

#pragma omp

{

for(int i = 0; i< = 10 i ++)

{}

}

return o;

可以有人帮助我。


}

When I compile the program I have the follwing message

In function ''int main()''

ignoring #pragma omp for

The code is following

#ifdef _OPENMP
#include <omp.h>
#endif
int main()
{
# pragma omp for
{
for (int i=0; i<=10 i++)
{}
}
return o;
can somebody help me.

}

推荐答案

什么是 #pragma omp for应该是什么意思?未知的pragma是

应该被编译器忽略。


亲切的问候,


Jos


ps。为了您自己的隐私,我删除了您的电子邮件地址。
And what is "#pragma omp for" supposed to mean? Unknown pragmas are
supposed to be ignored by the compiler.

kind regards,

Jos

ps. I removed your email address for your own privacy.


如何执行omp并行指令

您能否提到错误是什么。
How I can execute the omp parallel directive
can you please mentioned what is the mistake.



如何执行omp并行指令

你能否提到错误是什么。
How I can execute the omp parallel directive
can you please mentioned what is the mistake.



我确定你的手册描述了关于它自己的编译器'

pragma指令的所有细节。


亲切的问候,


Jos

I''m sure your manual describes all the nitty-gritty details about its own compiler''s
pragma directives.

kind regards,

Jos


这篇关于警告信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆