Dataset Viewer
Auto-converted to Parquet Duplicate
file_path
stringlengths
17
84
content
stringlengths
235
1.29M
./make_dataset.py
import os from datasets import Dataset from huggingface_hub import HfApi # Define paths and parameters data_dir = "." # Path to your folder containing subfolders with code files dataset_name = "chrismun/llm4vv-test" # Replace with your Hugging Face username and desired dataset name # Function to read files recursiv...
./openacc-vv/parallel_loop_reduction_bitxor_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int * a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int * b = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int * b...
./openacc-vv/atomic_bitand_equals.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); int *a = new int[n]; int *totals = new int[(n/10 + 1)]; int *totals_comparison = new int[(n/10 + 1)]; for (int x = 0; x < n; ++x){ for (int y = 0; y < 8; ++y){ ...
./openacc-vv/data_wait.c
#include "acc_testsuite.h" #ifndef T1 //T1:async,data,wait,V:3.2-3.3 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/atomic_update_expr_or_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/declare_function_scope_create.cpp
#include "acc_testsuite.h" void create_test(real_t *a, real_t *b, real_t *c, real_t *d){ #pragma acc declare create(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] = a[x] + b[x]; } #pragma acc loop ...
./openacc-vv/serial_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,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]; real_t * c = new real_t[n]; real_t * d = new real_t[n]; real_t * e = new real_t[n]; real_t * f = new real_t[n]; real_t...
./openacc-vv/serial_loop_reduction_bitor_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, x, y, z, temp INTEGER,DIMENSION(LOOPCOUNT, 10):: a, b, b_copy INTEGER,DIMENSION(10):: c REAL(8):: false_margin REAL(8),DIMENSION(LOOPCOUNT, 1...
./openacc-vv/parallel_default_copy.F90
#ifndef T1 !T1:devonly,parallel,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):: devtest devtest(1) = .TRUE. ...
./openacc-vv/atomic_structured_x_bitor_expr_assign.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] == (pre...
./openacc-vv/atomic_update_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_preincrement.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 *distribution = (int *)malloc(10 * sizeof(int)); int *distribution_comp...
./openacc-vv/parallel_switch.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,syntactic,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); int * a = new int[n]; real_t * b = new real_t[n]; real_t * b_host = new real_t[n]; real_t * c = new real_t[n]; real_t tempc = 0.0; for (int x = 0; x < n; ++x){ a[x] = f...
./openacc-vv/atomic_capture_assign_min_expr_list_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(a, b, c, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8), INTENT(IN) :: init REAL(8),DIMENSION(length), INTENT(IN) :: a REAL(8),DIMENSION(length), INTENT(IN) :: b REAL(8),DIMENSION(length), INTENT(IN) :: c REAL(8),...
./openacc-vv/set_device_type_num_nvidia.F90
#ifndef T1 !T1:runtime,construct-independent,internal-control-values,set,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_type = a...
./openacc-vv/shutdown_device_type.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:shutdown,runtime,syntactic,V:2.5-3.2 int test1(){ int err = 0; #pragma acc shutdown device_type(host) return err; } #endif #ifndef T2 //T2:shutdown,runtime,syntactic,V:2.5-3.2 int test2(){ int err = 0; #pragma acc shutdown device_type(multicore) ret...
./openacc-vv/acc_memcpy_to_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/parallel_loop_reduction_or_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); char * a = (char *)malloc(10 * n * sizeof(char)); char * b = (char *)malloc(10 * sizeof(char)); real_t false_margin = pow(exp(1), log(.5)/n); char temp = 0; ...
./openacc-vv/kernels_loop_seq.F90
#ifndef T1 !T1:kernels,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 !Initilization SEEDDIM(1) = 1 # ifdef S...
./openacc-vv/acc_create.cpp
#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 = 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_M...
./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/acc_copyout_finalize_with_len.F90
#ifndef T1 !T1:runtime,data,executable-data,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 !Data REAL(8) :: RAND INTEGER :: errors =...
./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/serial_if.c
#include "acc_testsuite.h" #ifndef T1 //T1:serial,if,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(n * sizeof(real_t)); real_t * b = (real_t *)malloc(n * sizeof(real_t)); real_t * c = (real_t *)malloc(n * sizeof(real_t)); int accel = 1; int host = 0; for...
./openacc-vv/atomic_structured_assign_x_lshift_expr.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/parallel_loop_auto.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,combined-constructs,V:2.0-2.7 //data dependent, treated with as a seq clause. Added the num_gangs clause with 1 int test1(){ int err = 0; srand(SEED); real_t * device = new real_t[n]; real_t * host = new real_t[n]; for (int x = 0; x < n; ++x...
./openacc-vv/kernels_num_gangs.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,loop,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); real_t * restrict a = (real_t *)malloc(n * sizeof(real_t)); real_t * restrict b = (real_t *)malloc(n * sizeof(real_t)); for (int x = 0; x < n; ++x){ a[x] = rand() / (real_t)(RAND_MAX / 1...
./openacc-vv/parallel_loop_independent.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,combined-constructs,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 ...
./openacc-vv/serial_loop_reduction_multiply_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; 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/atomic_structured_assign_rshift_equals.cpp
#include "acc_testsuite.h" bool is_possible(unsigned int a, unsigned int* b, int length, unsigned int prev){ if (length == 0){ return true; } unsigned int passed_a = 0; unsigned int *passed_b = (unsigned int *)malloc((length - 1) * sizeof(unsigned int)); for (int x = 0; x < length; ++x){ ...
./openacc-vv/atomic_structured_assign_expr_bitand_x.c
#include "acc_testsuite.h" bool is_possible(int* a, int* b, int length, int prev){ if (length == 0){ return true; } int *passed_a = (int *)malloc((length - 1) * sizeof(int)); int *passed_b = (int *)malloc((length - 1) * sizeof(int)); for (int x = 0; x < length; ++x){ if (b[x] == prev...
./openacc-vv/atomic_expr_divided_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_structured_bitxor_equals_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_expr_rshift_x.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(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/atomic_capture_rshift_equals.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_expr_minus_x.F90
RECURSIVE FUNCTION IS_POSSIBLE(subset, destination, length, init) RESULT(POSSIBLE) INTEGER, INTENT(IN) :: length REAL(8),DIMENSION(length), INTENT(IN) :: subset REAL(8), INTENT(IN) :: destination REAL(8), INTENT(IN) :: init REAL(8),ALLOCATABLE :: passed(:) LOGICAL :...
./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/atomic_expr_lshift_x.c
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int *a = (unsigned int *)malloc(3 * n * sizeof(int)); unsigned int *b = (unsigned int *)malloc(n * sizeof(int)); int orders[18] = {1, 2, 0, 1, 0, 2, 2, 1, 0, 2, 0, 1, 0, ...
./openacc-vv/acc_map_data.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 *d; real_t *e = new real_t[n]; d = (real_t *)acc_malloc(n * sizeof(real_t...
./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); ...
./openacc-vv/atomic_update_expr_lshift_x.c
#include "acc_testsuite.h" #ifndef T1 //T1:atomic,construct-independent,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); unsigned int *a = (unsigned int *)malloc(3 * n * sizeof(int)); unsigned int *b = (unsigned int *)malloc(n * sizeof(int)); int orders[18] = {1, 2, 0, 1, 0, 2, 2, 1, 0, 2, 0, 1, 0, ...
./openacc-vv/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; ...
./openacc-vv/kernels_loop_reduction_or_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 :: temp REAL...
./openacc-vv/acc_get_property.cpp
#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_get_default_async.c
#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 = (real_t *)malloc(n * sizeof(real_t)); real_t *b = (real_t *)malloc(n * sizeof(real_t)); real_t *c = (real_t *)malloc(n * sizeof(real_t)); int holder ...
./openacc-vv/parallel_loop_reduction_bitxor_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 INTEGER,DIMENSION(LOOPCOUNT):: a !Data REAL(8),DIMENSION(LOOPCOUNT):: randoms INTEGER :: errors = 0 ...
./openacc-vv/acc_deviceptr.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 *a_ptr; r...
./openacc-vv/set_device_num.cpp
#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/parallel_loop_reduction_add_vector_loop.c
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,private,reduction,combined-constructs,loop,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * b = (real_t *)malloc(10 * n * sizeof(real_t)); real_t * c = (real_t *)malloc(10 * sizeof(re...
./openacc-vv/parallel_copyin.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,data,data-region,V:2.0-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]; int* hasDevice = (int *) malloc(sizeof(int)); hasDevice[0] = 1; #pragma acc enter...
./openacc-vv/acc_set_default_async.F90
#ifndef T1 !T1:runtime,async,construct-independent,internal-control-values,set,V:2.5-2.7 LOGICAL FUNCTION test1() USE OPENACC IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c, a_host, b_host !Data INTEGER :: err...
./openacc-vv/kernels_loop_reduction_and_loop.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 !Iterators LOGICAL,DIMENSION(10*LOOPCOUNT):: a, a_copy !Data LOGICAL,DIMENSION(10) :: results, has_false LOGICAL :: ...
./openacc-vv/acc_wait_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:runtime,async,construct-independent,wait,V:2.0-2.7 int test1(){ int err = 0; real_t *a = new real_t[n]; real_t *b = new real_t[n]; real_t *c = new real_t[n]; real_t *d = new real_t[n]; real_t *e = new real_t[n]; real_t *f = new real_t[n]; real_t...
./openacc-vv/init_device_num.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:init,runtime,V:2.5-2.7 int test1(){ int err = 0; srand(SEED); int device_num = acc_get_device_num(acc_get_device_type()); #pragma acc init device_num(device_num) return err; } #endif int main(){ int failcode = 0; int failed; #ifndef T1 failed...
./openacc-vv/serial_loop_reduction_bitor_vector_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); unsigned int* a = (unsigned int *)malloc(10 * n * sizeof(unsigned int)); unsigned int* b = (unsigned int *)malloc(10 * sizeof(unsigned int)); unsigned int b_host; ...
./openacc-vv/parallel_loop_reduction_and_general.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,reduction,combined-constructs,V:1.0-2.7 int test1(){ int err = 0; srand(SEED); char * a = new char[n]; real_t false_margin = pow(exp(1), log(.5)/n); char result = 1; char found = 0; for (int x = 0; x < n; ++x){ if(rand() / (r...
./openacc-vv/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/kernels_present.c
#include "acc_testsuite.h" #ifndef T1 //T1:kernels,data,structured-data,V:2.0-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = (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)...
./openacc-vv/data_create_no_lower_bound.F90
#ifndef T1 !T1:data,data_region,construct-independent,V:1.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b, c, d, e !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 ...
./openacc-vv/parallel_firstprivate.F90
#ifndef T1 !T1:parallel,firstprivate,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, d !Data REAL(8),DIMENSION(LOOPCOUNT):: c, c_copy REAL*8 :: RAND INTEGER :: e...
./openacc-vv/serial_copyin.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,data-region,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; real_t * a_copy = new real_t[n]; real_t * b = new real_t[n]; int* hasDevice = (int *) malloc(sizeof(int)); hasDevice[0] = 1; #pragma acc enter d...
./openacc-vv/parallel_loop_async.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:parallel,loop,async,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 * d = new real_t[10 * n]; int * errors = new int[10]; f...
./openacc-vv/parallel_if.F90
#ifndef T1 !T1:devonly,parallel,if,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 :: host = .FALSE. LOGICAL :: device = .TRUE. ...
./openacc-vv/kernels_async.F90
#ifndef T1 !T1:async,kernels,update,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, f, g !Data INTEGER :: errors = 0 !Initilization SEEDDIM(1) = 1 # ifde...
./openacc-vv/atomic_update_x_multiply_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[(n/10 + 1)]; real_t *totals_comparison = new real_t[(n/10 + 1)]; for (int x = 0; x < n; ...
./openacc-vv/kernels_if.cpp
#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 = 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; } #prag...
./openacc-vv/kernels_loop_reduction_bitxor_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/reference_count_zero.c
#include "acc_testsuite.h" #ifndef T1 //T1:reference-counting,data,V:3.2-3.3 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/routine_bind_nonprototype_lambda_string_function.cpp
#include "acc_testsuite.h" //test 1 host lambnda #pragma acc routine vector bind("device_array_array") auto host_array_array = [](real_t * a, long long n){ #pragma acc loop reduction(+:returned) real_t returned = 0.0; for (int x = 0; x < n; ++x){ returned += a[x]; } return returned; }; //...
./openacc-vv/parallel_loop_reduction_add_general_type_check_pt2.cpp
#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 short int * a = (unsigned short int*)malloc(n * sizeof(unsigned short int)); unsigned short int * b = (unsigned short int *)malloc(n * sizeof(unsigned short in...
./openacc-vv/atomic_structured_expr_bitxor_x_assign.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] == (pre...
./openacc-vv/kernels_copyout.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 !Data INTEGER :: errors = 0 INTEGER,DIMENSION(1):: devtest devtest(1) = 1 !$acc en...
./openacc-vv/atomic_capture_assign_expr_eqv_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_update_max_x_expr_list_end.F90
#ifndef T1 !T1:construct-independent,atomic,V:2.0-2.7 LOGICAL FUNCTION test1() IMPLICIT NONE INCLUDE "acc_testsuite.Fh" INTEGER :: x, y !Iterators REAL(8),DIMENSION(LOOPCOUNT):: a, b !Data REAL(8),DIMENSION(LOOPCOUNT/10 + 1):: totals, totals_comparison INTEGER :: er...
./openacc-vv/serial_default_present.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,data,data-region,default,V:2.6-2.7 int test1(){ int err = 0; srand(SEED); real_t * a = new real_t[n]; for (int x = 0; x < n; ++x){ a[x] = 0.0; } #pragma acc enter data copyin(a[0:n]) #pragma acc serial default(present) { ...
./openacc-vv/parallel_independent_atomic_update.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); ...
./openacc-vv/serial_loop_reduction_multiply_vector_loop.cpp
#include "acc_testsuite.h" #ifndef T1 //T1:serial,loop,reduction,combined-constructs,V:2.6-2.7 int test1(){ int err = 0; 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_...
End of preview. Expand in Data Studio

Dataset Card for "llm4vv-test"

More Information needed

Downloads last month
3