Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/libgomp/testsuite/libgomp.oacc-c++/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     template-reduction.C (2.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const int n = 100;

// Check explicit template copy map

template<typename T> T
sum (T array[])
{
   T s = 0;

#pragma acc parallel loop num_gangs (10) gang reduction (+:s) copy (array[0:n])
  for (int i = 0; i < n; i++)
    s += array[i];

  return s;
}

// Check implicit template copy map

template<typename T> T
sum ()
{
  T s = 0;
  T array[n];

  for (int i = 0; i < n; i++)
    array[i] = i+1;

#pragma acc parallel loop num_gangs (10) gang reduction (+:s)
  for (int i = 0; i < n; i++)
    s += array[i];

  return s;
}

// Check template with default (present)

template<typename T> T
sum_default_present ()
{
  T s = 0;
  T array[n];

  for (int i = 0; i < n; i++)
    array[i] = i+1;

#pragma acc enter data copyin (array)

#pragma acc parallel loop num_gangs (10) gang reduction (+:s) default (present)
  for (int i = 0; i < n; i++)
    s += array[i];

#pragma acc exit data delete (array)

  return s;
}

// Check present and async

template<typename T> T
async_sum (T array[])
{
   T s = 0;

#pragma acc parallel loop num_gangs (10) gang async (1) present (array[0:n])
   for (int i = 0; i < n; i++)
     array[i] = i+1;

#pragma acc parallel loop num_gangs (10) gang reduction (+:s) present (array[0:n]) async wait (1)
  for (int i = 0; i < n; i++)
    s += array[i];

#pragma acc wait

  return s;
}

// Check present and async and an explicit firstprivate

template<typename T> T
async_sum (int c)
{
   T s = 0;

#pragma acc parallel loop num_gangs (10) gang reduction (+:s) firstprivate (c) async wait (1)
  for (int i = 0; i < n; i++)
    s += i+c;

#pragma acc wait

  return s;
}

int
main()
{
  int a[n];
  int result = 0;

  for (int i = 0; i < n; i++)
    {
      a[i] = i+1;
      result += i+1;
    }

  if (sum (a) != result)
    __builtin_abort ();

  if (sum<int> () != result)
    __builtin_abort ();

  if (sum_default_present<int> () != result)
    __builtin_abort ();

#pragma acc enter data copyin (a)
  if (async_sum (a) != result)
    __builtin_abort ();

  if (async_sum<int> (1) != result)
    __builtin_abort ();
#pragma acc exit data delete (a)

  return 0;
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0054 ]--