file_path
stringlengths
19
84
content
stringlengths
235
1.29M
./openacc-vv/serial_loop_reduction_and_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); char * a = new char[10 * n]; char * a_copy = new char[10 * n]; char * has_false = new char[10]; real_t false_margin = pow(exp(1), log(.5)/n); char temp = 1; ...
./openacc-vv/atomic_capture_assign_ior_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 ::...
./PhysiCell_GPU/config/PhysiCell_settings.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- /* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./openacc-vv/serial_loop_reduction_or_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); char * a = new char[10 * n]; char * a_copy = new char[10 * n]; char * results = new char[10]; char temp = 0; real_t false_margin = pow(exp(1), log(.5)/n); ...
./openacc-vv/acc_on_device.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,construct-independent,V:1.0-2.7 int test1(){ int err = 0; acc_device_t device_type = acc_get_device_type(); if (device_type != acc_device_none){ #pragma acc data copy(err) { #pragma acc parallel { if ...
./openacc-vv/acc_async_test.c
#include "acc_testsuite.h" #ifndef T1 //T1:async,runtime,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_t *)malloc(n * si...
./SPECaccel/benchspec/ACCEL/570.pbt/src/add.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB BT code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/serial_implicit_data_attributes.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,V:1.0-2.7 //copy cluase test with serial default(none) and reduction with scalar variables int test1(){ int err = 0; srand(SEED); int temp = rand()/(real_t)(RAND_MAX / 10); #pragma acc serial default(none) reduction(+:temp) for(int x = 0; x < n; ++x){ temp += te...
./openacc-vv/atomic_structured_x_bitxor_expr_assign.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 ^ a[x])){ for (int y = 0; ...
./SPECaccel/benchspec/ACCEL/304.olbm/src/lbm.c
/* $Id: lbm.c,v 1.6 2004/05/03 08:23:51 pohlt Exp $ */ /*############################################################################*/ #include "lbm.h" #include <math.h> #include <stdlib.h> #include <stdio.h> #if !defined(SPEC) #ifdef _OPENMP #include <omp.h> #endif #endif /*######################################...
./SPECaccel/benchspec/ACCEL/351.palm/src/flow_statistics.F90
#if defined( SPEC_HOST_FLOW ) SUBROUTINE flow_statistics !--------------------------------------------------------------------------------! ! 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 Soft...
./openacc-vv/parallel_loop_worker_blocking.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,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)); real_t multiplyer = 1; for (int ...
./PhysiCell_GPU/sample_projects/cancer_biorobots/custom_modules/cancer_biorobots.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./PhysiCell_GPU/examples/PhysiCell_test_DCIS.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./SPEChpc/benchspec/HPC/628.pot3d_s/src/hdf5/H5Pfapl.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
./openacc-vv/serial_loop_reduction_bitand_vector_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,DIMENSION(LOOPCOUNT, 10):: a INTEGER,DIMENSION(10):: b, b_host REAL(8),DIMENSION(LOOPCOUNT, 10, 16):: randoms REAL(8):: false_margin INTEGER:: x, y, temp, ...
./SPECaccel/benchspec/ACCEL/351.palm/src/tridia_solver.F90
MODULE tridia_solver !--------------------------------------------------------------------------------! ! 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 3 ...
./openacc-npb/BT/BT/y_solve.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB BT code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./SPECaccel/benchspec/ACCEL/370.bt/src/z_solve.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB BT code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/acc_copyin_async.cpp
#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 = new real_t[n]; real_t *b = new real_t[n]; real_t *c = new real_t[n]; real_t *a_host = new real_t[n]; real_t *b_host = new real_t[n]; for (int x...
./openacc-vv/atomic_expr_bitor_x.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); int *a = new int[n]; int *totals = new int[(n/10 + 1)]; int *totals_comparison = new int[(n/10 + 1)]; for (int x = 0; x < n; ++x){ for (int y = 0; y < 8; ++y){ ...
./SPEChpc/benchspec/HPC/621.miniswp_s/src/3_sweeper/sweeper_kba_kernels.h
/*---------------------------------------------------------------------------*/ /*! * \file sweeper_kba_kernels.h * \author Wayne Joubert * \date Tue Jan 28 16:37:41 EST 2014 * \brief sweeper_kba, code for comp. kernel. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC. */ /*------...
./openacc-vv/acc_delete_with_len.F90
#ifndef T1 !T1:runtime,data,executable-data,construct-independent,V:2.0-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c !Data INTEGER :: errors errors = 0 ...
./openacc-vv/parallel_copy.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, a_host !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 # ifdef SEED SEEDDIM...
./SPEChpc/tools/src/perl-5.24.0/cpan/Unicode-Normalize/t/func.t
BEGIN { unless ('A' eq pack('U', 0x41)) { print "1..0 # Unicode::Normalize cannot pack a Unicode code point\n"; exit 0; } unless (0x41 == unpack('U', 'A')) { print "1..0 # Unicode::Normalize cannot get a Unicode code point\n"; exit 0; } } BEGIN { if ($ENV{PERL_CORE}) { chdir('t') if -d...
./openacc-vv/parallel_copyout.F90
#ifndef T1 !T1:parallel,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 INTEGER,DIMENSION(1):: hasDevice hasDevice(1) = 1 !$acc enter ...
./openacc-vv/shutdown_device_type_num_nvidia.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:shutdown,runtime,syntactic,V:2.5-2.7 int test1(){ int err = 0; int device_num; device_num = acc_get_device_num(acc_get_device_type()); #pragma acc shutdown device_type(nvidia) device_num(device_num) return err; } #endif int main(){ int failcode = 0; ...
./openacc-vv/data_create_zero.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-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] = 1; } #pragma ac...
./openacc-vv/serial_create_zero.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,data-region,V:3.0-3.2 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)); for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); ...
./ppm_one/common/common/supply.cpp
#include <iostream> #include <cstdlib> #include <fstream> #include <string> #include <vector> #include <math.h> #include <time.h> #include <assert.h> #include <cstring> using namespace std; #include "supply.h" using namespace ldw_math; void CCommandline::pharse(int argc, char** argv) { int i,j; for(i=1;i<argc;...
./openacc-vv/atomic_expr_plus_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):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison INTEGER :: errors =...
./PhysiCell_GPU/sample_projects/cancer_immune/config/PhysiCell_settings.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- /* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./openacc-vv/atomic_structured_assign_assign.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 *c = new real_t[n]; real_t *b_copy = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = rand() / (rea...
./openacc-vv/kernels_loop_reduction_or_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); char * a = new char[n]; real_t false_margin = pow(exp(1), log(.5)/n); char result = 0; char found = 0; for (int x = 0; x < n; ++x){ if(a[x] = rand()...
./openacc-vv/parallel_switch.F90
#ifndef T1 !T1:parallel,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators INTEGER,DIMENSION(LOOPCOUNT):: a REAL(8),DIMENSION(LOOPCOUNT):: b, c, randoms!Data INTEGER :: errors = 0 !Initilization SEEDD...
./openacc-vv/atomic_structured_rshift_equals_assign.cpp
#include "acc_testsuite.h" bool is_possible(unsigned int a, unsigned int* b, int length, unsigned int prev){ if (length == 0){ return true; } unsigned int passed_a = 0; unsigned int *passed_b = (unsigned int *)malloc((length - 1) * sizeof(unsigned int)); for (int x = 0; x < length; ++x){ ...
./openacc-vv/atomic_structured_preincrement_assign.c
#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 = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); int *c = (int *)malloc(n * sizeof(int)); int *distribution = (int *)malloc(...
./openacc-vv/acc_wait_all_async.F90
#ifndef T1 !T1:runtime,async,construct-independent,V:2.0-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c, d, e, f, g, h, i, j, k !Data REAL(8),DIMENSION(LOOPCOUNT):: a_h...
./SPECaccel/tools/src/perl-5.12.3/hints/aix_4.sh
# hints/aix.sh # # Split off from aix.sh on 04 Feb 2004 by H.Merijn Brand # # AIX 4.1 hints thanks to Christopher Chan-Nui <channui@austin.ibm.com>. # AIX 4.1 pthreading by Christopher Chan-Nui <channui@austin.ibm.com> and # Jarkko Hietaniemi <jhi@iki.fi>. # AIX 4.3.x LP64 build by Steven Hirsch <hirschs@btv.ibm.com>...
./openacc-vv/kernels_present.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,data,structured-data,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]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = 0.0; } #pragma acc e...
./openacc-vv/kernels_wait.F90
#ifndef T1 !T1:async,kernels,V:2.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 SEED...
./SPECaccel/tools/src/ntzsh/Src/zle_tricky.c
/* * $Id: zle_tricky.c,v 2.82 1996/10/24 10:02:00 hzoli Exp $ * * zle_tricky.c - expansion and completion * * This file is part of zsh, the Z shell. * * Copyright (c) 1992-1996 Paul Falstad * All rights reserved. * * Permission is hereby granted, without written agreement and without * license or royalty fee...
./openacc-vv/acc_update_device.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)); int *devtest = (int ...
./openacc-vv/kernels_scalar_default_copy.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,data,data-region,default-mapping,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 sum = 0.0; for (int x = 0; x < n; ++x){ a[x] ...
./openacc-vv/acc_wait_all_async.c
#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 = (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_t *)malloc(n...
./SPECaccel/benchspec/ACCEL/351.palm/src/advec_ws.F90
MODULE advec_ws !--------------------------------------------------------------------------------! ! 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 3 of th...
./openacc-vv/parallel_deviceptr.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,runtime,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; for (int x = 0; x < n; ++x){ a[x] = 0; } #pragma acc enter data copyin(a[0:n]) b = (real_t *) acc_devicept...
./openacc-vv/atomic_update_x_minus_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 =...
./openacc-vv/serial_copyout.cpp
#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 = new real_t[n]; real_t * b = new real_t[n]; int* hasDevice = (int *) malloc(sizeof(int)); hasDevice[0] = 1; #pragma acc enter data copyin(hasDevice[0:1]) #prag...
./openacc-vv/atomic_update_bitand_equals.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); int *a = new int[n]; int *totals = new int[(n/10 + 1)]; int *totals_comparison = new int[(n/10 + 1)]; for (int x = 0; x < n; ++x){ for (int y = 0; y < 8; ++y){ ...
./openacc-vv/atomic_structured_assign_x_bitor_expr.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] == prev...
./openacc-vv/parallel_loop_block.F90
#ifndef T1 !T1:parallel,loop,V:3.1-3.3 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c !Data INTEGER :: errors = 0 !Initilization a = 0 SEEDDIM(1) = 1 # ifdef SEE...
./SPEChpc/benchspec/HPC/618.tealeaf_s/src/2d/c_kernels/kernel_initialise.c
#include "../settings.h" #include "../shared.h" #include <stdlib.h> #ifdef SPEC_OPENACC #include "openacc.h" #endif // Allocates, and zeroes an individual buffer void allocate_buffer(double** a, int x, int y) { *a = (double*)malloc(sizeof(double)*x*y); if(*a == NULL) { die(__LINE__, __FILE__, ...
./openacc-vv/serial_loop_gang.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,combined-constructs,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)); for (int x = 0; x ...
./SPEChpc/benchspec/HPC/628.pot3d_s/src/hdf5/H5Plapl.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
./openacc-vv/atomic_capture_x_plus_expr_assign.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8), INTENT(IN) :: init REAL(8),DIMENSION(length), INTENT(IN) :: a REAL(8),DIMENSION(length), INTENT(IN) :: b REAL(8),DIMENSION(length - 1) :: passed_a REAL(8),DIMENSION(length - 1) :: passed_b REAL(8) ::...
./openacc-vv/atomic_max_x_expr_list_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):: a, b !Data REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison INTEGER :: er...
./openacc-vv/atomic_expr_plus_x.c
#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 = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); real_t *totals = (real_t *)malloc(10 * sizeof(real_t)); real_t *totals_comp...
./openacc-vv/atomic_structured_assign_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] == prev){ for (int y = 0; y < x; ++...
./openacc-vv/atomic_capture_assign_max_expr_list_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, c, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8), INTENT(IN) :: init REAL(8),DIMENSION(length), INTENT(IN) :: a REAL(8),DIMENSION(length), INTENT(IN) :: b REAL(8),DIMENSION(length), INTENT(IN) :: c REAL(8),...
./openacc-vv/acc_init.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,init,syntactic,V:2.5-2.7 int test1(){ int err = 0; if (acc_get_device_type() != acc_device_none){ acc_init(acc_get_device_type()); } return err; } #endif int main(){ int failcode = 0; int failed; #ifndef T1 failed = 0; for (in...
./openacc-vv/routine_nohost.cpp
#include "acc_testsuite.h" #pragma acc routine worker nohost real_t function(real_t * a, long long n){ real_t returned = 0; #pragma acc loop worker reduction(+:returned) for (int x = 0; x < n; ++x){ returned += a[x]; } return returned; } #ifndef T1 //T1:routine,construct-independent,V:2.0-2...
./openacc-vv/init_device_type_nvidia.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:init,runtime,V:2.5-3.2 int test1(){ int err = 0; srand(SEED); #pragma acc init device_type(nvidia) return err; } #endif int main(){ int failcode = 0; int failed; #ifndef T1 failed = 0; for (int x = 0; x < NUM_TEST_CALLS; ++x){ failed ...
./openacc-vv/kernels_loop_reduction_multiply_general.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,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)); ...
./openacc-vv/serial_loop_reduction_add_general.F90
#ifndef T1 !T1:serial,reduction,combined-constructs,loop,V:2.6-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER:: errors REAL(8),DIMENSION(LOOPCOUNT):: a, b REAL(8):: total INTEGER:: x errors = 0 SEEDDIM(1) = 1 # ifdef SEED SEEDDIM(1) = SEED # endif CALL RANDOM_SE...
./openacc-vv/exit_data_finalize.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,reference-counting,construct-independent,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 * sizeof(rea...
./openacc-vv/atomic_capture_x_or_expr_assign.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length LOGICAL, INTENT(IN) :: init LOGICAL,DIMENSION(length), INTENT(IN) :: a LOGICAL,DIMENSION(length), INTENT(IN) :: b LOGICAL,DIMENSION(length - 1) :: passed_a LOGICAL,DIMENSION(length - 1) :: passed_b LOGICAL ::...
./openacc-vv/parallel_loop_vector_blocking.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,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)); real_t multiplyer = 1; for (int x = 0; x < n; ...
./openacc-vv/set_device_type_num_nvidia.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:set,runtime,syntactic,V:2.5-3.2 int test1(){ int err = 0; int device_num; device_num = acc_get_device_num(acc_get_device_type()); #pragma acc set device_type(nvidia) device_num(device_num) return err; } #endif int main(){ int fai...
./SPEChpc/tools/src/perl-5.24.0/lib/unicore/PropertyAliases.txt
# PropertyAliases-8.0.0.txt # Date: 2015-02-14, 10:26:09 GMT [MD] # # Unicode Character Database # Copyright (c) 1991-2015 Unicode, Inc. # For terms of use, see http://www.unicode.org/terms_of_use.html # For documentation, see http://www.unicode.org/reports/tr44/ # # This file contains aliases for properties used in th...
./openacc-vv/acc_is_present.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/data_with_changing_subscript.F90
#ifndef T1 !T1:data,data_region,construct-independent,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, indexer !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c !Data INTEGER :: errors = 0 indexer = LOOPCOUNT !Initil...
./openacc-vv/serial_deviceptr.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 * b; for (int x = 0; x < n; ++x){ a[x] = 0; } #pragma acc enter data copyin(a[0:n]) b = (real_t *) acc_d...
./openacc-vv/atomic_capture_expr_times_x_assign.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8), INTENT(IN) :: init REAL(8),DIMENSION(length), INTENT(IN) :: a REAL(8),DIMENSION(length), INTENT(IN) :: b REAL(8),DIMENSION(length - 1) :: passed_a REAL(8),DIME...
./openacc-vv/routine_bind_prototype_lambda_string_lambda.cpp
#include "acc_testsuite.h" //test 1 host lambda 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; }; //test 2 host lambda auto host_object_array = [](data_cont...
./openacc-vv/atomic_structured_assign_postincrement.c
#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 = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); int *c = (int *)malloc(n * sizeof(int)); int *distribution = (int *)malloc(...
./openacc-vv/atomic_capture_predecrement.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]; int *c = new int[n]; int *distribution = new int[10]; int *distribution_comparison = new int[10]; for (int x = 0...
./openacc-vv/data_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:async,data,V:3.2-3.3 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); b[x] = rand() / (real_...
./openacc-vv/serial_loop_reduction_max_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/acc_copyout_finalize_async.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,executable-data,async,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 *...
./openacc-vv/serial_loop_auto.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,auto,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)); real_t rolling_total = 0.0; ...
./epcc-openacc-benchmarks/common.c
/* Copyright (c) 2013 The University of Edinburgh. */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ /* You may obtain a copy of the License at */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* Unless required by a...
./SPEChpc/benchspec/HPC/605.lbm_s/src/collide_kernel.h
/***************************************************************************** * * Copyright (c) 2018, University of Ferrara, University of Rome and INFN. All rights reserved. * * * Authors listed in alphabetic order: * ---------------------------------- * Luca Biferale (University of Rome "Tor Vergata" and INFN) * ...
./openacc-vv/atomic_capture_assign_min_expr_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8), INTENT(IN) :: init REAL(8),DIMENSION(length), INTENT(IN) :: a REAL(8),DIMENSION(length), INTENT(IN) :: b REAL(8),DIMENSION(length - 1) :: passed_a REAL(8),DIME...
./openacc-vv/kernels_loop_independent.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,combined-constructs,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]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = rand() / (real_t)(RAND_MA...
./openacc-vv/parallel_default_present.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,default,data,data-region,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = 0.0; } #pragma acc enter data copyin(a[0:n]) #pragma acc parallel default(present) { ...
./openacc-vv/atomic_update_expr_lshift_x.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(3 * n * sizeof(int)); unsigned int *b = (unsigned int *)malloc(n * sizeof(int)); int orders[18] = {1, 2, 0, 1, 0, 2, 2, 1, 0, 2, 0, 1, 0, ...
./openacc-vv/parallel_loop_reduction_and_general.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); char * a = new char[n]; real_t false_margin = pow(exp(1), log(.5)/n); char result = 1; char found = 0; for (int x = 0; x < n; ++x){ if(rand() / (r...
./openacc-vv/atomic_rshift_equals.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/parallel_loop_reduction_bitand_general.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); n = 10; 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 i...
./openacc-vv/declare_device_resident.cpp
#include "acc_testsuite.h" #define DECLARE_TEST #define DECLARE_DEVICE_RESIDENT #include "acc_testsuite_declare.h" #pragma acc declare device_resident(fixed_size_array) #pragma acc declare device_resident(scalar) #pragma acc declare device_resident(datapointer) int mult_device_resident = 5; #ifndef T1 //T1:declare,co...
./openacc-vv/enter_exit_data_if.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,construct-independent,if,reference-counting,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]; int dev = 1; int host = 0; for (int x = 0; x <...
./openacc-vv/serial_loop_reduction_and_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):: false_margin REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a, a_copy LOGICAL,DIMENSIOn(10):: has_fal...
./openacc-vv/atomic_expr_neqv_x.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/atomic_x_plus_expr.c
#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 = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); real_t *totals = (real_t *)malloc(10 * sizeof(real_t)); real_t *totals_comp...
./openacc-vv/atomic_structured_assign_plus_equals.c
#include "acc_testsuite.h" bool is_possible(real_t* a, real_t* b, int length, real_t prev){ if (length == 0){ return true; } real_t *passed_a = (real_t *)malloc((length - 1) * sizeof(real_t)); real_t *passed_b = (real_t *)malloc((length - 1) * sizeof(real_t)); for (int x = 0; x < length; ++x...
./openacc-vv/serial_loop_reduction_min_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 * minimum = new real_t[10]; real_t temp = 0; fo...
./openacc-vv/serial_loop_reduction_bitand_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); unsigned int* a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int* b = (unsigned int *)malloc(10 * sizeof(unsigned int)); unsigned int b_host; ...
./openacc-vv/acc_copyout_with_len.F90
#ifndef T1 !T1:runtime,data,executable-data,construct-independent,V:2.0-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c !Data INTEGER :: errors = 0 !Initilizati...
./openacc-vv/serial_loop_reduction_bitxor_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,DIMENSION(LOOPCOUNT, 10):: a, b, host_b INTEGER,DIMENSION(10):: c, host_c REAL(8),DIMENSION(LOOPCOUNT, 10, 2):: randoms INTEGER:: errors, x, y, temp e...