file_path stringlengths 17 84 | content stringlengths 235 1.29M |
|---|---|
./openacc-vv/init_device_type_num.F90 | #ifndef T1
!T1:runtime,construct-independent,internal-control-values,init,nonvalidating,V:2.5-3.2
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: device_num
INTEGER :: device_type
INTEGER :: errors = 0
device_type = ... |
./openacc-vv/shutdown_device_type_num_nvidia.F90 | #ifndef T1
!T1:runtime,construct-independent,internal-control-values,shutdown,nonvalidating,V:2.5-2.7
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: device_num
INTEGER :: device_type
INTEGER :: errors = 0
device_typ... |
./openacc-vv/acc_delete_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
INTEGER :: errors = 0
... |
./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/serial_loop_worker.F90 | #ifndef T1
!T1:serial,combined-constructs,loop,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 ... |
./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_or_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"
LOGICAL,DIMENSION(LOOPCOUNT, 10):: a, a_copy
LOGICAL,DIMENSION(10):: results
LOGICAL:: temp
REAL(8):: false_margin
REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms
... |
./openacc-vv/declare_function_scope_create.F90 | FUNCTION create_test(a, b, c, d, LOOPCOUNT)
REAL(8),DIMENSION(LOOPCOUNT),INTENT(IN) :: a, b
REAL(8),DIMENSION(LOOPCOUNT),INTENT(INOUT) :: c, d
INTEGER,INTENT(IN) :: LOOPCOUNT
INTEGER :: x
!$acc declare create(c(1:LOOPCOUNT))
!$acc parallel present(a(1:LOOPCOUNT), b(1:LOOPCOUNT), d(1:LOOPCOUNT))
!$acc l... |
./openacc-vv/serial_loop_worker_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);
... |
./openacc-vv/serial_loop_vector_blocking.c | #include "acc_testsuite.h"
#ifndef T1
//T1:serial,loop,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));
real_t multiplyer = 1;
for (int x = 0; x < n; ++... |
./openacc-vv/kernels_loop_reduction_max_loop.F90 | #ifndef T1
!T1:kernels,private,reduction,combined-constructs,loop,V:1.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x, y !Iterators
REAL(8),DIMENSION(10 * LOOPCOUNT):: a, b, c !Data
REAL(8),DIMENSION(10):: maximum
REAL(8) :: temp... |
./openacc-vv/kernels_loop_reduction_bitor_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, z !Iterators
INTEGER,DIMENSION(10 * LOOPCOUNT):: a !Data
INTEGER,DIMENSION(10) :: b
REAL(8) :: false_margin... |
./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_update_expr_or_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_rshift_expr.c | #include "acc_testsuite.h"
#ifndef T1
//T1:atomic,construct-independent,V:2.0-2.7
int test1(){
int err = 0;
srand(SEED);
unsigned int *a = (unsigned int *)malloc(n * sizeof(int));
unsigned int *b = (unsigned int *)malloc(n * sizeof(int));
for (int x = 0; x < n; ++x){
a[x] = 1<<7;
fo... |
./openacc-vv/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/acc_is_present_with_len.F90 | #ifndef T1
!T1:runtime,devonly,construct-independent,present,V:2.0-2.7
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x !Iterators
REAL(8),DIMENSION(LOOPCOUNT):: a !Data
INTEGER,DIMENSION(1):: devtest
INTEGER :: erro... |
./openacc-vv/init_device_type_num_nvidia.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:init,runtime,V:2.5-3.2
int test1(){
int err = 0;
srand(SEED);
int device_num = acc_get_device_num(acc_get_device_type());
#pragma acc init device_type(nvidia) device_num(device_num)
return err;
}
#endif
int main(){
int failcode = 0;
int failed;
#... |
./openacc-vv/atomic_update_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){
... |
./openacc-vv/atomic_expr_multiply_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((n/10 + 1) * sizeof(real_t));
real_t *tot... |
./openacc-vv/init.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:init,V:2.5-2.7
int test1(){
int err = 0;
srand(SEED);
#pragma acc init
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/parallel_deviceptr.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,runtime,V:2.0-2.7
int test1(){
int err = 0;
srand(SEED);
real_t * a = new real_t[n];
real_t * b;
for (int x = 0; x < n; ++x){
a[x] = 0;
}
#pragma acc enter data copyin(a[0:n])
b = (real_t *) acc_deviceptr(a);
if (b == NULL... |
./openacc-vv/atomic_structured_lshift_equals_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_ixor_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/routine_bind_prototype_lambda_nonstring_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/enter_data_create.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:data,executable-data,construct-independent,V:2.0-2.7
int test1(){
int err = 0;
srand(SEED);
real_t * a = new real_t[n];
real_t * b = new real_t[n];
real_t * c = new real_t[n];
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10)... |
./openacc-vv/declare_copyin.cpp | #define DECLARE_TEST
#define DECLARE_COPYIN
int mult_copyin = 2;
#include "acc_testsuite_declare.h"
#include "acc_testsuite.h"
#pragma acc declare copyin(fixed_size_array)
#pragma acc declare copyin(scalar)
#pragma acc declare copyin(datapointer)
#pragma acc declare copyin(n)
#pragma acc routine vector
void multiplyDa... |
./openacc-vv/acc_update_self.F90 | #ifndef T1
!T1:runtime,data,executable-data,construct-independent,update,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
REAL(8) :: RAND
INTEGER :: e... |
./openacc-vv/kernels_loop_reduction_bitxor_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
INTEGER,DIMENSION(LOOPCOUNT):: a !Data
REAL(8),DIMENSION(LOOPCOUNT):: randoms
INTEGER :: errors = 0
... |
./openacc-vv/kernels_vector_length.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:kernels,V:2.5-2.7
int test1(){
int err = 0;
srand(SEED);
real_t * a = new real_t[n];
real_t * b = new real_t[n];
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10);
b[x] = 0;
}
#pragma acc data copyin(a[0:n]) copy... |
./openacc-vv/atomic_capture_iand_expr_x_assign.F90 | RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE)
INTEGER, INTENT(IN) :: length
INTEGER, INTENT(IN) :: init
INTEGER,DIMENSION(length), INTENT(IN) :: a
INTEGER,DIMENSION(length), INTENT(IN) :: b
INTEGER,DIMENSION(length - 1) :: passed_a
INTEGER,DIME... |
./openacc-vv/serial_loop.cpp | #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 = 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] = 0;
}
#pragma acc data copy(a[0:n])... |
./openacc-vv/acc_copyin_async.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, a_host, b_host !Data
REAL(8) :: RAND
... |
./openacc-vv/serial_loop_reduction_or_general.c | #include "acc_testsuite.h"
#ifndef T1
//T1:serial,loop,reduction,combined-constructs,V:2.6-2.7
int test1(){
int err = 0;
srand(SEED);
char * a = (char *)malloc(n * sizeof(char));
real_t false_margin = pow(exp(1), log(.5)/n);
char result = 0;
char found = 0;
for (int x = 0; x < n; ++x){
... |
./openacc-vv/atomic_expr_and_x_end.F90 | #ifndef T1
!T1:construct-independent,atomic,V:2.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x, y !Iterators
REAL(8),DIMENSION(LOOPCOUNT, 10):: randoms
LOGICAL,DIMENSION(LOOPCOUNT, 10):: a !Data
LOGICAL,DIMENSION(LOOPCOUNT):: to... |
./openacc-vv/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/atomic_structured_x_minus_expr_assign.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/atomic_structured_assign_expr_divided_x.c | #include "acc_testsuite.h"
bool is_possible_2(real_t* a, real_t* b, int length, real_t prev, real_t destination){
if (length == 0){
return abs(prev - destination) < PRECISION;
}
real_t *passed_a = (real_t *)malloc((length - 1) * sizeof(real_t));
real_t *passed_b = (real_t *)malloc((length - 1) *... |
./openacc-vv/serial_loop_reduction_or_general.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);
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(rand() / (real... |
./openacc-vv/acc_memcpy_from_device_async.c | #include "acc_testsuite.h"
#ifndef T1
//T1:runtime,data,executable-data,async,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 *d = (r... |
./openacc-vv/serial_loop_worker_blocking.c | #include "acc_testsuite.h"
#ifndef T1
//T1:serial,loop,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));
real_t multiplyer = 1;
for (int x ... |
./openacc-vv/set_default_async.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:async,set,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 = 0; x < n; ++x){
... |
./openacc-vv/atomic_max_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
REAL(8),DIMENSION(LOOPCOUNT):: a !Data
REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison
INTEGER :: error... |
./openacc-vv/atomic_update_x_bitor_expr.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/serial_loop_reduction_bitand_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, b_copy
INTEGER,DIMENSION(10):: c, host_c
INTEGER:: errors, x, y, z, temp
REAL(8):: false_margin
REAL(8),DIMENSION(LOOP... |
./openacc-vv/parallel_loop_reduction_max_vector_loop.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,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 * max = (real_t *)malloc(10 * sizeof(real_t))... |
./openacc-vv/atomic_update_max_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
REAL(8),DIMENSION(LOOPCOUNT):: a !Data
REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison
INTEGER :: error... |
./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/set_device_type.F90 | #ifndef T1
!T1:runtime,construct-independent,internal-control-values,set,V:2.5-3.2
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: errors = 0
!$acc set device_type(host)
IF (errors .eq. 0) THEN
test1 = .FALSE.
... |
./openacc-vv/atomic_capture_assign_expr_or_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/exit_data_copyout_no_lower_bound.cpp | #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 = 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... |
./openacc-vv/atomic_capture_assign_x_and_expr.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,DIMENSION(length - 1) :: passed_b
LOGICAL ::... |
./openacc-vv/parallel_loop_vector_blocking.F90 | #ifndef T1
!T1:parallel,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) :: multiplyer
INTEGER :: errors = 0
multiplyer = 1
SEEDDIM(1) = 1
#... |
./openacc-vv/kernels_loop_reduction_and_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);
char * a = (char *)malloc(10 * n * sizeof(char));
char * b = (char *)malloc(10 * sizeof(char));
char * has_false = (char *)malloc(10 * sizeof(char));
real_t fals... |
./openacc-vv/acc_hostptr.F90 | #ifndef T1
!T1:runtime,data,V:3.3
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
REAL, DIMENSION(LOOPCOUNT) :: a !Data
INTEGER :: err = 0
CALL acc_create(a)
IF (a /= acc_hostptr(a)) THEN
err = err + 1
E... |
./openacc-vv/parallel_loop_tile.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,loop,tile,reduction,combined-constructs,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));
re... |
./openacc-vv/init_device_type.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(host)
return err;
}
#endif
#ifndef T2
//T2:init,runtime,V:2.5-3.2
int test2(){
int err = 0;
srand(SEED);
#pragma acc init device_type(multicore)
retur... |
./openacc-vv/atomic_update_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/kernels_loop_reduction_bitor_general.cpp | #include "acc_testsuite.h"
#ifndef T1
//T1:kernels,loop,reduction,combined-constructs,V:1.0-2.7
int test1(){
int err = 0;
srand(SEED);
unsigned int * a = (unsigned int *)malloc(n * sizeof(unsigned int));
real_t false_margin = pow(exp(1), log(.5)/n);
unsigned int temp = 1;
unsigned int b = 0;
... |
./openacc-vv/atomic_structured_assign_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];
bool found = fa... |
./openacc-vv/parallel_loop_reduction_min_loop.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7
int test1(){
int err = 0;
srand(SEED);
real_t * a = (real_t *)malloc(10 * n * sizeof(real_t));
real_t * b = (real_t *)malloc(10 * n * sizeof(real_t));
real_t * c = (real_t *)malloc(10 * n * sizeof(real_t... |
./openacc-vv/serial_firstprivate.F90 | #ifndef T1
!T1:serial,firstprivate,V:2.6-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER:: errors
REAL(8),DIMENSION(10, LOOPCOUNT):: a, b, d
REAL(8),DIMENSION(10):: c, c_copy
INTEGER:: x, y
errors = 0
SEEDDIM(1) = 1
# ifdef SEED
SEEDDIM(1) = SEED
# endif
CALL RA... |
./openacc-vv/atomic_update_rshift_equals.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<<7;
fo... |
./openacc-vv/atomic_structured_x_bitand_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;... |
./openacc-vv/atomic_update_min_x_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):: a !Data
REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison
INTEGER :: error... |
./openacc-vv/kernels_create.F90 | #ifndef T1
!T1:devonly,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
INTEGER,DIMENSION(1):: devtest
devtest(1) = 1
!$acc... |
./openacc-vv/set_device_num.c | #include "acc_testsuite.h"
#ifndef T1
//T1:set,devonly,runtime,construct-independent,V:2.5-2.7
int test1(){
int err = 0;
if (acc_get_device_type() != acc_device_none){
real_t **host_copy = (real_t **)malloc(acc_get_num_devices(acc_get_device_type()) * sizeof(real_t *));
for (int x = 0; x < acc_... |
./openacc-vv/serial_loop_reduction_min_vector_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 * min = (real_t *)malloc(10 * sizeof(real_t));
... |
./openacc-vv/parallel_present.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,present,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));
for (int x = 0; x < n; ++x){
... |
./openacc-vv/kernels_loop_reduction_add_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];
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10);
b[x] = rand() / (real_... |
./openacc-vv/parallel_default_present.F90 | #ifndef T1
!T1:parallel,default,V:2.5-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x !Iterators
REAL(8),DIMENSION(LOOPCOUNT):: a !Data
INTEGER :: errors = 0
a = 0
!$acc data copy(a(1:LOOPCOUNT))
!$acc parallel ... |
./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_structured_preincrement_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... |
./openacc-vv/kernels_loop_reduction_bitand_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);
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/atomic_capture_assign_ixor_x_expr.F90 | RECURSIVE FUNCTION IS_POSSIBLE(a, b, length, init) RESULT(POSSIBLE)
INTEGER, INTENT(IN) :: length
INTEGER, INTENT(IN) :: init
INTEGER,DIMENSION(length), INTENT(IN) :: a
INTEGER,DIMENSION(length), INTENT(IN) :: b
INTEGER,DIMENSION(length - 1) :: passed_a
INTEGER,DIMENSION(length - 1) :: passed_b
INTEGER ::... |
./openacc-vv/kernels_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/atomic_capture_assign_x_times_expr.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/acc_on_device.F90 | #ifndef T1
!T1:runtime,construct-independent,internal-control-values,present,V:1.0-2.7
LOGICAL FUNCTION test1()
USE OPENACC
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: errors
INTEGER :: device_type
errors = 0
device_type = acc_get_device_type()
... |
./openacc-vv/kernels_vector_length.c | #include "acc_testsuite.h"
#ifndef T1
//T1:kernels,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));
for (int x = 0; x < n; ++x){
a[x] = rand() / (real_t)(RAND_MAX / 10);
b[x] = 0;
... |
./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/kernels_loop_reduction_bitand_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, y, z !Iterators
INTEGER,DIMENSION(LOOPCOUNT):: a !Data
INTEGER :: b
REAL(8),DIMENSION(16 * LOOPCOUNT):: randoms
... |
./openacc-vv/atomic_x_times_expr_end.F90 | #ifndef T1
!T1:construct-independent,atomic,V:2.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x, y !Iterators
REAL(8),DIMENSION(LOOPCOUNT, 10):: a !Data
REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison
INTEGER :: errors =... |
./openacc-vv/parallel.c | #include "acc_testsuite.h"
#ifndef T1
//T1:parallel,V:1.0-2.7
int test1(){
int err = 0;
srand(SEED);
real_t* a = (real_t *) malloc(1024 * sizeof(real_t));
real_t* b = (real_t *) malloc(1024 * sizeof(real_t));
real_t* c = (real_t *) malloc(1024 * sizeof(real_t));
for(int x = 0; x < 1024; ++x){
... |
./openacc-vv/wait_if_devnum_true.cpp | #include "acc_testsuite.h"
using namespace std;
#ifndef T1
//T1:parallel,wait,async,V:2.7-3.2
int test1(){
int err = 0;
srand(time(NULL));
data_container<real_t> a = *(new data_container<real_t>(n));
data_container<real_t> b = *(new data_container<real_t>(n));
data_container<real_t> c = *(new data... |
./openacc-vv/parallel_loop_reduction_multiply_vector_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 multiplicitive_n = 128;
srand(SEED);
real_t* a = (real_t*)malloc(10 * multiplicitive_n * sizeof(real_t));
real_t* b = (real_t*)malloc(10 * multiplicitive_n * sizeof(real_t)... |
./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/set_if.c | #include "acc_testsuite.h"
#ifndef T1
//T1:set,if,V:2.7-3.0
int test1(){
int err = 0;
srand(SEED);
int device_type = acc_get_device_type();
#pragma acc set if(acc_get_device_type == device_type)
return err;
}
#endif
#ifndef T2
//T2:set,if,V:2.7-3.0
int test2(){
int err = 0;
srand(SEED);
int de... |
./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/data_copyin_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/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/atomic_structured_postdecrement_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/shutdown_device_num.c | #include "acc_testsuite.h"
#ifndef T1
//T1:shutdown,runtime,syntactic,V:2.5-2.7
int test1(){
int err = 0;
srand(SEED);
int device_num;
device_num = acc_get_device_num(acc_get_device_type());
#pragma acc shutdown device_num(device_num)
return err;
}
#endif
int main(){
int failcode = 0;
... |
./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):: ... |
./openacc-vv/declare_function_scope_copy.F90 | SUBROUTINE copyin_copyout_test(a, b, c, LOOPCOUNT)
REAL(8),DIMENSION(LOOPCOUNT),INTENT(IN) :: a, b
REAL(8),DIMENSION(LOOPCOUNT),INTENT(INOUT) :: c
INTEGER,INTENT(IN) :: LOOPCOUNT
INTEGER :: y
!$acc declare copy(c(1:LOOPCOUNT))
!$acc parallel present(a(1:LOOPCOUNT), b(1:LOOPCOUNT))
!$acc loop
DO y = ... |
./openacc-vv/atomic_x_plus_expr.F90 | #ifndef T1
!T1:construct-independent,atomic,V:2.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x, y !Iterators
REAL(8),DIMENSION(LOOPCOUNT, 10):: a !Data
REAL(8),DIMENSION(LOOPCOUNT):: totals, totals_comparison
INTEGER :: errors =... |
./openacc-vv/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/parallel_loop_reduction_or_general.F90 | #ifndef T1
!T1:parallel,reduction,combined-constructs,loop,V:1.0-2.7
LOGICAL FUNCTION test1()
IMPLICIT NONE
INCLUDE "acc_testsuite.Fh"
INTEGER :: x !Iterators
LOGICAL,DIMENSION(LOOPCOUNT):: a !Data
LOGICAL :: results = .FALSE.
LOGICAL :: temp = .FALSE.
REAL(... |
./openacc-vv/set_device_type_num.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(host) device_num(device_num)
return err;
}
#endif
#ifndef T2
//T2:set,runtime,syntactic,V:2.5-3.2
int test2(){
... |
./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/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){... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.