Download Cluster OpenMP User`s Guide
Transcript
Technical Issues 12.9.1 Making Assumed-shape Variables Private An assumed shape array may be used in a private clause in an OpenMP program. If it is, however, the variable in the outer scope that the private variable is modeled on must be declared sharable, because the information relating to the shape of the array must be available across all nodes of the system. The array must be declared sharable at its declaration point. For example, consider the following code: interface subroutine B ( A ) integer A(:) end subroutine B end interface integer A(100000) !dir$ omp sharable(A) call B(A) . . . subroutine B( A ) integer A(:) !$omp parallel private(A) . . . In this situation, if A were not declared to be sharable, then the information about its shape would not be available to all nodes of the cluster. The sharable directive is necessary to make this work. Without it, a variable of the proper shape could not be made by all threads. 12.9.2 Missing Space on Partition Where /tmp is Allocated If you notice that the partition where /tmp is allocated is running low on space and the lack of space does not seem to be due to files residing on that partition, it is possible that there are Cluster OpenMP programs that are either still running on the cluster, or are halted in the debugger. If you kill all such programs, the space should reappear in the partition. This is due to the anonymous space used for swap space in the /tmp partition by Cluster OpenMP. User Manual 69