简体   繁体   English

如何使用OpenACC实施用户定义的还原?

[英]How to implement user-defined reduction with OpenACC?

Is there a way to implement a user-defined reduction with OpenACC similar to declare reduction in OpenMP? 有没有一种方法可以使用OpenACC来实现用户定义的缩减,类似于在OpenMP中声明缩减?

So that I could write something like #pragma acc loop reduction(my_function:my_result) 这样我就可以编写类似#pragma acc loop reduction(my_function:my_result)

Or what would be the appropriate way to implement efficient reduction without the predefined operators? 或在没有预定义操作符的情况下实现有效减少的合适方法是什么?

User defined reductions aren't yet part of the OpenACC standard. 用户定义的缩减还不是OpenACC标准的一部分。 While I'm not part of the OpenACC technical committee, I believe they have received requests for this but not sure if it's something being considered for the 3.0 standard. 虽然我不是OpenACC技术委员会的成员,但我相信他们已经收到了对此的要求,但不确定3.0标准是否考虑了这一点。

Since the OpenACC standard is largely user driven, I'd suggest you send a note to the OpenACC folks requesting this support. 由于OpenACC标准主要是由用户驱动的,因此建议您向OpenACC的人员发送说明,以请求此支持。 The more folks that request it, the more likely it is to be adopted in the standard. 要求它的人越多,该标准就越有可能采用它。

Contact info for OpenACC can be found at the bottom of https://www.openacc.org/about OpenACC的联系信息可以在https://www.openacc.org/about的底部找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM