source stringlengths 3 92 | c stringlengths 26 2.25M |
|---|---|
vednnActivationBackward.c | #include "vednnActivationBackward.h"
#include "vednn-def.h"
#include <stdio.h>
#include <stdint.h>
static inline vednnError_t
vednnActivationBackward_wrapper( vednnActivationBackward_t pFunc,
VEDNN_ACTIVATIONBKW_ARGS )
{
#ifndef VEDNN_USE_OPENMP
return pFunc(VEDNN_ACTIVATIONBKW_ARGS_LIST);
#else
if ( __vedn... |
util.h | #ifndef CORE_UTIL_H_
#define CORE_UTIL_H_
#include <math.h>
#include <omp.h>
#include <cstdio>
// For GCC
#ifndef __host__
#define __host__
#endif
#ifndef __device__
#define __device__
#endif
// From
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#atomic-functions
// With help from https://stacko... |
condense.c | /* Copyright 2014-2018 The PySCF Developers. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requi... |
core_ctradd.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/core_blas/core_ztradd.c, normal z -> c, Fri Sep 28 17:38:23 2018
*
**/
#include <plasma_core_blas.h>
#include "pla... |
primes.c | /*
* primes.c: Example of prime numbers counting in OpenMP.
*
* (C) 2015 Mikhail Kurnosov <mkurnosov@gmail.com>
*/
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include <omp.h>
const int a = 1;
const int b = 10000000;
double wtime()
{
struct timeval t;
gettimeofday(&t, NULL);
return (dou... |
GB_binop__iseq_int16.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http:... |
mxnet_op.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 ... |
GB_unop__creal_fp32_fc32.c | //------------------------------------------------------------------------------
// GB_unop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://... |
TempArray.h | #ifndef _TEMPARRAY_H
#define _TEMPARRAY_H
#include <iostream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <vector>
#include "Border.h"
#define MAX_NBR_AXIS 3
#define TA_MIN_SIZE_FOR_MEM_ALLOC_CALL 50000
#undef _USEMEM
#define _USEMEM 0
#ifdef _USEMEM
#include "Memory.h"
#endif
#define CHECK_DI... |
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
//
//===---------------------------... |
GB_unaryop__identity_int32_int16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
nest.c | #include<stdio.h>
#include<omp.h>
// DOESN'T WORK!!
int main(int argc, char *argv[]){
int nThreads = 4;
omp_set_num_threads(nThreads);
omp_set_nested(1);
int n = 0;
scanf("%d", &n);
#pragma omp parallel
{
#pragma omp for
for(int i = 0; i < n; i++){
#pragma omp for
for(int j = 0; j < n; j++){
p... |
second_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... |
GB_unop__identity_fc64_int32.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... |
do_sum_omp_wbittrunc.c | typedef unsigned int uint;
double bittruncate(double sum, uint nbits);
double do_sum_omp_wbittrunc(double* restrict var, long ncells, uint nbits)
{
// Serial sum
double sum = 0.0;
#pragma omp parallel for reduction(+: sum)
for (long i = 0; i < ncells; i++){
sum += var[i];
}
sum = bittruncate(sum,... |
sp-wrongSVE.c | typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
typedef long long __int64_t;
typedef unsigned long long __uint64_t;
typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
... |
ccsd_grad.c | /*
* Author: Qiming Sun <osirpt.sun@gmail.com>
*
*/
#include <stdlib.h>
#include <string.h>
//#include <omp.h>
#include "config.h"
#include "vhf/fblas.h"
#include "ao2mo/nr_ao2mo.h"
#define OUTPUTIJ 1
#define INPUT_IJ 2
/*
* a = reduce(numpy.dot, (mo_coeff, vin, mo_coeff.T))
* numpy.tril(a + a.T)
... |
lowp_basic.c | #include <string.h>
#include <math.h>
#include "../thnets.h"
THFloatTensor *THLowpTensor_newFromFloatTensor(THFloatTensor *t)
{
THFloatTensor *n = malloc(sizeof(*n));
memcpy(n, t, sizeof(*n));
if(t->storage)
{
n->storage = malloc(sizeof(*n->storage));
n->storage->nref = 1;
n->storage->mustfree = ... |
wrongPercolation.c | #include<stdio.h>
#include<omp.h>
int main() {
int shared = 42;
int shared2 = 42;
#pragma omp parallel
{
if (omp_get_thread_num() == 0) {
while (1) {
#pragma omp barrier
if (shared2 > 23) {
#pragma omp atomic write
shared = 10;
break;
}
#pragma omp atomic write
shared = 0;
}
} else {
... |
GenerateICs.c | #include <math.h>
#include <unistd.h>
#include <stdio.h>
#include <stdbool.h>
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
//#include <pthread.h>
#include <omp.h>
#include <complex.h>
#include <fftw3.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_rng.h>... |
test12.c | int x = 0;
void foo() {
if (1) {
return;
} else {
return;
}
}
int main(int argc, char * argv[]) {
do {
} while (2);
x++;
int i;
for (i = 0; i < 10; i++) {
}
// foo();
// return;
// int i;
// i = 10;
//#pragma omp master
// {
// int i;
// i++;
// }
// foo();
// l1: l2: 55+i;
// 50+3;
//#pragma omp for
/... |
deconvolution_3x3.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 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 ... |
gems2.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/***************************************************************/
#include <omp.h>
void ** ompx_calloc(size_t bytes)
{
int np = omp_get_max_threads();
void ** ptrs = malloc(np*sizeof(void*));
#pragma omp parallel shared(ptrs)
{
int me = omp_get_thre... |
Stmt.h | //===- Stmt.h - Classes for representing statements -------------*- 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
//
//===---------------------------... |
pr83977-3.c | /* PR middle-end/83977 */
/* { dg-do compile } */
void bar (void);
int foo (int, int) __attribute__((used));
#pragma omp declare simd uniform (b) linear(a:b)
int
foo (int a, int b)
{
a = a + 1;
/* This function can't be called from simd loops,
because it violates declare simd restrictions.
We shouldn't ICE on... |
pr25996.c | /* PR c/25996 */
void
test1 (void)
{
#pragma omp for
for (i = 0; i < 1; ++i); /* { dg-error "undeclared|for each function" } */
}
void
test2 (void)
{
int i;
#pragma omp for
for (i = j; i < 1; ++i); /* { dg-error "undeclared" } */
}
void
test3 (void)
{
int i;
#pragma omp for
for (i = 0; i < j; ++i); /* { dg... |
omp_nested.c | // RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
/*
* Test if the compiler supports nested parallelism
* By Chunhua Liao, University of Houston
* Oct. 2005
*/
int test_omp_nested()
{
#ifdef _OPENMP
if (omp_get_max_threads() > 4)
omp_set_num_threads(4);
if (omp_get_max_threads()... |
mlp_mpi_ovlp_example_f32.c | /******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
GB_subassign_17.c | //------------------------------------------------------------------------------
// GB_subassign_17: C(I,J)<!M,repl> = scalar ; using S
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identi... |
2d_simple_v2.c | #include <stdlib.h>
#include <omp.h>
int main()
{
int* data = malloc(sizeof(int));
int** arr = malloc(sizeof(int*));
arr[0] = data;
#pragma omp parallel
{
arr[0][0] = 42;
printf("%d\n", arr[0][0]);
}
free(data);
free(arr);
}
|
GB_unaryop__abs_int8_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... |
symgs.c | //------------------------------------------------------------------------------------------------------------------------------
// Samuel Williams
// SWWilliams@lbl.gov
// Lawrence Berkeley National Lab
//------------------------------------------------------------------------------------------------------------------... |
main.c | /*
* Author: Wojciech Graj
* License: MIT
* Description: A raytracer in C
* Libraries used:
* cJSON (https://github.com/DaveGamble/cJSON)
* SimplexNoise (https://github.com/SRombauts/SimplexNoise)
* Setting macros:
* MULTITHREADING - enables multithreading
* UNBOUND_OBJECTS - allows for unbound objects such as plane... |
layout.h | //
// layout.h
// forcelayout.cc
//
// Created by Andrei Kashcha on 5/30/16.
// Copyright (c) 2015 Andrei Kashcha. All rights reserved.
//
#ifndef __layout__
#define __layout__
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <numeric>
#include "nangraph.cc/graph.h"
#include "random.cc/ra... |
task_nested_omp.c | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* See LICENSE.txt in top-level directory.
*/
#include <assert.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define NUM_TASKS 50000
#define NUM_REPS 1
int o = 0;
void sscal(float value, float *a)
{
... |
bfs_replicated_csc.c | /* Copyright (C) 2010 The Trustees of Indiana University. */
/* */
/* Use, modification and distribution is subject to the Boost Software */
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
/* http:... |
graph_tool.h | #ifndef _GRAPH_TOOL_H
#define _GRAPH_TOOL_H
#include <omp.h>
#include <iostream>
#include <map>
#include <memory>
#include <vector>
#include <fstream>
#include <algorithm>
#include <sstream>
#include <limits>
#include <cstdint>
namespace apsara {
namespace odps {
namespace graph {
namespace query {
template <typenam... |
omp_sort.h | #ifndef OMP_SORT_PP_CLASS_H
#define OMP_SORT_PP_CLASS_H
#include "pch.h"
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <omp.h>
#include <math.h>
#define MAX(A, B) (((A) > (B)) ? (A) : (B))
#define MIN(A, B) (((A) > (B)) ? (B) : (A))
#define UP 0
#define DOWN 1
#define VERBOSE 0
int omp_bubble_s... |
mxnet_op.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 ... |
kmp_glt_csupport.c | /*
* kmp_abt_csupport.c -- kfront linkage support for OpenMP.
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICE... |
b_numbers.c | #include <stdio.h>
#include <stdlib.h>
#include <omp.h>
void print_array(int **a, const int length)
{
for (int y = 0; y < length; y++)
{
for (int x = 0; x < length; x++)
{
printf("%d ", a[y][x]);
}
printf("\n");
}
printf("\n");
}
int main(const int argc, const char *argv[])
{
if (argc < 3)
{
printf... |
direct_nbody.h |
void direct_nbody(
const void *krnl_param, kernel_eval_fptr krnl_eval, const int pt_dim, const int krnl_dim,
const DTYPE *src_coord, const int src_coord_ld, const int n_src_pt, const DTYPE *src_val,
const DTYPE *dst_coord, const int dst_coord_ld, const int n_dst_pt, DTYPE *dst_val
)
{
const int... |
ten_tusscher_2004_epi_S3_9.c | //Original Ten Tusscher
#include <assert.h>
#include <stdlib.h>
#include "ten_tusscher_2004_epi_S3_9.h"
GET_CELL_MODEL_DATA(init_cell_model_data) {
assert(cell_model);
if(get_initial_v)
cell_model->initial_v = INITIAL_V;
if(get_neq)
cell_model->number_of_ode_equations = NEQ;
}
//TODO:... |
tilecorr.h | void tilecorr()
{
int c0,c1,c2,c3,c5,c6,c7,c9,c11,c10,c4,c12;
for( c1 = 1; c1 < N + floord(N - 2, 128); c1 += 1)
#pragma omp parallel for schedule(dynamic, 1)
for( c3 = max(0, -N + c1 + 1); c3 <= (c1 - 1) / 129; c3 += 1)
for( c4 = 0; c4 <= 1; c4 += 1) {
if (c4 == 1) {
for( c9 = N - c1 + 129 * c3... |
GB_subassign_05.c | //------------------------------------------------------------------------------
// GB_subassign_05: C(I,J)<M> = scalar ; no S
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://suitesparse.com See... |
test.c |
#include <stdio.h>
#include <omp.h>
#include "../utilities/check.h"
#include "../utilities/utilities.h"
#define TRIALS (1)
#define N (1024*3)
#define M (16*32)
#define INIT() INIT_LOOP(N, {C[i] = 1; D[i] = i; E[i] = -i;})
#define ZERO(X) ZERO_ARRAY(N, X)
double A[M][N], B[M][N], C[N], D[N], E[N];
double S[M];
d... |
kernel_cpu.c | // #ifdef __cplusplus
// extern "C" {
// #endif
//========================================================================================================================================================================================================200
// DEFINE/INCLUDE
//=============================================... |
2.norace6.c | // RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s
#include <omp.h>
#define N 200
int main() {
int A[N], x = 0;
#pragma omp simd linear(x : 2)
for (int i = 0; i < N; i++)
A[i] = x;
}
// CHECK: Region is Data Race Free.
// END
|
GeneralMatrixMatrix.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
ab-totient-omp-10.c | // Distributed and parallel technologies, Andrew Beveridge, 03/03/2014
// To Compile: gcc -Wall -O -o ab-totient-omp -fopenmp ab-totient-omp.c
// To Run / Time: /usr/bin/time -v ./ab-totient-omp range_start range_end
#include <stdio.h>
#include <omp.h>
/* When input is a prime number, the totient is simply the prim... |
GB_unop__acosh_fc32_fc32.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_unaryop__identity_uint8_uint8.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http... |
_phonopy.c | /* Copyright (C) 2011 Atsushi Togo */
/* All rights reserved. */
/* This file is part of phonopy. */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* * Redistributions of source code must retain the abo... |
GB_unaryop__lnot_fp32_int16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
GB_unop__identity_bool_int8.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__max_int64.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX... |
GrB_Vector_wait.c | //------------------------------------------------------------------------------
// GrB_Vector_wait: wait for a vector to complete
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identifier:... |
elu_kernel_arm.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... |
Helm3d_27pt.h | #include "math.h"
#include <complex.h>
#ifdef SINGLE_PRECISION
#define numeric float;
#else
#define numeric double;
#endif
typedef double _Complex cmplx_type;
#ifdef WNCMPLX
typedef cmplx_type wn_type;
#else
typedef double wn_type;
#endif
#define PI M_PI
#define CMPLX(x, y) ((double complex)((double)(x) + _Complex... |
dof_updater.h | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Jordi Cotela
//
#if !defined(... |
GB_binop__pow_int8.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http:... |
farfield.c | #include <stdlib.h>
#include <complex.h>
#include <math.h>
#include <string.h>
#include "fastsphere.h"
#include "farfield.h"
#include "util.h"
/* Compute the required order of the root sphere. */
int rootorder (spscat *slist, int nsph, complex double bgk, int ndig) {
int i, l;
double rad = 0.0, clen;
for (i = 0; ... |
segment.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
mm_funcs.c | /*
* Rectangular matrix multiplication, started from MIT Cilk matmul.cilk example
*
*/
#include "benchmark.h"
//#include "mkl.h"
#include "mkl_types.h"
#include "mkl_cblas.h"
void zero(REAL *A, int n)
{
int i, j;
//#pragma omp for private (i, j)
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
... |
prolong_mex.c | #include <inttypes.h>
#include <omp.h>
#include "mex.h"
#include "prolong_mex.h"
void prolongf(float *x,
const float *x2, const uint8_t *G,
const size_t *sz, const size_t *sz2);
void prolongd(double *x,
const double *x2, const uint8_t *G,
const size_t *sz, cons... |
GB_unop__identity_uint32_int16.c | //------------------------------------------------------------------------------
// GB_unop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://... |
Jacobi1D-DiamondByHand-OMP_dyn.test.c | /******************************************************************************
* Jacobi1D benchmark
* Tiled using diamond slabs coded by hand
*
* Usage:
* make omp
* export OMP_NUM_THREADS=8
* bin/Jacobi1D-DiamondSlabByHand-OMP \
* `cat src/Jacobi1D-DiamondSlabByHand-OMP.perfexecopts`
* For a run on 8 threads... |
sxc_fmt_plug.c | /* SXC cracker patch for JtR. Hacked together during Summer of 2012 by
* Dhiru Kholia <dhiru.kholia at gmail.com>.
*
* This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>,
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and b... |
nodal_two_step_v_p_strategy_for_FSI.h | //
// Project Name: KratosPFEMFluidDynamicsApplication $
// Last modified by: $Author: AFranci $
// Date: $Date: June 2018 $
// Revision: $Revision: 0.0 $
//
//
#ifndef KRATOS_NODAL_TWO_STEP_V_P_STRATEGY_FOR_FSI_H
#defi... |
perSentenceStats.h | /**
* @author Samuel Larkin
* @file eval/perSentenceStats.h
* @brief A scoring metric wrap to perform on sentence level scoring.
*
*
* Technologies langagieres interactives / Interactive Language Technologies
* Inst. de technologie de l'information / Institute for Information Technology
* Conseil national de re... |
jacobi-omp.c | #include <stdio.h>
#include <math.h>
#ifdef _OPENMP
#include <omp.h>
#endif
// Add timing support
#include <sys/time.h>
double time_stamp()
{
struct timeval t;
double time;
gettimeofday(&t, NULL);
time = t.tv_sec + 1.0e-6*t.tv_usec;
return time;
}
double time1, time2;
void driver(void);
void initialize(voi... |
kernel_exp.c | /*! @copyright (c) 2017 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @generate NDIM -> n 1 2 3 4
* Generate different functions fo... |
fourier.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
serialized.c | // RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc
// Compilation fails for icc
// XFAIL: icc
#include "callback.h"
int main() {
#pragma omp target teams num_teams(1) thread_limit(1)
#pragma omp parallel num_threads(1)
{ printf("In teams\n"); }
return 0;
}
// CHECK: 0: NULL_POIN... |
flatsky_utils.c | #include "config.h"
#include "utils.h"
#include <fitsio.h>
void *dftw_malloc(size_t n)
{
#ifdef _SPREC
void *p=fftwf_malloc(n);
#else //_SPREC
void *p=fftw_malloc(n);
#endif //_SPREC
if(p==NULL)
report_error(NMT_ERROR_MEMORY,"Ran out of memory\n");
return p;
}
void dftw_free(void *p)
{
#ifdef _SPREC
fft... |
GB_unop__exp2_fc64_fc64.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... |
convolution_5x5.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 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 ... |
GB_unop__minv_bool_bool.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_unaryop__lnot_int64_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... |
implicit_blender.c | /*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
lsh_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... |
omp_reduce.c | /*
* Full CI
*/
#include <stdlib.h>
#include <complex.h>
#include "config.h"
void NPomp_dsum_reduce_inplace(double **vec, size_t count)
{
unsigned int nthreads = omp_get_num_threads();
unsigned int thread_id = omp_get_thread_num();
unsigned int bit, thread_src;
unsigned int mask = 0;... |
GB_unop__expm1_fc32_fc32.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... |
kmp_atomic.c | /*
* kmp_atomic.c -- ATOMIC implementation routines
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.txt fo... |
matfit.c | #include "matrix.h"
#include <string.h>
#define MAX_ITERS_RB 20
/** \brief Performs 2-d polynomial model fitting using least squares
*
* \param[in] A Input data column matrix
* \param[in] Y Input observation column matrix
* \param[in] deg Polynomial degree \f$ N \f$
* \param[in] result Matrix to store the result... |
GB_binop__ne_fc32.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-... |
BsplineFunctor.h | //////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: John R. G... |
ordering_op-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 ... |
convolution_3x3.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
// Copyright (C) 2019 BUG1989. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in... |
indirectaccesssharebase-orig-no.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... |
RCCE.h | //
// Copyright 2010 Intel Corporation
//
// 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 app... |
chlpca.h | /*
#
# File : chlpca.cpp
# ( C++ source file )
#
# Description : Example of use for the CImg plugin 'plugins/chlpca.h'.
# This file is a part of the CImg Library project.
# ( http://cimg.eu )
#
# Copyright : Jerome Boulanger
# ( http://www.... |
HYPRE_IJMatrix.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)
**************************************... |
TSDFVoxelGridImpl.h | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
GB_unop__identity_uint16_int64.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... |
dense.c | //
// dense.c
//
// Created by Hussian Alamri on September 2012
//
#include "dense.h"
/* Acquired from Matrix Market http://math.nist.gov/MatrixMarket/ with few modifications */
MATRIX* ReadMatrix(FILE *file) {
MM_typecode matcode;
int M, N, nz, ret_code, i, j, k;
double *val;
double ... |
tsemf_share.c | // SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2015-2018 Bernard Parent
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 notice, this list of
condit... |
GB_unaryop__lnot_int64_uint16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
TemporalMaxPooling.c | #ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/TemporalMaxPooling.c"
#else
static inline void THNN_(TemporalMaxPooling_shapeCheck)(
THNNState *state,
THTensor *input,
THTensor *gradOutput,
THIndexTensor *indic... |
transform.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.