file_path
stringlengths
19
84
content
stringlengths
235
1.29M
./openacc-vv/enter_data_create_no_lower_bound.F90
#ifndef T1 !T1:data,executable-data,construct-independent,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c, d, e !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) ...
./openacc-vv/parallel_copyout_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; } #pragma acc data ...
./PhysiCell_GPU/sample_projects/template2D/main-2D.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./openacc-vv/serial_loop_reduction_multiply_general.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; int multiplicitive_n = 128; srand(SEED); real_t * a = new real_t[multiplicitive_n]; real_t * b = new real_t[multiplicitive_n]; real_t multiplied_total = 1.0; for (int x ...
./openacc-vv/atomic_structured_assign_x_divided_expr.c
#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 = (real_t *)malloc((length - 1) * sizeof(real_t)); real_t *passed_b = (real_t *)malloc((length - 1) * sizeof(real_t)); real_t *passed_c = (...
./openacc-vv/kernels_loop_reduction_bitand_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); 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 = ...
./SPEChpc/benchspec/HPC/621.miniswp_s/src/1_base/env_openmp_kernels.h
/*---------------------------------------------------------------------------*/ /*! * \file env_openmp_kernels.h * \author Wayne Joubert * \date Wed Jan 15 16:06:28 EST 2014 * \brief Environment settings for openmp, code for comp. kernel. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle...
./openacc-vv/atomic_expr_bitxor_x.c
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); int *a = (int *)malloc(n * sizeof(int)); int *totals = (int *)malloc((n/10 + 1) * sizeof(int)); int *totals_comparison = (int *)malloc((n/10 + 1) * sizeof(int)); for (int x ...
./openacc-vv/atomic_expr_rshift_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/serial_loop_reduction_min_vector_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 * min = new real_t[10]; real_t temp = 100; real_t temp_min; for (int x = 0; x < ...
./openacc-npb/LU/LU-HP/lu.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/acc_is_present.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,data,executable-data,devonly,V:2.0-2.7 int test1(){ int err = 0; real_t *a = new real_t[n]; int *devtest = (int *)malloc(sizeof(int)); devtest[0] = 1; #pragma acc enter data copyin(devtest[0:1]) #pragma acc parallel present(devtest[0:1]) { ...
./openacc-vv/atomic_structured_x_lshift_expr_assign.c
#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_update_x_lshift_expr.cpp
#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; for (...
./SPECaccel/benchspec/ACCEL/551.ppalm/src/poisfft.F90
MODULE poisfft_mod !--------------------------------------------------------------------------------! ! 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...
./openacc-vv/data_present_no_lower_bound.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:data,data-region,construct-independent,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]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); ...
./openacc-vv/serial_loop_reduction_max_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 * maximum = new real_t[10]; real_t temp = 0; fo...
./PhysiCell_GPU/examples/PhysiCell_test_cell_cycle.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
./SPECaccel/benchspec/ACCEL/554.pcg/src/cg.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB CG code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
./openacc-vv/atomic_x_plus_expr.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[10]; real_t *totals_comparison = new real_t[10]; for (int x = 0; x < n; ++x){ a[...
./openacc-vv/kernels_loop_vector_blocking.F90
#ifndef T1 !T1:kernels,loop,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 REAL(8) :: multiplier INTEGER :: errors = 0 multiplier = 1 SEEDDIM(1) = 1 # ...
./openacc-vv/atomic_capture_assign_expr_neqv_x.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,DIME...
./openacc-vv/atomic_structured_assign_postdecrement.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]; bool found = fa...
./openacc-vv/serial_loop_vector_blocking.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,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]; 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(...
./openacc-vv/atomic_update_iand_x_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 INTEGER,DIMENSION(LOOPCOUNT):: a !Data REAL(8),DIMENSION(LOOPCOUNT, 8):: randoms INTEGER,DIMENSION(LOOPCOUNT/10 + 1):: ...
./openacc-vv/serial_loop_reduction_bitand_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 b_host; ...
./SPECaccel/benchspec/ACCEL/551.ppalm/src/cpu_statistics.F90
SUBROUTINE cpu_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 Software Foundation, ! either versi...
./openacc-vv/atomic_max_x_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):: a !Data REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison INTEGER :: error...
./openacc-vv/kernels_loop_independent.c
#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 = (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 /...
./SPECaccel/benchspec/ACCEL/557.pcsp/src/sp.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_structured_assign_postdecrement.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/kernels_loop_reduction_bitand_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 !Iterators INTEGER,DIMENSION(10*LOOPCOUNT):: a, b, b_copy !Data REAL(8),DIMENSION(10*LOOPCOUNT):: randoms2 ...
./openacc-vv/acc_memcpy_from_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)); real_t *hostdata = (...
./openacc-vv/shutdown_device_type_num.c
#include "acc_testsuite.h" #ifndef T1 //T1:shutdown,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 shutdown device_type(host) device_num(device_num) return err; } #endif #ifndef T2 //T2:shutdown,runtime,synt...
./SPEChpc/benchspec/HPC/605.lbm_s/src/propagate_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_min_expr_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/atomic_update_postdecrement.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 *distribution = new int[10]; int *distribution_comparison = new int[10]; for (int x = 0; x < n; ++x){ a[...
./openacc-vv/serial_loop_reduction_multiply_general.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-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)); r...
./openacc-vv/parallel_independent_atomic_capture.c
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.7-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); ...
./SPECaccel/benchspec/ACCEL/504.polbm/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> /*############################################################################*/ #define DFL1 (1.0/ 3.0) ...
./openacc-vv/atomic_expr_plus_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):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison INTEGER :: errors =...
./SPEChpc/benchspec/HPC/628.pot3d_s/src/hdf5/H5HFhdr.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
./openacc-vv/acc_memcpy_from_device.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 *hostdata = new real_t[3 * n]; real_t *devdata; for (int x = 0; x < n; ++...
./openacc-vv/data_copy_no_lower_bound.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,data-region,construct-independent,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 ...
./openacc-vv/serial_wait.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,executable-data,async,wait,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]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = a[x]; } #pra...
./openacc-vv/atomic_update_expr_bitxor_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/tools/src/make-4.2.1/po/lt.po
# translation of make-3.81 to Lithuanian # Copyright (C) 2008 Free Software Foundation, Inc. # This file is distributed under the same license as the make package. # # Gintautas Miliauskas <gintas@akl.lt>, 2008. msgid "" msgstr "" "Project-Id-Version: make-3.81\n" "Report-Msgid-Bugs-To: bug-make@gnu.org\n" "POT-Creatio...
./openacc-vv/atomic_structured_assign_minus_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...
./PhysiCell_GPU/BioFVM/BioFVM_microenvironment.h
/* ############################################################################# # If you use BioFVM in your project, please cite BioFVM and the version # # number, such as below: # # # # We ...
./openacc-vv/atomic_capture_assign_max_x_expr_list.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),DIMENSION(length - 1) :: passed_a REAL(8),DIMENSION(le...
./PhysiCell_GPU/BioFVM/BioFVM_microenvironment.cpp
/* ############################################################################# # If you use BioFVM in your project, please cite BioFVM and the version # # number, such as below: # # # # We ...
./openacc-vv/parallel_loop_vector.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,vector,combined-constructs,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 ...
./openacc-vv/atomic_ior_expr_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 INTEGER,DIMENSION(LOOPCOUNT):: a !Data REAL(8),DIMENSION(LOOPCOUNT, 8):: randoms INTEGER,DIMENSION(LOOPCOUNT/10 + 1):: ...
./openacc-vv/kernels_loop_reduction_multiply_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):: totals REAL(8) :: temp ...
./openacc-vv/declare_function_scope_copyin.c
#include "acc_testsuite.h" void function_test(real_t *a, real_t *b, real_t *c){ #pragma acc declare copyin(a[0:n], b[0:n]) #pragma acc parallel present(c[0:n]) { #pragma acc loop for (int x = 0; x < n; ++x){ c[x] = c[x] + a[x] + b[x]; } } } void function_test_dev_onl...
./openacc-vv/set_default_async.c
#include "acc_testsuite.h" #ifndef T1 //T1:async,set,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 = (real_t *)malloc(n * s...
./SPECaccel/benchspec/ACCEL/351.palm/src/init_3d_model.F90
#if defined( __ibmy_special ) @PROCESS NOOPTimize #endif SUBROUTINE init_3d_model !--------------------------------------------------------------------------------! ! 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 p...
./openacc-vv/kernels_loop.F90
#ifndef T1 !T1:kernels,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9 !Iterators REAL(8),DIMENSION(1024):: a, b !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 ...
./openacc-vv/atomic_structured_postincrement_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]; int *c = new int[n]; int *distribution = new int[10]; int *distribution_comparison = new int[10]; bool found = fa...
./SPECaccel/benchspec/ACCEL/551.ppalm/src/netcdf.F90
#if defined( __ibmy_special ) @PROCESS NOOPTimize #endif SUBROUTINE define_netcdf_header( callmode, extend, av ) !--------------------------------------------------------------------------------! ! This file is part of PALM. ! ! PALM is free software: you can redistribute it and/or modify it under the terms ! of the ...
./openacc-vv/parallel_loop_gang.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,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]; real_t * c = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); ...
./openacc-vv/atomic_structured_assign_x_bitand_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/serial_loop_reduction_min_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):: minimums, host_minimums REAL(8):: temp INTEGER:: errors, x, y errors = 0 SEEDDIM(1) = 1 ...
./openacc-vv/acc_memcpy_d2d.cpp
#include "acc_testsuite.h" #include <stdlib.h> #include <math.h> #ifndef T1 //T1:runtime,data,executable-data,construct-independent,V:3.3 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]; acc_set_device_num(0, acc_device_nvidia); #pragma...
./openacc-vv/atomic_structured_assign_minus_equals.cpp
#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 = new real_t[(length - 1)]; real_t *passed_b = new real_t[(length - 1)]; for (int x = 0; x < length; ++x){ if (fabs(b[x] - prev) < PRECISION){...
./openacc-vv/routine_bind_nonprototype_function_nonstring_function.cpp
#include "acc_testsuite.h" //test 1 host function #pragma acc routine vector bind(device_array_array) real_t 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 1...
./openacc-vv/parallel_wait_queue.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,wait,async,V:2.0-3.2 int test1(){ int err = 0; srand(time(NULL)); 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]; ...
./SPEChpc/config/Example_amd_aomp.cfg
###################################################################### # Example configuration file for AOMP LLVM/Clang compiler. # # Defines: "model" => "mpi", "omp", "omp_target", omp_host_target" # default "mpi" # "label" => ext base label, # default "clang" # "gputype" =>...
./openacc-vv/parallel_loop_reduction_bitxor_general.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,reduction,combined-constructs,loop,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int * a = (unsigned int *)malloc(n * sizeof(unsigned int)); unsigned int b = 0; unsigned int host_b = 0; for (int x = 0; x < n; ++x){ a[x] = (...
./openacc-vv/serial_loop_auto.cpp
#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 = new real_t[n]; real_t * a_copy = new real_t[n]; real_t * b = new real_t[n]; real_t rolling_total = 0.0; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAN...
./openacc-vv/enter_data_if.F90
#ifndef T1 !T1:data,executable-data,devonly,construct-independent,if,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, a_copy, b, b_copy, c !Data INTEGER :: errors = 0 INTEGER,DIMENS...
./openacc-vv/atomic_update_iand_expr_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 INTEGER,DIMENSION(LOOPCOUNT):: a !Data REAL(8),DIMENSION(LOOPCOUNT, 8):: randoms INTEGER,DIMENSION(LOOPCOUNT/10 + 1):: ...
./openacc-vv/parallel_loop_reduction_multiply_general.cpp
#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 = new real_t[multiplicitive_n]; real_t * b = new real_t[multiplicitive_n]; real_t multiplied_total = 1.0; for (int ...
./openacc-vv/atomic_structured_assign_preincrement.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]; bool found = fa...
./openacc-vv/kernels_loop_reduction_or_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); 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/host_data.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,data-region,host-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)); int * high = (int *)malloc(n * sizeof(int)); int high_current_index = 0; size_t * a_points = (size_t *)m...
./openacc-vv/atomic_expr_times_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):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison INTEGER :: errors =...
./openacc-vv/parallel_loop_reduction_bitxor_vector_loop.F90
#ifndef T1 !T1:parallel,private,reduction,combined-constructs,loop,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators INTEGER,DIMENSION(10*LOOPCOUNT):: a !Data REAL(8),DIMENSION(10*LOOPCOUNT):: randoms INTEGER,DIME...
./openacc-vv/atomic_capture_expr_rshift_x.cpp
#include "acc_testsuite.h" bool is_possible(unsigned int* a, unsigned int* b, int length, int prev){ if (length == 0){ return true; } unsigned int *passed_a = (unsigned int *)malloc((length - 1) * sizeof(unsigned int)); unsigned int *passed_b = (unsigned int *)malloc((length - 1) * sizeof(unsign...
./openacc-vv/acc_get_property.c
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,devonly,syntactic,V:2.6-2.7 int test1(){ int err = 0; if (acc_get_device_type() != acc_device_none){ const char* returned_string1; const char* returned_string2; const char* returned_string3; int returned_int; returned_in...
./openacc-vv/acc_create.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/kernels_loop_reduction_bitxor_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 INTEGER,DIMENSION(10*LOOPCOUNT):: a, b, b_copy !Data REAL(8),DIMENSION(10*LOOPCOUNT):: randoms, randoms2 ...
./openacc-vv/atomic_expr_minus_x.c
#include "acc_testsuite.h" bool possible_result(real_t * remaining_combinations, int length, real_t current_value, real_t test_value){ if (length == 0){ if (fabs(current_value - test_value) > PRECISION){ return true; } else { return false; } } real_t *...
./openacc-vv/atomic_update_min_expr_list_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):: a, b !Data REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison INTEGER :: er...
./SPECaccel/Docs/result-fields.html
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Author" content="$Id: result-fields.html 1577 2017-02-07 16:36:33Z Brian...
./openacc-vv/kernels_loop_reduction_max_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); real_t * a = new real_t[n]; real_t * b = new real_t[n]; real_t max = 0.0; int found = 0; for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_...
./openacc-vv/atomic_update_x_eqv_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):: randoms LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data LOGICAL,DIMENSION(LOOPCOUNT):: to...
./openacc-vv/atomic_update_min_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_update_max_x_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):: a !Data REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison INTEGER :: error...
./openacc-vv/parallel_copyout.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)); for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); ...
./SPEChpc/bin/scripts.misc/maketars
#!/usr/bin/perl # # maketars - make a release tarball/ISO/whatever # No support is provided for this script. # # Copyright 1999-2017 Standard Performance Evaluation Corporation # # $Id$ # BEGIN { if ($ENV{'SPEC'} eq '' || ! -d $ENV{'SPEC'}) { die "The SPEC environment variable is not set.\nStopped"; } ...
./openacc-vv/parallel_private.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,private,V:2.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(n * sizeof(real_t)); real_t * d = (real_t *)m...
./openacc-vv/host_data.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:data,data-region,host-data,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; int * high = new int[n]; int high_current_index = 0; size_t * a_points = (size_t *)malloc(n * sizeof(void *)); for (int x ...
./openacc-vv/parallel_loop_reduction_add_vector_loop.F90
#ifndef T1 !T1:parallel,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 !Data REAL(8),DIMENSION(10) :: c REAL(8) :: temp ...
./openacc-vv/serial.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t* a = new real_t[1024]; real_t* b = new real_t[1024]; real_t* c = new real_t[1024]; for(int x = 0; x < 1024; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 10); b[x] = rand() / (r...
./SPECaccel/benchspec/ACCEL/570.pbt/src/bt.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/exit_data_copyout_no_lower_bound.c
#include "acc_testsuite.h" #ifndef T1 //T1:data,executable-data,syntactic,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/routine_bind_nonprototype_lambda_nonstring_function.cpp
#include "acc_testsuite.h" //test 1 host lambda #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; }; //tes...
./openacc-vv/kernels_if.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,if,V:1.0-3.2 int test1(){ int err = 0; srand(SEED); int data_on_device = 0; 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...
./PhysiCell_GPU/sample_projects/heterogeneity/main-heterogeneity.cpp
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...