source
stringlengths
3
92
c
stringlengths
26
2.25M
AVX-512BWsearch.c
#include "charSubmat.h" #include "AVX-512BWsearch.h" #include "utils.h" // search using AVX512BW instructions and Score Profile technique void search_avx512bw_sp (char * query_sequences, unsigned short int * query_sequences_lengths, unsigned long int query_sequences_count, unsigned int * query_disp, char * vect_seque...
gen_fffc.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
move_particle_utility.h
// KRATOS ___ ___ _ ___ __ ___ ___ ___ ___ // / __/ _ \| \| \ \ / /__| \_ _| __| __| // | (_| (_) | .` |\ V /___| |) | || _|| _| // \___\___/|_|\_| \_/ |___/___|_| |_| APPLICATION // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Pablo Beck...
function.c
#include <stdio.h> #include "assert.h" #include <unistd.h> #pragma omp declare target int mul_int(int, int); #pragma omp end declare target int mul_int(int a, int b){ int c; c=a*b; return c; } void vmul(int*a, int*b, int*c, int N){ #pragma omp target map(to: a[0:N],b[0:N]) map(from:c[0:N]) #pragma omp teams d...
test_nvector_openmpdev.c
/* ----------------------------------------------------------------- * Programmer(s): David J. Gardner @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2021, Lawrence Livermore National Security * and Southern Methodist University. * All ri...
p5.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #define ISIZE 1000 #define JSIZE 1000 int main(int argc, char **argv) { double *a = new double[ISIZE*JSIZE]; FILE *ff; int nth = 1; if (argc == 2) nth = atoi(argv[1]); omp_set_dynamic(0); omp_set_num_threads(nth); // Initi...
GB_unop__expm1_fc64_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
fdtd-2d.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
softmax-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
dslash_vector_complex_ops_omp.h
/* * kokkos_ops.h * * Created on: Jul 26, 2017 * Author: bjoo */ #pragma once #include <dslash/dslash_complex.h> #include <complex> #include <array> namespace MG { template<typename T, int N, template <typename,int> class T1, template <typename,int> class T2> inline void ComplexCopy(T1<T,N>& result, cons...
histogram.h
#pragma once #include <sstream> #include "util/pretty_print.h" template<typename T> vector<int32_t> core_val_histogram(int n, T &core, bool is_print = false) { Timer histogram_timer; // core-value histogram int max_core_val = 0; vector<int32_t> histogram; #pragma omp parallel { #pragma omp for re...
stresslet_real_rc_new.c
#include "../mex/stresslet_real_rc.h" #include "stresslet_real_rc_new.h" #ifdef BEENAKKER #include "beenakker_op_fd.h" #else #error "Must provide -D<method> to compiler" #endif // ******************************** compute_rsrc_direct ****************** // ***************************************************************...
csr_to_vector_list.c
#include "csr_to_vector_list.h" #include "../../fcl_random.h" #include "../../vector/common/common_vector_math.h" #include "../../vector/sparse/sparse_vector_math.h" #include <string.h> #include <math.h> void create_vector_list_random(struct csr_matrix *mtrx , struct sparse_vector* clu...
kmp_set_dispatch_buf.c
// RUN: %libomp-compile && %libomp-run 7 // RUN: %libomp-run 0 && %libomp-run -1 // RUN: %libomp-run 1 && %libomp-run 2 && %libomp-run 5 // RUN: %libomp-compile -DMY_SCHEDULE=guided && %libomp-run 7 // RUN: %libomp-run 1 && %libomp-run 2 && %libomp-run 5 // UNSUPPORTED: clang-11, clang-12, clang-13 #include <stdio.h> #...
nn_index.h
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * * THE BSD LICENSE * * Redistribution an...
GB_binop__land_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_binop__ne_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
dpbtrf.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/compute/zpbtrf.c, normal z -> d, Fri Sep 28 17:38:08 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
3d25pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
ellipticBuildContinuous.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitatio...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
perfect_number_stubs.c
/* vim: set ft=c sw=2 ts=2: */ /* perfect_number_stubs.c * code stubs for perfect number calculation in C * to be called by OCaml */ #include <stdio.h> #include <caml/alloc.h> #include <caml/memory.h> #include <caml/mlvalues.h> /** c implementation of perfect number predicate */ int is_perfect(int n) { int sum ...
GB_unop__abs_int32_int32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
GB_binop__atan2_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
bml_copy_ellblock_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_copy.h" #include "../bml_types.h" #include "bml_allocate_ellblock.h" #include "bml_copy_ellblock.h" #include "bml_types_ellblock.h" #include <assert.h> #include <complex.h> #include <stdlib.h> #include <string.h> /** Copy...
hash.c
//#if defined __INTEL_COMPILER #include <stdio.h> #define __USE_XOPEN #include <stdlib.h> #include "hash.h" #include "genmalloc/genmalloc.h" #ifdef HAVE_OPENCL #include "hashlib_kern.inc" #include "hashlib_source_kern.inc" #endif static ulong AA; static ulong BB; static ulong prime=4294967291; static uint hashtablesi...
offload_hello.c
#include <stdio.h> #include <omp.h> #include <offload.h> int main() { int nthreads, tid; int ndevices; #pragma omp parallel private(nthreads, tid) { tid = omp_get_thread_num(); printf("Hello, world! I am thread %d on host\n", tid); #pragma omp barrier if (tid == 0) { nthreads = omp...
ams.c
/*BHEADER********************************************************************** * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * Written by Ulrike Yang (yang11@llnl.gov) et al. CODE-LLNL-738-322. * This file is part of AMG. See files READ...
kernel.c
/* libkernel.c */ #ifdef __cplusplus extern "C" { #endif #include <stdio.h> /* interface */ int hello(void); double dasum(double *, size_t); double pdasum(double *, size_t); void dvdump(double *, size_t); /* implementation */ int hello (void) { return 0; } double dasum(double * a, size_t n) { double sum = .0; ...
fast_ts_map.h
#ifndef _FAST_TS_MAP_H_ #define _FAST_TS_MAP_H_ #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #define NULL_KEY 0 struct entry { uint64_t key; bool val; } ; struct fast_ts_map { entry* arr; uint64_t capacity; } ; void init_map(fast_ts_map* map, uint64_t init_size) { map->arr ...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #...
GB_unop__cos_fc64_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
cfunc.c
#include <stdio.h> #include <math.h> #include <omp.h> int square(int x) { return x*x; } float rms(int* arr, int n) { int square = 0; float mean = 0.0, root = 0.0; // Calculate square. int i; for (i = 0; i < n; i++) { square += arr[i]*arr[i]; } // Calculate Mean. ...
member_function_wrapper.h
#ifndef UTIL_MEMBER_FUNCTION_WRAPPER_H #define UTIL_MEMBER_FUNCTION_WRAPPER_H #include "check_member.h" template<typename T> std::common_type_t<T, double> at(const double function, const arma::Col<T> & position) { return std::common_type_t<T, double>{function}; } template<typename ...
omptl_algorithm_par.h
// Copyright (C) 2006-2011 Fokko Beekhof // Email contact: Fokko.Beekhof@unige.ch // The OMPTL library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at you...
main_spmv.c
#include"common.h" #include"mmio_highlevel.h" #include"utils.h" #include "encode.h" # define INDEX_DATA_TYPE unsigned char //# define VAL_DATA_TYPE double typedef struct { MAT_VAL_TYPE *value; int *columnindex; MAT_PTR_TYPE *rowpointer; }SMatrix; int main(int argc, char ** argv) { if (argc < 2) { ...
kode.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int T; void write_output(char fname[], double** arr, int n ){ FILE *f = fopen(fname, "w"); for( int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ fprintf(f, "%0.12f ", arr[i][j]); } fprintf(f, "\n"); } fclose(f); } void cro...
map_thread.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "uimpl.h" void map(struct mapcont *mc) { if ( mc->mtype == MT1 ) { const uint32_t (*fun4)(uint32_t) = mc->fun; int i; #pragma omp parallel for for (i = 0; i < mc->param->size; ++i) { *(((ui...
target_enter_data_map_messages.c
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s -Wuninitialized // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - -x c++ %s -Wuninitialized // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp-simd -ferror-limit 10...
DRB010-lastprivatemissing-var-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
3d7pt.c
/* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b) ...
image.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/image.c" #else #undef MAX #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) ) #undef MIN #define MIN(a,b) ( ((a)<(b)) ? (a) : (b) ) #undef TAPI #define TAPI __declspec(dllimport) #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #undef temp_t #if defined(TH_...
rose_functionCall.c
//! Contributed by Jeff Keasler #include <omp.h> typedef double real8; extern void OtherFunc(int k,real8 *l,real8 *m,real8 *n,real8 *o,real8 *p,real8 q,real8 r,real8 s[3]); void foo(int istart,int iend,real8 *a,real8 *b,real8 *c,int k,real8 *l,real8 *m,real8 *n,real8 *o,real8 *p) { for (int i = istart; i <= iend - ...
ballAlg.c
#include "ballAlg.h" #include "../lib/genPoints.h" #include "../lib/msort.h" #include "pointArith.h" #include <omp.h> #include <stdio.h> #include <stdlib.h> int nDims; long nNodes = 0; int main(int argc, char *argv[]) { long nPoints; Node head; double **points = getPoints(argc, argv, &nDims, &nPoints); double...
omp_sections.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> void funcA(); void funcB(); int main() { #pragma omp parallel { #pragma omp sections { #pragma omp section (void) funcA(); #pragma omp section (void) funcB(); } /*-- End of sections block --*/ } /*-- End of parallel regio...
HDF5Dumper_MPI.h
/* * HDF5Dumper_MPI.h * Cubism * * Created by Babak Hejazialhosseini on 5/24/09. * Copyright 2009 CSE Lab, ETH Zurich. All rights reserved. * */ #pragma once #include <cassert> #include <cstdio> #include <iostream> #include <vector> #include <string> #include <sstream> #include <mpi.h> #include "HDF5Dumpe...
mish_kernel_ref_uint8.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
embedded_skin_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Ruben Zorrilla // #if !define...
displacement_contact_criteria.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
bli_dotv_opt_var1.c
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributi...
5229.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <...
omp_task_red_taskloop.c
// RUN: %libomp-compile-and-run // Parsing error until gcc8: // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8 // Parsing error until clang11: // UNSUPPORTED: clang-10, clang-9, clang-8, clang-7 // Missing GOMP_taskgroup_reduction_(un)register in LLVM/OpenMP // Should be removed once the functions are implemented //...
grid.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // // See the LICENSE file distrib...
ompTaskSpawn.h
#include <stdint.h> #ifdef _OPENMP #include <omp.h> #endif static void ompTaskSpawn(int64_t trials, int64_t numTasks) { int i, j; #ifdef _OPENMP omp_set_num_threads(numTasks); #endif for (i=0; i<trials; i++) { #ifdef _OPENMP #pragma omp parallel for #endif for (j=0; j<numTasks; j++) { } ...
openmp_demo.c
//------------------------------------------------------------------------------ // GraphBLAS/Demo/Program/openmp_demo: example of user multithreading //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
GB_unop__identity_uint16_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
smg2_setup_rap.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
acado_solver.c
/* * This file was auto-generated using the ACADO Toolkit. * * While ACADO Toolkit is free software released under the terms of * the GNU Lesser General Public License (LGPL), the generated code * as such remains the property of the user who used ACADO Toolkit * to generate this code. In partic...
conv_kernel_ref.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
GB_unaryop__minv_uint8_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
rawMD5flat_fmt_plug.c
/* * Raw-MD5 "flat intrinsics" experimental format * * This software is Copyright (c) 2011-2015 magnum, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, are permitted. * */ #include "arch.h" #if US...
gt_fm.c
/* * PROJECT: GEM-Tools library * FILE: gt_fm.c * DATE: 01/02/2013 * AUTHOR(S): Santiago Marco-Sola <santiagomsola@gmail.com> * DESCRIPTION: * TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO * 1.- madvise() / readahead() / posix_fadvise() */ #include "gt_fm.h" #if...
nvptx_target_printf_codegen.c
// Test target codegen - host bc file has to be created first. // RUN: %clang_cc1 -verify -fopenmp -x c -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -verify -fopenmp -x c -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cud...
atomic_write_codegen.c
// RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -target-cpu core2 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -emit-pch -o %t %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c -tri...
mhpTest9.c
int main() { int x = 1; #pragma omp parallel { int p; if (0) { while (0) { #pragma omp atomic read p = x; } } else { #pragma omp atomic write x = 0; } } }
ptree.h
#ifndef EXE_UTIL_PTREE_H #define EXE_UTIL_PTREE_H #include <armadillo> #include <boost/property_tree/ptree.hpp> #include <quartz> namespace quartz { namespace util { namespace ptree = boost::property_tree; template<typename T> struct std_string_id_translater { typedef T internal_type; typedef T external_type; ...
newImageIdeaOMP.c
#include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <omp.h> #include "ppm.h" #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) // Image from: // http://7-themes.com/6971875-funny-flowers-pictures.html typedef struct { float red,green,blue; } AccuratePixel...
simulation_context_base.h
// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notic...
GB_unop__asinh_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
nowait.c
#include <stdio.h> #include <omp.h> #define N 1000 #define CHUNKSIZE 100 int main(int argc, char *argv[]) { int i, chunk; float a[N], b[N], c[N]; /* Some initializations */ for (i = 0; i < N; i++) { a[i] = b[i] = i; } chunk = CHUNKSIZE; for (i = 0; i < N; i++) { pr...
ah5.c
/******************************************************************************* * Copyright (c) 2013-2014, Julien Bigot - CEA (julien.bigot@cea.fr) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
convolution_1x1_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
boson_basis_core.h
#ifndef _BOSON_BASIS_CORE_H #define _BOSON_BASIS_CORE_H #include <complex> #include <cmath> #include "general_basis_core.h" #include "numpy/ndarraytypes.h" #include "openmp.h" namespace basis_general { template<class I> I inline boson_map_bits(I s,const int map[],const I M[],const int sps,const int N){ I ss = 0; ...
GB_unop__identity_int16_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
DenseSegment.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
opencl_office2013_fmt_plug.c
/* MS Office 2013 cracker patch for JtR. Hacked together during March of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com> * * This OpenCL format by magnum. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com> * and Copyright (c) 2012, magnum and it is hereby released to the general ...
GB_binop__max_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
GB_binop__second_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
first_implementation.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #define BUFF_SIZE 50 #define MAXSIZE 100 #define MAXLINE 50 #define N_EXEC 100 //number of parallel executed k_means algorithms #define N_FOLD 10 //number of folds for cross validation #define K_MAX 10 //max...
zgetrf.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
GB_unaryop__minv_uint16_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
Sphere.h
#ifndef SPHERE_HEADER #define SPHERE_HEADER #include "basic.h" #include <MiscLib/Vector.h> #include <stdexcept> #include <GfxTL/HyperplaneCoordinateSystem.h> #include <utility> #include "PointCloud.h" #include <ostream> #include <istream> #include <stdio.h> #include <utility> #include <MiscLib/NoShrinkVecto...
convolutiondepthwise_5x5.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
pr66199-1.c
/* PR middle-end/66199 */ /* { dg-do run } */ int u[1024], v[1024], w[1024]; __attribute__((noinline, noclone)) long f1 (long a, long b) { long d; #pragma omp parallel for simd default(none) firstprivate (a, b) shared(u, v, w) for (d = a; d < b; d++) u[d] = v[d] + w[d]; return d; } __attribute__((noinlin...
testcase_1.c
int *var=6; struct mystruct *ms=&var; int auto, static, inline; extern void *k; int p; int p; int p; int *hh(char *p); int main(int b) { int auto=2,b=3,c; c=auto+b; printf("%d",c); struct player { int a; double c; }; int *jj=&auto; System.out.print("java here"); char echo[3]="bash here"; myprintf("...
GB_binop__rdiv_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
A1_4.c
// gcc -std=c99 -Wall -lm -fopenmp -o go A1_4.c #include <stdio.h> #include <omp.h> #include <stdlib.h> #include <time.h> void display(int, int *); void swap(int *, int *); unsigned long long tick(void) { unsigned long long d; __asm__ __volatile__("rdtsc": "=A"(d)); return d; } int main(int argc, char *...
2.parallel.c
#include <stdlib.h> #include <stdio.h> #include "omp.h" #define N 25 /* Q1: Is the code printing what you expected? Is it executing */ /* in parallel? What is wrong with it? */ /* Q2: Add a directive to make its execution correct. */ /* Q3: What would happen if you...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
omp_mpi.c
/********************************************************************** *** NAME : Bo Cimino *** *** CLASS : CSc 318 *** *** DUE DATE : 04/28/2014 *** *** INSTRUCTUOR : GAMRADT ...
GB_unaryop__abs_uint64_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
stats.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "base.h" #include "stats.h" #include "sptensor.h" #include "ftensor.h" #include "csf.h" #include "io.h" #include "reorder.h" #include "uti...
GB_unop__trunc_fp32_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "dark_cuda.h" #include "box.h" #include "http_stream.h" #include <stdio.h> #include <stdlib.h> #include <string.h> extern int check_mistakes; #define NUMCHARS 37 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { ...
GB_unaryop__abs_bool_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
d2d_memcpy.c
// RUN: %libomptarget-compile-generic && env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | %fcheck-generic -allow-empty #include <assert.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> const int magic_num = 7; int main(int argc, char *argv[]) { const int N = 128; const int num_devices = omp_get_...
GB_binop__bclr_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...