file_path stringlengths 19 84 | content stringlengths 235 1.29M |
|---|---|
./openacc-vv/init_device_num.F90 | #ifndef T1
!T1:runtime,construct-independent,internal-control-values,init,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 = a... |
./openacc-vv/serial_reduction.F90 | #ifndef T1
!T1:serial,reduction,V:2.6-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
REAL(8),DIMENSION(LOOPCOUNT):: a
REAL(8):: reduction
INTEGER:: errors, x
errors = 0
SEEDDIM(1) = 1
# ifdef SEED
SEEDDIM(1) = SEED
# endif
CALL RANDOM_SEED(PUT=SEEDDIM)
CALL RANDOM_NUM... |
./openacc-vv/routine_bind_prototype_function_string_function.cpp | #include "acc_testsuite.h"
//test 1 host function
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 2 host function
real_t host_object_array(data_contain... |
./openacc-vv/parallel_loop_reduction_add_loop_type_check_pt1.cpp | #include "acc_testsuite.h"
#ifndef T1:private,reduction,combined-constructs,loop,V:1.0-2.7
int test1(){
int err = 0;
srand(SEED);
char * a = new char[10 * n];
char * b = new char[10 * n];
char * c = new char[10 * n];
char * d = new char[10 * n];
char total = 10;
char host_total = 10;
... |
./SPEChpc/benchspec/HPC/628.pot3d_s/src/hdf5/H5Pdapl.c | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... |
./openacc-vv/kernels_loop_reduction_and_vector_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 !Data
LOGICAL,DIMENSION(10):: b
LOGICAL,DIMENSION(10):: has_f... |
./openacc-vv/acc_copyout_finalize.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,data,executable-data,construct-independent,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];
for (int x = 0; x < n; ++x){
a[x] = rand() /... |
./openacc-vv/parallel_loop_reduction_bitor_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);
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;
... |
./SPEChpc/benchspec/HPC/618.tealeaf_s/src/2d/c_kernels/ppcg.c | #include "../shared.h"
/*
* PPCG SOLVER KERNEL
*/
// Initialises the PPCG solver
void ppcg_init(
const int x,
const int y,
const int halo_depth,
double theta,
double* r,
double* sd)
{
#ifdef SPEC_OPENACC
#pragma acc kernels loop independent collapse(2) \
present(... |
./openacc-vv/atomic_capture_assign_expr_divided_x.F90 | RECURSIVE FUNCTION IS_POSSIBLE_2(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),DI... |
./openacc-vv/atomic_update_bitxor_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_update_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 =... |
./openacc-vv/kernels_loop_reduction_min_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 * min = (real_t *)malloc(10 * sizeof(real_t));... |
./openacc-vv/acc_copyout_finalize_async_with_len.F90 | #ifndef T1
!T1:runtime,data,executable-data,async,construct-independent,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, d, e, f !Data
REAL(8) :: RAND
INTE... |
./openacc-vv/acc_free.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,data,executable-data,V:2.6-2.7
int test1(){
int err = 0;
int *a = (int *)acc_malloc(n * sizeof(int));
size_t initial_memory = acc_get_property(acc_get_device_num(acc_get_device_type()), acc_get_device_type(), acc_property_free_memory);
acc_free(a);
... |
./openacc-vv/parallel_loop_reduction_multiply_loop.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7
int test1(){
int err = 0;
int m_n = 128;
srand(SEED);
real_t * a = (real_t *)malloc(10 * m_n * sizeof(real_t));
real_t * b = (real_t *)malloc(10 * m_n * sizeof(real_t));
real_t * c = (real_t *)malloc... |
./openacc-vv/declare_create.F90 | !$acc declare create(fixed_size_array)
!$acc declare create(scalar)
!$acc declare create(LOOPCOUNT)
FUNCTION multiplyData(a)
REAL(8),DIMENSION(LOOPCOUNT), INTENT(INOUT) :: a
!$acc loop vector
DO x = 1, LOOPCOUNT
a(x) = a(x) * 2
END DO
END FUNCTION multiplyData
#ifndef T1
!T1:construct-independent,declare,... |
./openacc-vv/atomic_update_bitxor_equals.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 ... |
./ppm_one/common/common/traj.cpp | #include <iostream>
#include <cstdlib>
#include <fstream>
#include <cstring>
#include <string>
#include <vector>
#include <math.h>
#include <time.h>
using namespace std;
#include "traj.h"
using namespace ldw_math;
#define USE_ACC_COMPARE
#include "debug.h"
// /////////////////////////////////////////////////////////... |
./openacc-vv/atomic_capture_expr_divided_x.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] - (a[x]/prev)) < PREC... |
./openacc-vv/kernels_loop_reduction_and_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 = 1;
for (int x = 0; x < n; ++x){
if(rand() / (real_t)(RAND_MAX) < fa... |
./SPEChpc/benchspec/HPC/605.lbm_s/src/init.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/kernels_loop_reduction_bitor_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 * n * sizeof(unsigned int));
unsigned int * b_... |
./openacc-vv/acc_create.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/atomic_max_expr_list_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):: a, b !Data
REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison
INTEGER :: er... |
./SPECaccel/benchspec/ACCEL/357.csp/src/initialize.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_reduction.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(n * sizeof(real_t));
real_t reduction;
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10);
}
#pragma acc serial copyin(a[0:n]... |
./openacc-vv/routine_bind.c | #include "acc_testsuite.h"
real_t host_function_identifier_named(real_t* a, long long n);
real_t host_function_string_named(real_t* a, long long n);
#pragma acc routine(host_function_identifier_named) vector bind(device_function_identifier_named)
#pragma acc routine(host_function_string_named) vector bind("device_func... |
./SPEChpc/benchspec/HPC/613.soma_s/src/ana.h | /* Copyright (C) 2016 Ludwig Schneider
Copyright (C) 2016 Ulrich Welling
Copyright (C) 2016 Marcel Langenberg
Copyright (C) 2016 Fabien Leonforte
Copyright (C) 2016 Juan Orozco
Copyright (C) 2016 Yongzhi Ren
Copyright (C) 2016 N. Harshavardhan Reddy
This file is part of SOMA.
SOMA is free software... |
./openacc-vv/parallel_loop_reduction_multiply_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
REAL(8),DIMENSION(LOOPCOUNT):: a, b !Data
INTEGER :: errors = 0
REAL(8) :: temp = 1
REAL(8) :: mult... |
./openacc-vv/atomic_x_times_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/data_present_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/declare_function_scope_present.cpp | #include "acc_testsuite.h"
void present(real_t *a, real_t *b, real_t *c, real_t *d){
#pragma acc declare present(c[0:n])
#pragma acc parallel present(a[0:n], b[0:n], d[0:n])
{
#pragma acc loop
for (int x = 0; x < n; ++x){
c[x] = c[x] + a[x] + b[x];
}
#pragma acc l... |
./openacc-vv/exit_data_delete_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 !Data
INTEGER :: errors = 0
LOGICAL,DIMENSION(1):: has_device
... |
./openacc-vv/parallel_loop_vector.cpp | #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 = 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);
... |
./ppm_one/openacc/debug.h | #define BENCHMARK
#define ENABLE_ACC_COMPARE
#define ENABLE_PGI_COMPARE
#ifdef USE_NVTX
#include "nvToolsExt.h"
const uint32_t ProfilerColors[] = { 0xff00ff00, 0xff0000ff, 0xffffff00, 0xffff00ff, 0xff00ffff, 0xffff0000, 0xffffffff };
#define NVPROF_PUSH_RANGE(name,cid) { \
int color_id = cid; \
nvtxEventAtt... |
./SPEChpc/benchspec/HPC/621.miniswp_s/src/2_sweeper_base/definitions_kernels.h | /*---------------------------------------------------------------------------*/
/*!
* \file definitions_kernels.h
* \author Wayne Joubert, Vergonica G. Vergara Larrea
* \date Sep. 3, 2019
* \brief Basic definitions, code for comp. kernel.
* \note Copyright (C) 2019 Oak Ridge National Laboratory, UT-Battelle... |
./openacc-vv/atomic_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/serial_loop_reduction_min_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/atomic_structured_plus_equals_assign.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] - (a[x] + prev)) < P... |
./openacc-vv/atomic_iand_expr_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
INTEGER,DIMENSION(LOOPCOUNT):: a !Data
REAL(8),DIMENSION(LOOPCOUNT, 8):: randoms
INTEGER,DIMENSION(LOOPCOUNT/10 + 1):: ... |
./SPECaccel/benchspec/ACCEL/559.pmniGhost/src/MG_PROFILING.F90 | ! ************************************************************************
!
! miniGhost: stencil computations with boundary exchange.
! Copyright (2012) Sandia Corporation
!
! Under terms of Contract DE-AC04-141AL85000, there is a non-exclusive
! license for use of this work by or on beha... |
./openacc-vv/parallel_if.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,if,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];
int accel = 1;
int host = 0;
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX... |
./SPEChpc/tools/src/perl-5.24.0/hints/aix_3.sh | # hints/aix_3.sh
#
# On Tue 03 Feb 2004 split off from aix.sh by H.Merijn Brand
# AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com>
# Notes:
#
# - shared libperl support is tricky. if ever libperl.a ends up
# in /usr/local/lib/* it can override any subsequent builds of
# that same perl relea... |
./openacc-vv/routine_gang.c | #include "acc_testsuite.h"
void test_routine_gang_loop_named(real_t ** a, real_t * b, long long n);
void test_routine_gang_gang_named(real_t ** a, real_t * b, long long n);
void test_routine_gang_worker_named(real_t ** a, real_t * b, long long n);
void test_routine_gang_vector_named(real_t ** a, real_t * b, long long n... |
./openacc-vv/copy_copyout.c | #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/atomic_update_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/kernels_wait.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:kernels,wait,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);
b[x] = rand() / (rea... |
./openacc-vv/serial_loop_reduction_max_general.F90 | #ifndef T1
!T1:serial,reduction,combined-constructs,loop,V:2.6-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
REAL(8),DIMENSION(LOOPCOUNT):: a, b
REAL(8):: maxval, host_max
INTEGER:: errors, x
SEEDDIM(1) = 1
#ifdef SEED
SEEDDIM(1) = SEED
#endif
CALL RANDOM_SEED(PUT=SEED... |
./openacc-vv/serial_default_copy.F90 | #ifndef T1
!T1:devonly,V:2.6-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER:: errors
REAL(8),DIMENSION(LOOPCOUNT):: a, b, c
INTEGER,DIMENSION(1):: devtest
INTEGER:: x
errors = 0
devtest(1) = 1
!$acc enter data copyin(devtest(1:1))
!$acc parallel present(devtest(... |
./openacc-vv/parallel_loop_reduction_multiply_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, c !Data
REAL(8),DIMENSION(10):: totals
REAL(8) :: temp
... |
./MURaM_main/src/analysis_full.C | #include <fstream>
#include <mpi.h>
#include "analysis.H"
#include "precision.h"
#include "physics.H"
#include "grid.H"
#include "run.H"
using namespace std;
inline real max(real a, real b) { return a > b ? a : b; }
inline real min(real a, real b) { return a < b ? a : b; }
inline real sqr(real a) { return a*a; }
voi... |
./openacc-vv/serial_scalar_default_firstprivate.c | #include "acc_testsuite.h"
#ifndef T1
//T1:data,default-mapping,serial,firstprivate,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 scalar = rand() / (real_t)(RAND_MAX / 10);
real_t scal... |
./SPEChpc/tools/src/perl-5.24.0/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/parallel_loop_reduction_max_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
REAL(8),DIMENSION(LOOPCOUNT):: a, b !Data
REAL(8) :: maximum, temp
INTEGER :: errors = 0
!Initiliz... |
./openacc-vv/atomic_capture_multiply_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] - (a[x] * prev)) < PR... |
./openacc-vv/atomic_update_ixor_expr_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
INTEGER,DIMENSION(LOOPCOUNT):: a !Data
REAL(8),DIMENSION(LOOPCOUNT, 8):: randoms
INTEGER,DIMENSION(LOOPCOUNT/10 + 1):: ... |
./SPECaccel/tools/src/perl-5.12.3/hints/aix_3.sh | # hints/aix_3.sh
#
# On Tue 03 Feb 2004 split off from aix.sh by H.Merijn Brand
# AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com>
# Notes:
#
# - shared libperl support is tricky. if ever libperl.a ends up
# in /usr/local/lib/* it can override any subsequent builds of
# that same perl relea... |
./PhysiCell_GPU/sample_projects/cancer_immune/custom_modules/cancer_immune_3D.cpp | /*
###############################################################################
# If you use PhysiCell in your project, please cite PhysiCell and the version #
# number, such as below: #
# ... |
./openacc-vv/atomic_capture_assign_expr_and_x.F90 | RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE)
INTEGER, INTENT(IN) :: length
LOGICAL,DIMENSION(length), INTENT(IN) :: a
LOGICAL,DIMENSION(length), INTENT(IN) :: b
LOGICAL, INTENT(IN) :: init
LOGICAL,DIMENSION(length - 1) :: passed_a
LOGICAL,DIME... |
./openacc-vv/acc_memcpy_device.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,data,executable-data,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 *hostdata = new real_t[3 * n];
real_t *devdata;
for (int x = 0; x < n; ++... |
./openacc-vv/acc_free.c | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,data,executable-data,V:2.6-2.7
int test1(){
int err = 0;
int *a = (int *)acc_malloc(n * sizeof(int));
size_t initial_memory = acc_get_property(acc_get_device_num(acc_get_device_type()), acc_get_device_type(), acc_property_free_memory);
acc_free(a);
... |
./openacc-vv/routine_bind_nonprototype_lambda_nonstring_lambda.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;
};
//test... |
./openacc-vv/loop_no_collapse_default.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:loop,construct-independent,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 * n];
real_t total = 0;
for (int x = 0; x < 10 * n; ++x){
a[x] = rand()... |
./SPECaccel/benchspec/ACCEL/357.csp/src/exact_rhs.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_ixor_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):: ... |
./SPECaccel/benchspec/ACCEL/351.palm/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 ... |
./SPEChpc/tools/src/perl-5.24.0/cpan/Unicode-Normalize/t/proto.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... |
./SPEChpc/tools/src/perl-5.24.0/lib/unicore/PropValueAliases.txt | # PropertyValueAliases-8.0.0.txt
# Date: 2015-03-11, 22:29:33 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 property values ... |
./SPECaccel/tools/src/perl-5.12.3/lib/unicore/PropValueAliases.txt | # PropertyValueAliases-5.2.0.txt
# Date: 2009-08-24, 03:27:01 GMT [MD]
#
# Unicode Character Database
# Copyright (c) 1991-2009 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 property values ... |
./openacc-vv/kernels_default_present.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:kernels,data,data-region,default,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... |
./openacc-vv/parallel_independent_atomic_update.cpp | #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 = 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];
}
#pragma acc da... |
./openacc-vv/atomic_min_x_expr_list.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_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[... |
./SPECaccel/benchspec/ACCEL/557.pcsp/src/header.h | //-------------------------------------------------------------------------//
// //
// 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_plus_x.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_present.F90 | #ifndef T1
!T1:serial,V:2.6-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
REAL(8),DIMENSION(LOOPCOUNT):: a, b, c
INTEGER:: x
INTEGER:: errors
errors = 0
SEEDDIM(1) = 1
# ifdef SEED
SEEDDIM(1) = SEED
# endif
CALL RANDOM_SEED(PUT=SEEDDIM)
CALL RANDOM_NUMBER(a)
CALL R... |
./SPEChpc/tools/src/xz-5.2.2/src/liblzma/api/lzma/block.h | /**
* \file lzma/block.h
* \brief .xz Block handling
*/
/*
* Author: Lasse Collin
*
* This file has been put into the public domain.
* You can do whatever you want with this file.
*
* See ../lzma.h for information about liblzma as a whole.
*/
#ifndef LZMA_H_INTERNAL
# error Never include this f... |
./openacc-vv/shutdown.c | #include "acc_testsuite.h"
#ifndef T1
//T1:shutdown,V:2.5-2.7
int test1(){
int err = 0;
srand(SEED);
#pragma acc shutdown
return err;
}
#endif
int main(){
int failcode = 0;
int failed;
#ifndef T1
failed = 0;
for (int x = 0; x < NUM_TEST_CALLS; ++x){
failed = failed + test1();
... |
./openacc-vv/copyin_copyout.c | #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 copyin(test) copyout(test) reduction(+:test)
for( int x = 0; x <n; ++x){
test += 1;
}
if(fabs(test - n) > PRECISION){
err++;
}
return err;
}
#endi... |
./openacc-vv/serial_loop_reduction_and_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);
char * a = (char *)malloc(10 * n * sizeof(char));
char * b = (char *)malloc(10 * sizeof(char));
char * has_false = (char *)malloc(10 * sizeof(char));
char temp = ... |
./epcc-openacc-benchmarks/le_core.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... |
./SPECaccel/benchspec/ACCEL/551.ppalm/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... |
./SPECaccel/benchspec/ACCEL/351.palm/src/calc_spectra.F90 | SUBROUTINE calc_spectra
!--------------------------------------------------------------------------------!
! 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... |
./SPEChpc/benchspec/HPC/621.miniswp_s/src/3_sweeper/sweeper_kba_c.h | /*---------------------------------------------------------------------------*/
/*!
* \file sweeper_kba_c.h
* \author Wayne Joubert
* \date Tue Jan 28 16:37:41 EST 2014
* \brief Definitions for performing a sweep, kba version.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
/... |
./openacc-vv/kernels_loop_reduction_min_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 * n];
real_t * minimum = new real_t[10];
real_t temp = 0;
f... |
./openacc-vv/atomic_structured_assign_expr_plus_x.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){... |
./PhysiCell_GPU/tests/system/config_hetero_1core.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: #
# ... |
./SPECaccel/tools/src/make-3.82/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/serial_loop_reduction_bitand_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);
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-vv/acc_memcpy_to_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/atomic_capture_bitor_equals.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/parallel_reduction.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,reduction,V:1.0-2.7
int test1(){
int err = 0;
srand(SEED);
real_t * a = new real_t[n];
real_t reduction;
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10);
}
#pragma acc parallel copyin(a[0:n]) reduction(+:reduc... |
./openacc-vv/kernels_loop_reduction_min_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):: minimum = 1000
REAL(8):: temp = 1000
INTEGER :: ... |
./openacc-vv/acc_get_default_async.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,async,construct-independent,internal-control-values,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];
int holder = acc_get_default_async();
for(int x = 0; x < n; ++x){
a... |
./openacc-vv/set_device_type_nvidia.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:set,runtime,syntactic,V:2.5-3.2
int test1(){
int err = 0;
int device_type = acc_get_device_type();
#pragma acc set device_type(nvidia)
if (acc_get_device_type() != device_type){
err += 1;
}
return err;
}
#endif
int main(){
int failcode =... |
./openacc-vv/kernels_loop_tile.F90 | #ifndef T1
!T1:kernels,reduction,combined-constructs,loop,tile,V:2.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x, y, z !Iterators
REAL(8),DIMENSION(SMALL_LOOPCOUNT):: a, b, c !Data
REAL(8),DIMENSION(SMALL_LOOPCOUNT,SMALL_LOOPCOUNT)::d
... |
./openacc-vv/kernels_loop_reduction_multiply_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;
int multiplicitive_n = 128;
srand(SEED);
real_t * a = new real_t[10 * multiplicitive_n];
real_t * b = new real_t[10 * multiplicitive_n];
real_t * c = new real_t[10];
real... |
./SPEChpc/tools/src/xz-5.2.2/src/liblzma/liblzma.map | XZ_5.0 {
global:
lzma_alone_decoder;
lzma_alone_encoder;
lzma_auto_decoder;
lzma_block_buffer_bound;
lzma_block_buffer_decode;
lzma_block_buffer_encode;
lzma_block_compressed_size;
lzma_block_decoder;
lzma_block_encoder;
lzma_block_header_decode;
lzma_block_header_encode;
lzma_block_header_size;
lzma_block... |
./openacc-vv/atomic_update_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 *distribution = new int[10];
int *distribution_comparison = new int[10];
for (int x = 0; x < n; ++x){
a[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.