Search found 9 matches

by kli
Wed Dec 30, 2020 12:37 pm
Forum: Using OpenMP
Topic: macOS Big Sur
Replies: 2
Views: 13594

Re: macOS Big Sur

Perhaps you can try to build LLVM/clang on Big Sur. See https://clang.llvm.org/docs/OpenMPSupport.html
by kli
Wed Dec 30, 2020 11:49 am
Forum: Using OpenMP
Topic: What should the default access be for an associate name defined in an OpenMP loop?
Replies: 2
Views: 11877

Re: What should the default access be for an associate name defined in an OpenMP loop?

The specification states that An associate name that may appear in a variable definition context is shared if its association occurs outside of the construct and otherwise it has the same data-sharing attribute as the selector with which it is associated. [304:11-13] If the associate construct enclo...
by kli
Mon Feb 23, 2015 2:59 pm
Forum: TR2 and TR3 Discussion
Topic: Using named common blocks in target transfers
Replies: 1
Views: 18307

Re: Using named common blocks in target transfers

In [27:19-21], it states that A list item is a variable, array section or common block name (enclosed in slashes), subject to the restrictions specified in Section 2.4 on page 43 and in each of sections describing clauses and directives for which a list appears. The definition of the list item also ...
by kli
Fri Jan 22, 2010 6:59 am
Forum: Using OpenMP
Topic: A question on workshare construct.
Replies: 1
Views: 3062

Re: A question on workshare construct.

MAXVAL is a transformational function. It is allowed inside a workshare construct. You can refer to the OpenMP V3.0 API spec (page 51, line 3-8).

Kelvin
by kli
Thu Jan 21, 2010 3:26 pm
Forum: OpenMP 3.0 API Specifications
Topic: Examples A.4.1c and A.4.1f
Replies: 3
Views: 24613

Re: Examples A.4.1c and A.4.1f

For adding ampersands, I think it is not necessary, the example can be compiled in fixed source form.

Kelvin
by kli
Fri Jun 05, 2009 6:49 am
Forum: OpenMP 3.0 API Specifications
Topic: P72: Copy&Paste error: taskwait should be flush?
Replies: 1
Views: 14490

Re: P72: Copy&Paste error: taskwait should be flush?

Hi Marcel,

I think it is a typo. The directive name should be "flush" under this context. I will put forward to the language committee for the correction.

Thanks,
Kelvin
by kli
Tue Jun 02, 2009 8:24 am
Forum: OpenMP 3.0 API Specifications
Topic: #pragma omp task
Replies: 7
Views: 15455

Re: #pragma omp task

Apparently, the second while loop only executes once, so "ipartner2" acquires the value of zero from "j" in the first iteration.

In general, OpenMP task construct is good for parallelizing condition-controlled loops (such as while loops).

Kelvin
by kli
Fri May 29, 2009 6:09 am
Forum: OpenMP 3.0 API Specifications
Topic: #pragma omp task
Replies: 7
Views: 15455

Re: #pragma omp task

I think the cause is the call of srand(0.000001) that expects unsigned int. As a result, rannum gets zero. The while loop is not executed because the condition is false. Since ipartner1 is not initialized, using it to index str can cause problem. If you have srand(123456) instead, the code seems to ...
by kli
Tue May 19, 2009 7:47 pm
Forum: OpenMP 3.0 API Specifications
Topic: Error in example A.13.4f of OpenMP 3.0 spec
Replies: 1
Views: 7196

Re: Error in example A.13.4f of OpenMP 3.0 spec

Yes, there is a typo in the example A.13.4f. "END TASKWAIT" should be "TASKWAIT". In addition, as suggested, the example should be changed to be standard conformance that requires RESULT in the function definition. We will track these two issues and update the specification in the next revision. Tha...