21%
07.02.2019
data copy(a)
!$acc parallel loop
do i=1,n
a(i) = 0.0
enddo
!$acc data end
#pragma acc data copy(a)
{
#pragma acc parallel loop
{
for (int i=0; i < n; i++)
{
a[i] = 0.0
21%
15.12.2016
are over i
= 2,n
− 1 and j
= 2,n
−1. Here is how you can write the iteration over the domain using array notation:
a(2:n-1,2:n-1) = 0.25 * &
(a(1:n-2,2:n) + a(3:n,2:n) + a(2:n,1:n-2) + a(2:n,3:n
21%
07.06.2019
of text. The text continues until the identifier appears again to mark the end of the Heredoc.
Nowdoc syntax was introduced in PHP 5.3.0. It behaves like text in single quotes, which PHP does not interpret
21%
12.02.2014
has been removed for the sake of brevity).
Listing 4: System Information from ps_mem
[root@home4 1]# ./ps_mem.py
Private + Shared = RAM used Program
84.0 KiB + 12.5 KiB = 96.5 Ki
21%
17.06.2017
integer :: allocate_status
08 !
09 n = 10
10 allocate( array(n, n), stat = allocate_status )
11 if (allocate_status /= 0) stop "Could not allocate array"
12 !
13 subarray => array(3:7,3:7)
14
21%
04.08.2020
->tv_nsec) * 1E-9;
24 }
25
26 int main(int argc, char* argv[argc+1]) {
27 if (argc < 2) {
28 fprintf(stderr, "Usage: %s NNN, NNN iterations\n",
29 argv[0]);
30 return EXIT_FAILURE;
31 }
32
21%
07.07.2020
: idx=138 dat=0 spc=0
Objects: alc=0 nal=0 avl=0 ded=0
ChkAux : non=0 ok=0 upd=0 obs=0
Pages : mrk=0 unc=0
Acquire: n=138 nul=0 noc=0 ok=138 nbf=0 oom=0
Lookups: n=0 neg=0 pos=0 crt=0 tmo=0
Invals : n=0 run
21%
07.11.2011
#pragma omp parallel for shared (sum) private (i)
12 for ( i=0; i < 1000000; i++) {
13 #pragma omp critical (sum_total)
14 sum = sum + a[i];
15 }
16 printf("sum=%lf\n",sum);
17
21%
01.06.2024
[i];
82 }
83
84 pi = ((double)finalcount/(double)finalniter)*4.0; //p = 4(m/n)
85 printf("Pi: %f\n", pi); //Print the calculated value of pi
86
21%
17.02.2015
://developer.nvidia.com/jetson-tk1
Odroid-XU3
Android 4.4, Linux
Samsung Exynos5422
Quad ARM Cortex-A15 @2.0GHz (32KB/32KB/2MB), Quad ARM Cortex-A7 @1.4GHz (32KB/32KB/512KB)
Mali-T628 MP6