file_path
stringlengths
19
84
content
stringlengths
235
1.29M
./openacc-vv/loop_no_collapse.F90
#ifndef T1 !T1:construct-independent,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(10 * LOOPCOUNT):: a, b, c !Data REAL(8):: total INTEGER :: errors = 0 !Initilization S...
./openacc-vv/kernels_vector_length.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; real_t * b = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = 0; } #pragma acc data copyin(a[0:n]) copy...
./openacc-vv/shutdown_device_num.F90
#ifndef T1 !T1:runtime,construct-independent,internal-control-values,shutdown,nonvalidating,V:2.5-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: device_num INTEGER :: device_type INTEGER :: errors = 0 device_num...
./openacc-vv/parallel_deviceptr.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,runtime,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; real_t * b; for (int x = 0; x < n; ++x){ a[x] = 0; } #pragma acc enter data copyin(a[0:n]) b = (real_t *) acc_deviceptr(a); if (b == NULL...
./openacc-vv/loop_collapse.F90
#ifndef T1 !T1:construct-independent,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(10*LOOPCOUNT):: a, b, c !Data REAL(8):: total INTEGER :: errors = 0 !Initilization SEE...
./openacc-vv/atomic_update_x_plus_expr.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison INTEGER :: errors =...
./openacc-vv/parallel_loop_reduction_bitand_vector_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int* a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int* b = (unsigned int *)malloc(10 * sizeof(unsigned int)); real_t false_margin =...
./SPECaccel/benchspec/ACCEL/351.palm/data/ref/input/ENVPAR
&envpar run_identifier = 'acc_large', host = 'unknown', write_binary = 'false', tasks_per_node = 1, maximum_cpu_time_allowed = 999999., revision = 'Rev: ', local_dvrserver_running = .FALSE. /
./openacc-vv/serial_loop_reduction_multiply_loop.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-3.2 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * b = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * c = (real_t *)malloc(10 * n * sizeof(real_t))...
./openacc-vv/serial_loop_reduction_max_vector_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[10 * n]; real_t * b = new real_t[10 * n]; real_t * max = new real_t[10]; real_t temp = 0; real_t temp_max; for (int x = 0; x < 10...
./openacc-vv/atomic_update_multiply_equals.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *totals = new real_t[(n/10 + 1)]; real_t *totals_comparison = new real_t[(n/10 + 1)]; for (int x = 0; x < n; ...
./openacc-vv/kernels_loop_reduction_add_vector_loop.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * b = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * c = (real_t *)malloc(10 * sizeof(real_t)); ...
./openacc-vv/serial_loop_reduction_bitxor_vector_loop.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); unsigned int* a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int* b = (unsigned int *)malloc(10 * sizeof(unsigned int)); unsigned int temp = 0; ...
./openacc-vv/serial_loop_reduction_add_loop.F90
#ifndef T1 !T1:serial,private,reduction,combined-constructs,loop,V:2.6-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER:: errors REAL(8),DIMENSION(LOOPCOUNT, 10):: a, b, c, d REAL(8):: avg, temp INTEGER:: x, y avg = 0 errors = 0 SEEDDIM(1) = 1 # ifdef SEED SEEDDIM...
./SPECaccel/benchspec/ACCEL/557.pcsp/src/txinvr.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB SP code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/atomic_capture_expr_bitor_x.cpp
#include "acc_testsuite.h" bool is_possible(int* a, int* b, int length, int prev){ if (length == 0){ return true; } int *passed_a = new int[(length - 1)]; int *passed_b = new int[(length - 1)]; for (int x = 0; x < length; ++x){ if (b[x] == (a[x]|prev)){ for (int y = 0; y ...
./openacc-vv/enter_data_create.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; real_t * b = new real_t[n]; real_t * c = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10)...
./openacc-vv/routine_bind_nonprototype_lambda_string_function.cpp
#include "acc_testsuite.h" //test 1 host lambnda #pragma acc routine vector bind("device_array_array") auto host_array_array = [](real_t * a, long long n){ #pragma acc loop reduction(+:returned) real_t returned = 0.0; for (int x = 0; x < n; ++x){ returned += a[x]; } return returned; }; //...
./openacc-vv/atomic_capture_expr_bitxor_x.c
#include "acc_testsuite.h" bool is_possible(int* a, int* b, int length, int prev){ if (length == 0){ return true; } int *passed_a = (int *)malloc((length - 1) * sizeof(int)); int *passed_b = (int *)malloc((length - 1) * sizeof(int)); for (int x = 0; x < length; ++x){ if (b[x] == (a[x...
./SPECaccel/benchspec/ACCEL/551.ppalm/src/init_pegrid.F90
SUBROUTINE init_pegrid !--------------------------------------------------------------------------------! ! This file is part of PALM. ! ! PALM is free software: you can redistribute it and/or modify it under the terms ! of the GNU General Public License as published by the Free Software Foundation, ! either version ...
./openacc-vv/declare_create.cpp
#define DECLARE_CREATE 1 #include "acc_testsuite_declare.h" real_t scalar = 2; real_t* a; #pragma acc declare create(scalar, a[0:n], n) #pragma acc update device(n) void multiply_scalar(real_t* a){ #pragma acc parallel loop present(a[0:n]) for(int x = 0; x < n; ++x){ a[x] += 1; } } #pragma acc ro...
./openacc-vv/serial_while_loop.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,reduction,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t avg = 0.0; for (int x = 0; x < 10 * n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); } #pragma acc data copy(...
./openacc-vv/shutdown_device_type.F90
#ifndef T1 !T1:runtime,construct-independent,internal-control-values,shutdown,nonvalidating,V:2.5-3.2 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: errors = 0 !$acc shutdown device_type(host) IF (errors .eq. 0) THEN ...
./openacc-vv/atomic_expr_eqv_x_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data LOGICAL,DIMENSION(LOOPCOUNT):: to...
./openacc-vv/acc_deviceptr.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,executable-data,construct-independent,V:2.0-2.7 int test1(){ int err = 0; real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *c = new real_t[n]; real_t *a_ptr; real_t *b_ptr; real_t *c_ptr; for (int x = 0; x < n; ++x){ ...
./openacc-vv/atomic_expr_neqv_x_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data LOGICAL,DIMENSION(LOOPCOUNT):: to...
./MURaM_main/src/Qthin.C
#include <mpi.h> #include <stdio.h> #include <cmath> #include <fstream> #include <stdlib.h> #include <string.h> #include <errno.h> #include "run.H" #include "grid.H" #include "comm_split.H" #include <iostream> #include <algorithm> #define YZ_LOOP(G,j,k) \ for((k)=(G).lbeg[2];(k)<=(G).lend[2];(k)++) \ for((j)=(G).lbeg[...
./openacc-vv/kernels_loop_reduction_bitor_loop.F90
#ifndef T1 !T1:kernels,private,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y, z, i !Iterators INTEGER,DIMENSION(10*LOOPCOUNT):: a, b, b_copy !Data REAL(8),DIMENSION(10*LOOPCOUNT):: randoms2 ...
./SPEChpc/tools/src/perl-5.24.0/cpan/Unicode-Normalize/Normalize.pm
package Unicode::Normalize; BEGIN { unless ('A' eq pack('U', 0x41)) { die "Unicode::Normalize cannot stringify a Unicode code point\n"; } unless (0x41 == unpack('U', 'A')) { die "Unicode::Normalize cannot get Unicode code point\n"; } } use 5.006; use strict; use warnings; use Carp; no warnings 'utf...
./openacc-vv/atomic_update_x_rshift_expr.c
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int *a = (unsigned int *)malloc(n * sizeof(int)); unsigned int *b = (unsigned int *)malloc(n * sizeof(int)); for (int x = 0; x < n; ++x){ a[x] = 1<<7; fo...
./openacc-vv/exit_data.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,devonly,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * a_copy = (real_t *)malloc(n * sizeof(real_t)); int * devtest = (int *)malloc(sizeof(int)); d...
./openacc-vv/serial_private.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,private,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); n = 10; real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * b = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * sizeof(real_t)); real_t * d = (...
./openacc-vv/kernels_loop_reduction_add_vector_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[10 * n]; real_t * b = new real_t[10 * n]; real_t * c = new real_t[10]; real_t temp = 0.0; for(int x = 0; x < 10 * n; ++x){ a...
./SPEChpc/benchspec/HPC/634.hpgmgfv_s/src/hpgmg-fv.c
//------------------------------------------------------------------------------------------------------------------------------ // Copyright Notice //------------------------------------------------------------------------------------------------------------------------------ // HPGMG, Copyright (c) 2014, The Regents...
./openacc-vv/kernels_loop_worker_blocking.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; real_t * b = new real_t[n]; real_t * c = new real_t[n]; real_t multiplyer = 1; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = rand...
./MURaM_main/src/mhdres_SR.C
#include <mpi.h> #include <cmath> #include <stdlib.h> #include <string.h> #include <algorithm> #include "physics.H" #include "grid.H" #include "run.H" #include "limit_va.H" #include "src_int_tck.H" #include "muramacc.H" #include <iostream> using std::cout; using std::endl; using std::min; using std::max; #define OUTE...
./openacc-vv/atomic_capture_ixor_x_expr_assign.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length INTEGER, INTENT(IN) :: init INTEGER,DIMENSION(length), INTENT(IN) :: a INTEGER,DIMENSION(length), INTENT(IN) :: b INTEGER,DIMENSION(length - 1) :: passed_a INTEGER,DIMENSION(length - 1) :: passed_b INTEGER ::...
./openacc-vv/kernels_num_gangs.F90
#ifndef T1 !T1:kernels,reduction,V:2.5-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators INTEGER :: results !Data INTEGER :: errors = 0 results = 0 !$acc kernels num_gangs(8) !$acc loop gang reduction(+...
./openacc-vv/acc_create_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,async,data,executable-data,construct-independent,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *c = new real_t[n]; real_t *d = new real_t[n]; real_t *e = new real_t[n]; real...
./openacc-vv/acc_copyin_async.c
#include "acc_testsuite.h" #ifndef T1 //T1:async,data,executable-data,runtime,construct-independent,V:2.5-2.7 int test1(){ int err = 0; real_t *a = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); real_t *c = (real_t *)malloc(n * sizeof(real_t)); real_t *a_host...
./openacc-vv/parallel_loop_reduction_or_general.F90
#ifndef T1 !T1:parallel,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators LOGICAL,DIMENSION(LOOPCOUNT):: a !Data LOGICAL :: results = .FALSE. LOGICAL :: temp = .FALSE. REAL(...
./openacc-vv/routine_seq.cpp
#include "acc_testsuite.h" void test_routine_seq_loop_named(real_t ** a, real_t * b, long long n); void test_routine_seq_seq_named(real_t ** a, real_t * b, long long n); #pragma acc routine(test_routine_seq_loop_named) seq #pragma acc routine(test_routine_seq_seq_named) seq #pragma acc routine seq real_t called_funct...
./openacc-vv/parallel_create_zero.cpp
#include "acc_testsuite.h" #ifndef T1 //#T1:parallel,data,data_region,V:3.0-3.2 int Test1(){ int err=0; srand(SEED); real_t * a = new real_t[n]; real_t * b = new real_t[n]; for( int x = 0; x < n; x++){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = 0.0; } #pragma acc data ...
./openacc-vv/shutdown.F90
#ifndef T1 !T1:construct-independent,shutdown,nonvalidating,V:2.5-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: errors = 0 !$acc shutdown IF (errors .eq. 0) THEN test1 = .FALSE. ELSE test1 ...
./openacc-vv/exit_data_copyout_reference_counts.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,devonly,construct-independent,reference-counting,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * si...
./openacc-vv/atomic_capture_assign_ixor_expr_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length INTEGER, INTENT(IN) :: init INTEGER,DIMENSION(length), INTENT(IN) :: a INTEGER,DIMENSION(length), INTENT(IN) :: b INTEGER,DIMENSION(length - 1) :: passed_a INTEGER,DIMENSION(length - 1) :: passed_b INTEGER ::...
./openacc-vv/acc_copyout.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,executable-data,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * sizeof(real_t)); ...
./openacc-vv/copy_copyout.cpp
#include "acc_testsuite.h" #ifndef T1 //T1: , V:1.0-2.7 int test1(){ int err = 0; real_t test = 0; #pragma acc parallel loop copy(test) copyout(test) reduction(+:test) for( int x = 0; x <n; ++x){ test += 1; } if(fabs(test - n) > PRECISION){ err++; } return err; } #endif...
./openacc-vv/kernels_loop_reduction_max_general.F90
#ifndef T1 !T1:kernels,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b !Data REAL(8) :: maximum, temp INTEGER :: errors = 0 !Initiliza...
./openacc-vv/serial_copyin.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,data-region,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * a_copy = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); int* hasDevice = (int ...
./openacc-vv/parallel_loop_reduction_multiply_general.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; int multiplicitive_n = 128; srand(SEED); real_t * a = (real_t *)malloc(multiplicitive_n * sizeof(real_t)); real_t * b = (real_t *)malloc(multiplicitive_n * sizeof(real_t)); ...
./SPEChpc/benchspec/HPC/618.tealeaf_s/src/2d/c_kernels/pack_halos.c
#include <stdlib.h> #include "../shared.h" // Packs left data into buffer. void pack_left( const int x, const int y, const int depth, const int halo_depth, double* field, #if defined(SPEC_OPENACC) || defined(SPEC_OPENMP_TARGET) double* buffer, bool is_offload) #e...
./openacc-vv/atomic_x_times_expr_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison INTEGER :: errors =...
./SPECaccel/tools/src/perl-5.12.3/ext/re/Makefile.PL
use ExtUtils::MakeMaker; use File::Spec; use Config; my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)'; my $defines = '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT'; WriteMakefile( NAME => 're', VERSION_FROM => 're.pm', XSPROTOARG => '-noprototypes', OBJECT => $object, DEFI...
./openacc-vv/parallel_create.F90
#ifndef T1 !T1:parallel,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 # ifdef SEED SEEDDIM(1...
./openacc-vv/atomic_update_expr_minus_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(subset, destination, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8),DIMENSION(length), INTENT(IN) :: subset REAL(8), INTENT(IN) :: destination REAL(8), INTENT(IN) :: init REAL(8),ALLOCATABLE :: passed(:) LOGICAL :...
./SPEChpc/benchspec/HPC/621.miniswp_s/src/3_sweeper/quantities_testing.h
/*---------------------------------------------------------------------------*/ /*! * \file quantities_testing.h * \author Wayne Joubert * \date Wed Jan 15 16:06:28 EST 2014 * \brief Declarations for physical quantities, testing case. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LL...
./openacc-vv/atomic_update_x_or_expr_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data LOGICAL,DIMENSION(LOOPCOUNT):: to...
./openacc-vv/serial_loop_reduction_multiply_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-3.2 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[10 * n]; real_t * b = new real_t[10 * n]; real_t * c = new real_t[10 * n]; real_t * totals = new real_t[10]; real_t temp; for (in...
./SPECaccel/benchspec/ACCEL/503.postencil/src/main.c
/*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *******************************************************************...
./SPECaccel/tools/src/perl-5.12.3/perl.h
/* perl.h * * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 * 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * ...
./openacc-vv/acc_set_default_async.F90
#ifndef T1 !T1:runtime,async,construct-independent,internal-control-values,set,V:2.5-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c, a_host, b_host !Data INTEGER :: err...
./SPEChpc/tools/src/perl-5.24.0/regen/feature.pl
#!/usr/bin/perl # # Regenerate (overwriting only if changed): # # lib/feature.pm # feature.h # # from information hardcoded into this script and from two #defines # in perl.h. # # This script is normally invoked from regen.pl. BEGIN { require 'regen/regen_lib.pl'; push @INC, './lib'; } use strict ; ##...
./openacc-npb/LU/LU-HP/rhs.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB LU code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/atomic_update_x_neqv_expr_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data LOGICAL,DIMENSION(LOOPCOUNT):: to...
./SPECaccel/benchspec/ACCEL/357.csp/src/add.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB SP code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/atomic_capture_divided_equals.cpp
#include "acc_testsuite.h" bool is_possible(real_t* a, real_t* b, real_t* c, int length, real_t prev){ if (length == 0){ return true; } real_t *passed_a = new real_t[(length - 1)]; real_t *passed_b = new real_t[(length - 1)]; real_t *passed_c = new real_t[(length - 1)]; for (int x = 0; x...
./SPECaccel/benchspec/ACCEL/550.pmd/src/input1.F
!********************************************************************** ! MD 6.0.7 ! -------------------------------------------------------------- ! Copyright 2009, The Trustees of Indiana University ! Authors: Charles J. Horowitz, Don Berry ! Last modified by: Don Berry, 22-Jan-2009 !...
./openacc-vv/serial_loop_async.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,async,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * b = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * c = (real_t *)malloc(10 * n * sizeof(real_t)); ...
./openacc-vv/serial_loop_reduction_max_loop.F90
#ifndef T1 !T1:serial,private,reduction,combined-constructs,loop,V:2.6-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" REAL(8),DIMENSION(LOOPCOUNT, 10):: a, b, c REAL(8),DIMENSIOn(10):: host_maximums, maximums REAL(8):: temp INTEGER:: errors, x, y errors = 0 SEEDDIM(1) = 1 #...
./openacc-vv/kernels_loop_reduction_add_loop.F90
#ifndef T1 !T1:kernels,private,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(10*LOOPCOUNT):: a, b, c, d !Data REAL(8) :: avg INTEGER :: errors = 0 ...
./SPEChpc/benchspec/HPC/628.pot3d_s/src/hdf5/include/H5Fpublic.h
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
./openacc-vv/parallel_create.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,data,data-region,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * sizeof(real_t)); for (int x = 0; x < n; +...
./openacc-npb/SP/SP/add.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB SP code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/serial_implicit_data_attributes.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,data-region,V:2.0-3.3 int test1(){ int err = 0; srand(SEED); real_t *a = (real_t *) malloc ( n *sizeof(real_t)); real_t temp = 0; real_t sum = 0; for( int x = 0; x < n; ++x){ a[x] = rand()/ (real_t)(RAND_MAX/10); } #pragma acc serial default(none) red...
./openacc-vv/parallel_wait.F90
#ifndef T1 !T1:async,parallel,update,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 # ifdef SEED ...
./openacc-vv/acc_wait_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,async,construct-independent,wait,V:2.0-2.7 int test1(){ int err = 0; real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *c = new real_t[n]; real_t *d = new real_t[n]; real_t *e = new real_t[n]; real_t *f = new real_t[n]; real_t...
./openacc-vv/serial_if.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,if,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * sizeof(real_t)); int accel = 1; int host = 0; for...
./openacc-vv/serial_loop_reduction_bitor_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-3.2 int test1(){ int err = 0; srand(SEED); unsigned int * a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int * b = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int * b_c...
./openacc-npb/SP/SP/txinvr.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB SP code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/kernels_loop_reduction_max_loop.F90
#ifndef T1 !T1:kernels,private,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(10 * LOOPCOUNT):: a, b, c !Data REAL(8),DIMENSION(10):: maximum REAL(8) :: temp...
./SPEChpc/tools/src/perl-5.24.0/cpan/Devel-PPPort/parts/embed.fnc
: BEGIN{die "You meant to run regen/embed.pl"} # Stop early if fed to perl. : : This file is processed by regen/embed.pl and autodoc.pl : : Lines are of the form: : flags|return_type|function_name|arg1|arg2|...|argN : : A line may be continued on another by ending it with a backslash. : Leading and trailing whitespa...
./openacc-vv/atomic_capture_iand_expr_x_assign.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length INTEGER, INTENT(IN) :: init INTEGER,DIMENSION(length), INTENT(IN) :: a INTEGER,DIMENSION(length), INTENT(IN) :: b INTEGER,DIMENSION(length - 1) :: passed_a INTEGER,DIME...
./const_len_dataset.py
import os from datasets import Dataset, DatasetDict from huggingface_hub import HfApi from transformers import AutoTokenizer from torch.utils.data import IterableDataset import torch import random import numpy as np data_dir = "." dataset_name = "chrismun/llm4vv-test-const-len" model_checkpoint = "deepseek-ai/deep...
./openacc-vv/acc_hostptr.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,V:2.0-2.7 int test1(){ int err = 0; real_t *a = (real_t *)malloc(n * sizeof(real_t)); real_t *a_ptr; a_ptr = acc_create(a, n * sizeof(real_t)); if (a != acc_hostptr(acc_deviceptr(a))){ err += 1; } acc_delete(a, n * sizeof(rea...
./openacc-vv/kernels_loop_reduction_or_loop.F90
#ifndef T1 !T1:kernels,private,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators LOGICAL,DIMENSION(10*LOOPCOUNT):: a, a_copy !Data LOGICAL,DIMENSION(10) :: results LOGICAL :: tem...
./PhysiCell_GPU/examples/PhysiCell_test_HDS.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./SPECaccel/benchspec/ACCEL/303.ostencil/src/main.c
/*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *******************************************************************...
./openacc-vv/atomic_divided_equals.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *totals = new real_t[(n/10 + 1)]; real_t *totals_comparison = new real_t[(n/10 + 1)]; for (int x = 0; x < n; ...
./openacc-vv/atomic_expr_multiply_x.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *totals = new real_t[(n/10 + 1)]; real_t *totals_comparison = new real_t[(n/10 + 1)]; for (int x = 0; x < n; ...
./openacc-vv/acc_map_data.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,executable-data,construct-independent,V:2.0-2.7 int test1(){ int err = 0; real_t *a = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); real_t *c = (real_t *)malloc(n * sizeof(real_t)); real_t *d; real_...
./MURaM_main/src/corona_emission_dem_xyz.C
#include <mpi.h> #include "physics.H" #include "grid.H" #include "run.H" #include <cmath> #include <stdlib.h> #include <fstream> #include <stdio.h> #include "io.H" #include "comm_split.H" #include <iostream> using std::cout; using std::endl; using std::max; using std::min; #define OUTER_LOOP(G,i,j,d1,d2) \ for((j)=...
./openacc-vv/serial_loop_reduction_bitxor_general.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); unsigned int * a = (unsigned int *)malloc(n * sizeof(unsigned int)); unsigned int host_b; unsigned int b = 0; for (int x = 0; x < n; ++x){ a[x] = (unsign...
./openacc-vv/init_device_type_num.F90
#ifndef T1 !T1:runtime,construct-independent,internal-control-values,init,nonvalidating,V:2.5-3.2 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: device_num INTEGER :: device_type INTEGER :: errors = 0 device_type = ...
./ppm_one/lmmin/lmmin.c
/* * Library: lmfit (Levenberg-Marquardt least squares fitting) * * File: lmmin.c * * Contents: Levenberg-Marquardt minimization. * * Copyright: MINPACK authors, The University of Chikago (1980-1999) * Joachim Wuttke, Forschungszentrum Juelich GmbH (2004-2013) * * License: see ../COPYING ...
./SPEChpc/bin/scripts.misc/genupdates
#!/usr/bin/env perl # Copyright 2010-2016 Standard Performance Evaluation Corporation # Generate metadata and packages for updates from the last 3 devel versions and # all release versions to the current version. # Overall update metadata includes (of course) version numbers both from and # to, and the filename cont...
./openacc-vv/acc_is_present_with_len.F90
#ifndef T1 !T1:runtime,devonly,construct-independent,present,V:2.0-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a !Data INTEGER,DIMENSION(1):: devtest INTEGER :: erro...
./openacc-vv/kernels_loop_reduction_bitor_general.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int * a = (unsigned int *)malloc(n * sizeof(unsigned int)); real_t false_margin = pow(exp(1), log(.5)/n); unsigned int temp = 1; unsigned int b = 0; ...
./openacc-vv/acc_memcpy_d2d.F90
#ifndef T1 !T1:runtime,data,executable-data,construct-independent,V:3.3 INTEGER FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" REAL(8), DIMENSION(LOOPCOUNT) :: a, b, c INTEGER :: errors = 0 INTEGER :: x, i SEEDDIM(1) = 1 # ifdef...
./openacc-vv/atomic_structured_assign_x_bitxor_expr.cpp
#include "acc_testsuite.h" bool is_possible(int* a, int* b, int length, int prev){ if (length == 0){ return true; } int *passed_a = new int[(length - 1)]; int *passed_b = new int[(length - 1)]; for (int x = 0; x < length; ++x){ if (b[x] == prev){ for (int y = 0; y < x; ++...