sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
69518a03b5b8df06451f0da7243f2d5da0fe79a236c0d46efed2447fce47008e | C | 2,573 | 76 | //========================================================================
// GLFW 3.4 Win32 - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 Marcus Geelnard
// Copyright (c) 2006-2017 Camilla Löwy <[email protected]>
//
// This software is provided ... |
7a15d09d5895c032e83bfb11dc266c2a0c4b4e72ceefb8d1b8fae5b6ed0d8878 | C | 2,577 | 91 | /*==========================================================
* % Mex version to compute C*A*C'
* % Where C is the pairmatrix of K*(K-1)/2 x K size
* % This consitutes the main time sink in RSA-based computations,
* % for example for varianceLDC
* % INPUT:
* % A: KxK matrix
* %
* % OUTPUT:
* % B : K*(K-... |
2af6d3863d4e1406c3957baaa92b43115d0c9eb263169f4be8b82229bb089629 | C | 2,584 | 75 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
e9ce3bc294aecc25c93a42758e0a40b75217ef09da4910c8d4d1f0e6212c47be | C | 2,595 | 84 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
c4dd2246c4d12c4db1b3f075019f0687dc22625615dff12f77a346b418eb89ea | C | 2,605 | 94 | /*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
*
* TISEAN 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 Li... |
1bbed3490b02eca14deb40b8ba28b6c5001e66dce23204ae2b1ba0642e11e0cb | C | 2,621 | 120 | /*
* lat_rand.c - random number generation
*
* usage: lat_rand [-P <parallelism>] [-W <warmup>] [-N <repetitions>]
*
* Copyright (c) 2002 Carl Staelin. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in the ... |
69da2104a2c3635e6d40efda10071e4d675b25bc81bcdae8bfdd3e4b496a8eb6 | C | 2,623 | 110 | /*
* lat_connect.c - simple TCP connection latency test
*
* Three programs in one -
* server usage: lat_connect -s
* client usage: lat_connect [-N <repetitions>] hostname
* shutdown: lat_connect -hostname
*
* lat_connect may not be parallelized because of idiosyncracies
* with TCP connection creation. Basical... |
14bedbe5b6240216fca341182ab3297a84380cbf56341539ce6ee042bc381a3c | C | 2,734 | 86 | #include "mex.h"
#include <string.h>
/*
* Input: matrix X (NxP) for N rows and at most P indices per row
* Output: matrix Y (NxP) where each row contains the unique, positive
* indices from the corresponding row in X; if a value V occurs K times
* in a row, then it is maintained once, and replaced by zero (K-1) ... |
cb2dad66721ede733f229a35140100a2bcb36fdacb0b457b6bd06255f64a4ae5 | C | 2,734 | 120 | #include <stdio.h>
#include <stdlib.h>
#define N_ROWS 1000
#define COLUMNS_PER_PROC 2
#define NUMPROCS 32
//#define mypoints (x_space/NUMPROCS)
//#define M 0
//#define X 0
//#define N 1 // total no of files to be read;
double **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[NUMPROCS],*fp;
int rows, colu... |
bef946aad8dd26dad418074ff449ed26ce95953ef0b1878a09ac40bce8a9abda | C | 2,744 | 125 | /*
* rhttp.c - simple HTTP transaction latency test
*
* usage: rhttp hostname [port] remote-clients -p file file
*
* This turns into a bunch of
* rsh remote http hostname file file file [port]
* with the results aggragated and reported.
*
* The program "http" must be in your path on the remote machine.
*
*... |
8795735389b19806838be2bbc3aa29c67fceb3a7ed7f3b4e93c3d9cab5738b3d | C | 2,746 | 103 | /* Calculate third order autocorrelation */
/****************************************************************/
/* this source is freely distributable */
/* copyright (C) Andreas Schmitz (1997) */
/* Wuppertal University, Germany */
/******... |
04a4689c88d003e218d9b58942744bf078817ae019ba6c80adf333641aecd2a7 | C | 2,764 | 120 | #include <stdio.h>
#include <stdlib.h>
#define N_ROWS 1000
#define COLUMNS_PER_PROC 4
#define NUMPROCS 16
//#define mypoints (x_space/NUMPROCS)
//#define M 0
//#define X 0
//#define N 1 // total no of files to be read;
double **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[NUMPROCS],*fp;
int rows, colu... |
ec1e80e17e27130bf9412470e8dc9155a0dc9ca3a78125081f5073b438b54157 | C | 2,776 | 92 | /* print.c -- Print the current backtrace.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
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 ... |
4a28efa835dbaa1674c2f040c64d0f78d28e7e2c981185ba4b741616cd46f5ac | C | 2,803 | 96 | #include "Maleckar2008.h"
#include <stdlib.h>
SET_ODE_INITIAL_CONDITIONS_CPU(set_model_initial_conditions_cpu) {
log_info("Using Maleckar2008 CPU model\n");
uint32_t num_cells = solver->original_num_cells;
solver->sv = (real*)malloc(NEQ*num_cells*sizeof(real));
bool adpt = solver->adaptive;
if(... |
51415dca17bc4a348d6232d1b2dfccdc8019a98a48d2fa22fb41d6f51796aeb8 | C | 2,806 | 119 | #include<stdio.h>
#include<stdlib.h>
#define x_space 512
#define y_space 220
#define numProcs 64
#define mypoints (x_space/numProcs)
#define M 0
#define X 0
#define N 1
int **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[numProcs][10000],*p2[numProcs][10000],*fp1[10000],*fp2[10000];
int i,j,k,n,m,rank,i1... |
2fb20772580c9d7578ba993f80cc0cfbd0314e044b93389a08b58138dae0cf0f | C | 2,808 | 118 | #include<stdio.h>
#include<stdlib.h>
#define x_space 512
#define y_space 220
#define numProcs 64
#define mypoints (x_space/numProcs)
#define M 0
#define X 0
#define N 2999
double **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[numProcs][3000],*p2[numProcs][3000],*fp1[3000],*fp2[3000];
int i,j,k,n,m,rank,... |
dcb9978bd54278bb6745ac1e05b84a8a840330141e48b463d7cf30200dc43aa2 | C | 2,828 | 84 | /*
-------------------------------------------------------------------------
GATEWAY ROUTINE FOR CALLING REORTH FROM MATLAB.
REORTH Reorthogonalize a vector using iterated Gram-Schmidt
[R_NEW,NORMR_NEW,NRE] = reorth(Q,R,NORMR,INDEX,ALPHA,METHOD)
reorthogonalizes R against the subset of columns of Q give... |
860636239f1af8f204ded83b05dcdd0e60c23a60fb8ed45414eded0cd41c886a | C | 2,829 | 100 | // TODO: Describe all the variable names
#include "stewart_aslanidi_noble_2009.h"
#include <stdio.h>
SET_ODE_INITIAL_CONDITIONS_CPU(set_model_initial_conditions_cpu)
{
log_info("Using Stewart-Aslanidi-Noble 2009 CPU model\n");
uint32_t num_cells = solver->original_num_cells;
solver->sv = (real*)malloc(N... |
a3ff2e59d66f2b8b932bff3e44255e5b249bc6153386453268f9c12373fa7d08 | C | 2,842 | 135 | #include "mex.h"
#include "mexutil.h"
/*
Output calculation in time embeded space
Y = weight_out_delay_time(X,W,T,tau);
Y = W * X
Y(n,t) = sum_{m,j} W(n,m,j) * X(m,t - j*tau)
* Written by Masa-aki Sato 2008/05/01
*/
/*
% Output
(m :fix)
Y(n,t) = Y(n,t) + W(n) * X(m,t);
*/
... |
034c3d035f568ff1b3b0586ab4688a7f92623bc796f47b344da2484630540ab1 | C | 2,858 | 140 | #include "mex.h"
#include "mexutil.h"
/*
Correlation of dY and X in time embeded space
dYX = error_corr_delay(X,dY,D,tau)
dYX = dY * X';
* Written by Masa-aki Sato 2008/05/01
*/
/*
error correlation
dYX(n) = dY(n,:) * X(m,:)'; (m:fix)
Z = sum_t( Y(t) * X(t))
*/
void dyx_co... |
78e5cb044967478c5c12a18bcbed32cfa8dcdd101255526188cc325508a28009 | C | 2,862 | 120 | #include <stdio.h>
#include <stdlib.h>
#define N_ROWS 2000
#define COLUMNS_PER_PROC 8
#define NUMPROCS 16
//#define mypoints (x_space/NUMPROCS)
//#define M 0
//#define X 0
//#define N 1 // total no of files to be read;
double **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[NUMPROCS],*fp;
int rows, colu... |
73754fcfa0a5b0342e8fe32166e7228b61e022699a8a3c9a2ef8e46260736704 | C | 2,870 | 100 | /* posix.c -- POSIX file I/O routines for the backtrace library.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
(1) Redi... |
95e1bc4d8ab8b816370568ea36d172f5ea18ac02d102d26e2e5b9c011ec6f6b0 | C | 2,871 | 129 | /*
* tcp_unix.c - simple UNIX socket transaction latency test
*
* lat_unix [-P <parallelism>] [-W <warmup>] [-N <repetitions>]
*
* Copyright (c) 1994-2000 Carl Staelin and Larry McVoy.
* Distributed under the FSF GPL with additional restriction that
* results may published only if
* (1) the benchmark is unmo... |
aeea330e1cf02eb290e895dc79f6e1241451c3667acf431c8efeef119f9f7af8 | C | 2,878 | 118 | #include <assert.h>
#include <stdlib.h>
#include "ten_tusscher_2004_mixed_endo_mid_epi.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;
}
SET_ODE_INITIAL_CONDIT... |
9b7a93a00aadff0b046713a0311b3a6a44ab04d6eaad8846a9693e7bb95fd048 | C | 2,880 | 108 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
b110f72dc1a052a4a04bb3d6da4538f3b6111522eadd8a512078d2b7c37edddb | C | 2,887 | 69 | #include "build.h"
void bulkSpace() {
// ********************* Euler *************************************
if(EULER) {
dCaMCadt = (k_on_CaM * Ca_2_blk[ii] * (B_tot_CaM - CaMCa[ii]) - k_off_CaM * CaMCa[ii]);
dTnChCadt = (k_on_TnCh * Ca_2_blk[ii] * (B_tot_TnCh - TnChCa[ii]) - k_off_TnCh * TnChCa[ii]);
dSRCadt = (... |
a837e5d3e0551cf5e3a14e81f11901eaf57814e0a9bce6aa3a199a39b61cbc06 | C | 2,888 | 141 |
/******************************************************************************
*
* This file is part of meryl, a genomic k-kmer counter with nice features.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* 'Celera Assembler' r4587 (http://... |
f4588f9b440724699efb68986e2c2bed9f2b3648e226dca306f6f10f341ad0e2 | C | 2,895 | 86 | #include "courtemanche_ramirez_nattel_1998.h"
#include <stdlib.h>
SET_ODE_INITIAL_CONDITIONS_CPU(set_model_initial_conditions_cpu) {
log_info("Using courtemanche_ramirez_nattel_1998 CPU model\n");
uint32_t num_cells = solver->original_num_cells;
solver->sv = (real*)malloc(NEQ*num_cells*sizeof(real));
... |
a8c83cd0221ecda26879559592a11f24d3d4b5299d523a1333521226257942bd | C | 2,900 | 141 | #include "mex.h"
#include "mexutil.h"
/*
Correlation of dY and X in time embeded space
dYX = error_corr_delay(X,dY,D,tau)
dYX = dY * X';
* Written by Masa-aki Sato 2008/05/01
*/
/*
error correlation
dYX(n) = dY(n,:) * X(m,:)'; (m:fix)
Z = sum_t( Y(t) * X(t))
*/
void dyx_co... |
b6987de94bd67e03e047e26264354a440c75f8bf57013b659c4d3b42010babad | C | 2,901 | 90 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
3102f6293b3217d04184f743e1e8ac35120c9f65bebfa3c1696fc0c968bac14a | C | 2,946 | 116 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
47d39479e61b6495aa69c3a090915590d2b2188bb7be2e0a6cda35eef1e84768 | C | 2,951 | 63 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
3e1882a520e0e1115107e194fbd97daa8d3feef15a70047969f4976e7542c263 | C | 2,959 | 113 | /* atomic.c -- Support for atomic functions if not present.
Copyright (C) 2013-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
(1) Redistrib... |
9a0033ad985ad6339c033ccadba8f30746c3de7d5e17d33862d541a813c5153a | C | 2,967 | 115 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
0db4f65d7d50774ab83e769a6615553d71a6b0c933081750b088a801f3be9269 | C | 2,969 | 144 |
/******************************************************************************
*
* This file is part of meryl, a genomic k-kmer counter with nice features.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* 'Celera Assembler' r4587 (http://... |
552081b46ece3688e6eadcd2198fcdab3423ed7897f226cbad34ecf8193af471 | C | 2,974 | 90 | //========================================================================
// GLFW 3.4 POSIX - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 Marcus Geelnard
// Copyright (c) 2006-2017 Camilla Löwy <[email protected]>
//
// This software is provided ... |
32a672fd2b8b3395c8a16ef11d839437ca35570fbc235bb0e2e70ef8097a12fc | C | 2,988 | 100 | /* mmapio.c -- File views using mmap.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
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 ... |
41aa3bcfdd628a54c8e7c330ce4457d9290eedfa9b8ce34c1d2681fff7d55f46 | C | 3,035 | 155 | /*
* lat_pipe.c - pipe transaction test
*
* usage: lat_pipe [-P <parallelism>] [-W <warmup>] [-N <repetitions>]
*
* Copyright (c) 1994 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in the sccs... |
b747b8713182d71a617f9425508b95c59e2ec68faaaebd8631d6b0afe16288dd | C | 3,041 | 69 | #include "build.h"
void bulkSpace() {
// ********************* Euler *************************************
if(EULER) {
dCaMCadt = (k_on_CaM * Ca_2_blk[indx] * (B_tot_CaM - CaMCa[indx]) - k_off_CaM * CaMCa[indx]);
dTnChCadt = (k_on_TnCh * Ca_2_blk[indx] * (B_tot_TnCh - TnChCa[indx]) - k_off_TnCh * TnChCa[indx]);
... |
990f939fac97169b06f1334f6d12f19551aade05ef339ab3e8c1ba7847ee5b42 | C | 3,055 | 125 | /*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
*
* TISEAN 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 Li... |
ae46aac7f29323fe4abff52359d91928d40a970de764e423fc9a596c66c2a7f2 | C | 3,059 | 139 | #include "mex.h"
#include "mexutil.h"
/*
Output calculation in time embeded space
Y = weight_out_delay_time(X,W,T,tau);
Y = W * X
Y(n,t) = sum_{m,j} W(n,m,j) * X(m,t - j*tau)
* Written by Masa-aki Sato 2008/05/01
*/
/*
% Output
(m :fix)
Y(n,t) = Y(n,t) + W(n) * X(m,t);
*/
... |
bfcf46ec77e063006f340025e23ec3d106cbf94f0c846e5e6be8eec99f7ec59a | C | 3,069 | 154 | #include "mex.h"
#include "mexutil.h"
/*
error calculation in time embeded space
dY = dY - W * X
* Written by Masa-aki Sato 2008/05/01
*/
/*
copy data
*/
void copy_data(double *x, double *y, int t)
{
double *yt, *xt;
int j;
yt = y;
xt = x;
for (j=0; j<t; j++) {
... |
7bf84b547de3d1a6b404d51170c0e75394cb356e53dd76261ac887ddeb3a095c | C | 3,091 | 123 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
c56ac250279954def68f4a229b9dc0e8a979ad08b0470e4c2b3e717359092c23 | C | 3,093 | 117 | /* lsame.f -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the en... |
7c16a0ae4ffb60bc245ac3ab07b5cf2c95d8604b34e2f74d5448cfce77c30576 | C | 3,111 | 155 | #include "mex.h"
#include "mexutil.h"
/*
error calculation in time embeded space
dY = dY - W * X
* Written by Masa-aki Sato 2008/05/01
*/
/*
copy data
*/
void copy_data(double *x, double *y, int t)
{
double *yt, *xt;
int j;
yt = y;
xt = x;
for (j=0; j<t; j++) {
... |
a61b65bfecff9647a06a8ab1de153a51628eaffade08d38509d7917abd76eb57 | C | 3,111 | 119 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
b8681f347d31ee229407c7cc482d03e7afee6503275697392b4b4dd28ec477e4 | C | 3,117 | 162 | /*
* lat_sem.c - semaphore test
*
* usage: lat_sem [-P <parallelism>] [-W <warmup>] [-N <repetitions>]
*
* Copyright (c) 2000 Carl Staelin.
* Copyright (c) 1994 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* ... |
a676559c7fd06e9ed72d345bc688a4d7e681a83594908583b4b64b817bd53814 | C | 3,139 | 117 | //
// Created by sachetto on 22/10/17.
//
#include "config_helpers.h"
#include "../3dparty/stb_ds.h"
#include "../logger/logger.h"
#include <stdlib.h>
void report_error_on_function(int line, const char * file, const char *error) {
log_error_and_exit("Error on line %d of file %s: %s.\n", line, file, error);
}
voi... |
a8e274a608f69f3af0139eff9c6013718441e7e42fcc93232477f1a015c3855b | C | 3,142 | 147 | /* Author: Rainer Hegger. Last modified: January 24th, 1998 */
#define __RANDOM
#ifndef _STDLIB_H
#include <stdlib.h>
#endif
#ifndef _LIMITS_H
#include <limits.h>
#endif
#ifndef _MATH_H
#include <math.h>
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* should have been in math.h */
#endif
stati... |
fed62f6ca8ca112c9902026d50acc62c48dc4b2a5de31cc4a3687a4e5459ed7b | C | 3,152 | 128 | #include <stdio.h>
#include <stdlib.h>
#define x_space 64
#define y_space 1
#define numProcs 16
#define mypoints (x_space/numProcs)
#define M 0
#define X 0
#define N 1 // total no of files to be read;
double **allocate_2d_array(int x, int y);
int main()
{
FILE *p1[numProcs][1600],*p2[numProcs][1600],*fp1[1600],*f... |
1a1e44af4e4d02fc568b318aa1517792edd6972a27029ba78e938856ef8ba1a0 | C | 3,175 | 108 | /* sort.c -- Sort without allocating memory
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
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... |
686d976c2bdb1a074f9be05af026d4b4c7a4978c2602268747d492563f18e0dc | C | 3,186 | 108 | /* simple.c -- The backtrace_simple function.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
(1) Redistributions of sour... |
6a5f1c4a7ca8fbc322b9c9645449faa345ac0e00eddd2669f8b51a120bfb3658 | C | 3,194 | 134 | /*=================================================================
*
* NEAREST.C .MEX file corresponding to NEAREST.M
* returns the index vector of nearest neighbours to
* each embedded point in x
*
* The calling syntax is:
*
* [ind] = nearest(X,tau)
*
*
* This is a MEX-file for MATLA... |
6024f28580836ef3a481a98bc15077b6d2193098dda1e1652de99e2f91e43184 | C | 3,196 | 99 | //========================================================================
// GLFW 3.4 Win32 - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 Marcus Geelnard
// Copyright (c) 2006-2017 Camilla Löwy <[email protected]>
//
// This software is provided ... |
17080eef7c4f8eea7da391cba1ff7619a2acadbd09a4361746d8a47f27e7b4d5 | C | 3,201 | 130 | #include "bench.h"
#include "lib_debug.h"
/*
* return micro-seconds / iteration at the the fraction point.
*
* some examples:
* min = percent_point(values, size, 0.0)
* 1st quartile = percent_point(values, size, 0.25)
* median = percent_point(values, size, 0.5)
* 3rd quartile = percent_point(values, size, 0.... |
e58ed4e63395286730c9615210d6db652d1e1070adf51a02924a8fb95ca840a4 | C | 3,205 | 126 | /*
* @file
*
* Laplacian of Gaussian based object finder.
*
* Hazen 3/09
*
* Linux:
* gcc -fPIC -g -c -Wall LOGCounter.c
* gcc -shared -Wl,-soname,LOGCounter.so.1 -o LOGCounter.so.1.0.1 LOGCounter.o -lc
*
* Windows:
* gcc -c LOGCounter.c
* gcc -shared -o LOGCounter.dll LOGCounter.o
*
*... |
ff2c2d69655b87f3b56106c0b2d4870f043cbe22dba8b6f45e262910538169c0 | C | 3,208 | 110 | /*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
*
* TISEAN 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 Li... |
f196d7ce8d7e16f15af3bc53e03d2353b1136c16855b068b54d73a99102cccbb | C | 3,213 | 116 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
1cdafe17f191bc22d09d4e30a26b5e462ea7dddf376dcab602373456d71000df | C | 3,222 | 121 | /*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
*
* TISEAN 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 Li... |
ae3373ab3496b69888fad20e23f58367219fafd1fc14c594218314f5a6e7a155 | C | 3,252 | 119 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
b835b9fb575db85ba2539a457571886ab90e74bf461b6628e2a8fbabb77799e4 | C | 3,273 | 154 | /*
* Copyright (c) 1997 L.W.McVoy
*
* SGI's fucking getopt doesn't follow GNU's reset policy. Isn't having
* N versions of Unix a great thing for the world? I'm gonna move to NT
* if these assholes don't get their act together.
*
* This version handles
*
* - (leaves it and returns)
* -a
* -abcd
* -r <arg... |
7e39c92a48a4497cec1198dd1adf192822653ac726d74c8fe5eb83829a8f42a9 | C | 3,303 | 113 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
da40c227046f1a8f55d722cce065a48fe5de0751bc5a846f6bad95487d866076 | C | 3,322 | 105 | //========================================================================
// GLFW 3.4 POSIX - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2002-2006 Marcus Geelnard
// Copyright (c) 2006-2017 Camilla Löwy <[email protected]>
//
// This software is provided ... |
b0795cecd657bbd581cace0cd4e2cfb297b3ee4c8e050aa55d02f76133e59663 | C | 3,376 | 165 | /*
* lat_fifo.c - named pipe transaction test
*
* usage: lat_fifo [-P <parallelism>] [-W <warmup>] [-N <repetitions>]
*
* Copyright (c) 1994 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in th... |
3c16aac61d81bebaf86249fe32e8ae103fee86a0c71a3be235d64bc15317ef48 | C | 3,390 | 114 | #include "sparseinv.h"
/*
Z = sparseinv_mex (L, d, UT, Zpattern)
Given (L+I)*D*(UT+I)' = A, and the symbolic Cholesky factorization of A+A',
compute the sparse inverse subset, Z. UT is stored by column, so U = UT'
is implicitly stored by row, and is implicitly unit-diagonal. The diagonal
is not p... |
61f22a396944aefd22fdacf65b35f07b506a1bccdc3bfdd72d8c9f26ee18516e | C | 3,395 | 118 |
/******************************************************************************
*
* This file is part of meryl, a genomic k-kmer counter with nice features.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* 'Celera Assembler' r4587 (http://... |
e9ed2aeac574625d2d84256d80118c2d3b99916981aa5267d9bf40e944c1cd3a | C | 3,398 | 162 | ////
//// Created by sachetto on 06/10/17.
////
#include <criterion/criterion.h>
#include <criterion/internal/assert.h>
#include <signal.h>
#include "../alg/grid/grid.h"
#include "../config/linear_system_solver_config.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../config/c... |
52ec3f244f43b9a59e0b6baecfca8cb0523b80652de2f62a47f090b7e94b8f7d | C | 3,411 | 136 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
8be7a9b199c2d0a8af060c4febceaeb5022175b16e6c859df911e29659b60168 | C | 3,434 | 131 | #include <math.h>
#include <stdlib.h>
#include <stddef.h>
#include "clean.h"
#include "eigen.h"
extern struct list *top, *akt, *postakt;
double **matrix(long nr, long nc)
{
long i;
double **m;
m=(double **)malloc(nr*sizeof(double*));
for(i=0; i<nr; i++)
m[i]=(double *)malloc(nc*sizeof(double));... |
f39e035ecc83c7759e35364d808fca80a4a4689fbf11ecea900b1b9117c817c2 | C | 3,477 | 119 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
e4733e8fdc9d924b2f80b278806b93a4d02e5632511ab80c1ac4e29df835e2d0 | C | 3,492 | 175 | /*
* lat_tcp.c - simple TCP transaction latency test
*
* Three programs in one -
* server usage: tcp_xact -s
* client usage: tcp_xact [-m <message size>] [-P <parallelism>] [-W <warmup>] [-N <repetitions>] hostname
* shutdown: tcp_xact -S hostname
*
* Copyright (c) 1994 Larry McVoy. Distributed under the FSF G... |
7c42c6d8f5c673dca836cf1d4b00f6d8df922a66c6a5027a4b87c18d6ba94b94 | C | 3,502 | 132 | /*
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the gradunwarp package for the
# copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
*/
#include "Python.h"
#include "numpy/arrayobj... |
39ee0e0d146b1676352398d7c8f3d7c8d4430cee14f8c4af7bee3f8343696555 | C | 3,523 | 106 | /******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
8937b5c999ec8bbad147d6228ed0949a75a8fbdc9ef7ddd95a61717fef03c31a | C | 3,528 | 124 | //
// Created by sachetto on 07/04/2020.
//
#include "../3dparty/ini_parser/ini.h"
#include "../3dparty/sds/sds.h"
#include "../3dparty/stb_ds.h"
#include "../alg/grid/grid.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../utils/stop_watch.h"
#include "../vtk_utils/vtk_unstru... |
e642c730dc517f8e40d42012a169e922c0de7f5c45bd8dbb7340de055680771e | C | 3,530 | 126 | //
// Created by sachetto on 07/04/2020.
//
#include "../3dparty/ini_parser/ini.h"
#include "../3dparty/sds/sds.h"
#include "../3dparty/stb_ds.h"
#include "../alg/grid/grid.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../utils/stop_watch.h"
#include "../vtk_utils/vtk_unstru... |
285bf48f6e4154ea1f42613f42e2166c00912bf1406adccfb03e5199948e46ac | C | 3,545 | 163 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
056b66797e5d822c10d00300f432b60dc86c39fbb6de3d4b13eb51606ec9bb86 | C | 3,550 | 123 | //
// Created by sachetto on 07/04/2020.
//
#include "../3dparty/ini_parser/ini.h"
#include "../3dparty/sds/sds.h"
#include "../3dparty/stb_ds.h"
#include "../alg/grid/grid.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../utils/stop_watch.h"
#include "../vtk_utils/vtk_unstru... |
dc8b772a13742c2c7d9e68cdc0413422aaaa38c53cac17e0aec4f6929e762df0 | C | 3,565 | 96 | /***************************************************************************
CCGEngine.c - description
-------------------
copyright : (C) 2013-2017 by Michaël Zugaro
(C) 2026 by Pietro Bozzo (boundary correction)
em... |
ff719baf8ddd75961b80fa8d171eb4203f820450008d8bff8dfb9b35cf415025 | C | 3,591 | 60 | #ifndef __SKIP_INTERNAL_FATBINARY_HEADERS
#include "fatbinary_section.h"
#endif
#define __CUDAFATBINSECTION ".nvFatBinSegment"
#define __CUDAFATBINDATASECTION ".nv_fatbin"
asm(
".section .nv_fatbin, \"a\"\n"
".align 8\n"
"fatbinData:\n"
".quad 0x00100001ba55ed50,0x0000000000000448,0x0000004001010002,0x000000000000038... |
cb0931547de47922a97f931f464888f873363d8982d453ccab29548c1d2aeecc | C | 3,611 | 114 | //
// Created by sachetto on 14/10/17.
//
#include <stddef.h>
#include <dlfcn.h>
#include "config_common.h"
#include "../3dparty/stb_ds.h"
#include "../logger/logger.h"
struct config *alloc_and_init_config_data() {
struct config *cm = (struct config *)calloc(1, sizeof(struct config));
sh_new_arena(cm->config... |
13fc32878d2ef073284aa7743a0990eed83a7942cd7006f6595f6e144b7c3b19 | C | 3,620 | 119 | /******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
34654f6eb6223d17bff913bdabc048e5f5a812a2230b67cea41407bb2a3b951e | C | 3,623 | 128 | #include "constants.h"
#include "variable.c"
void send_and_recieve()
{
if(myrank%2 == 0) {
for (j = 0; j< space_y+2; j++) {
for (k = 0; k< space_z+2; k++) {
if(myrank != 0)
cable1[j*(space_z+2)+k] = V[1*(space_y+2)*(space_z+2)+j*(space_z+2)+k];
cable4[j*(space_z+2)+k] = V[points*(space_y+2)*(space_... |
e5e2ba7f4d7373b0e0490fabcaaa50616e447d1ba661015f6aa9a63c13fea23b | C | 3,631 | 116 | /* nonlinear noise reduction */
/* Copyright (C) Marcus Richter and Thomas Schreiber (1997) */
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#define MAXNAMELEN 512 /* maximal lenght of file name */
#define DEF_STACK 500 /* default stack depth */
#define DE... |
4eeab9e3f9f4dc0ac9eb7a96888ec6617b26532d9259d99a964b808e81c9f012 | C | 3,637 | 125 | //
// Created by sachetto on 07/04/2020.
//
#include "../3dparty/ini_parser/ini.h"
#include "../3dparty/sds/sds.h"
#include "../3dparty/stb_ds.h"
#include "../alg/grid/grid.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../utils/stop_watch.h"
#include "../vtk_utils/vtk_unstru... |
c3dab73c3f2e6777d6dad0e53e30e1567703b9ea5348e515c0430832367767f7 | C | 3,677 | 157 | /*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
*
* TISEAN 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 Li... |
26814024c6886a0f927ea922d736fe249d78ff21e280d0ebbb1d3fbace2ec198 | C | 3,696 | 155 |
/******************************************************************************
*
* This file is part of meryl, a genomic k-kmer counter with nice features.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* 'Celera Assembler' r4587 (http://... |
1de506d4eba8c45cfbbb6aea18a94153c6564f4630800803b625b084b1e431e1 | C | 3,697 | 154 | /* Functions for dft and idft (uses sing.c) */
/* Copyright (C) Andreas Schmitz (1997) */
#include <stdlib.h>
#include <stddef.h>
#include <math.h>
#include <errno.h>
#include "sing.h"
#include "primes.h"
/* give me a data-array, I'll give you amplitudes and phases */
void dft(double *data, long count, double *ampl,... |
55d981ce1e217e14335b59c159832f2ac159f948675fb771dab489bcd2212803 | C | 3,705 | 158 | /*
* lat_pmake.c - time to complete N jobs which each do usecs worth of work
*
* usage: lat_pipe [-P <parallelism>] [-W <warmup>] [-N <repetitions>] jobs usecs
*
* Copyright (c) 1994 Larry McVoy.
* Copyright (c) 2002 Carl Staelin. Distributed under the FSF GPL with
* additional restriction that results may pub... |
7a04793d09c3a6ffaa5c959563a6f1734b7b5eeafd484655d571532ac89e6736 | C | 3,715 | 132 | //
// Created by sachetto on 07/04/2020.
//
#include "../3dparty/ini_parser/ini.h"
#include "../3dparty/sds/sds.h"
#include "../3dparty/stb_ds.h"
#include "../alg/grid/grid.h"
#include "../config/domain_config.h"
#include "../config/save_mesh_config.h"
#include "../utils/stop_watch.h"
#include "../vtk_utils/vtk_unstru... |
76bdabddc4eb8a46a7eec98ce610c86909c89c629eb850a0cde98f5a78c9b99d | C | 3,722 | 129 | /* backtrace.c -- Entry point for stack backtrace library.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
(1) Redistribu... |
7d03ecbd26eb78eb2b1aa07b78d134f060ee158b1b311447cdae3dc8d125a6f1 | C | 3,723 | 61 | #ifndef __SKIP_INTERNAL_FATBINARY_HEADERS
#include "fatbinary_section.h"
#endif
#define __CUDAFATBINSECTION ".nvFatBinSegment"
#define __CUDAFATBINDATASECTION ".nv_fatbin"
asm(
".section .nv_fatbin, \"a\"\n"
".align 8\n"
"fatbinData:\n"
".quad 0x00100001ba55ed50,0x0000000000000470,0x0000004001010002,0x000000000000043... |
a86fecf8d4267039a1cfba30c2be18a5665ae0f6cf541a76f9a84b2786003c5d | C | 3,735 | 175 | /*
* lat_syscall.c - time simple system calls
*
* Copyright (c) 1996 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in the sccsid below is included in the report.
*/
char *id = "$Id: s.lat_sysca... |
7d1e4b028098bd73acd007910b5966984d0cd58ccacc04efd2c1d30cd96ee974 | C | 3,754 | 175 | /*
* lat_mmap.c - time how fast a mapping can be made and broken down
*
* Usage: mmap [-r] [-C] [-P <parallelism>] [-W <warmup>] [-N <repetitions>] size file
*
* XXX - If an implementation did lazy address space mapping, this test
* will make that system look very good. I haven't heard of such a system.
*
* Co... |
2e76c0233f334efc76069dccad49cec361fb070759e14a4f3f19957d86025be4 | C | 3,768 | 192 | /*
* memsize.c - figure out how much memory we have to use.
*
* Usage: memsize [max_wanted_in_MB]
*
* Copyright (c) 1995 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in the sccsid below is in... |
6fe01da007039b3ff85b588d56317966206b809bf55948bddaa2138ff116b700 | C | 3,777 | 200 |
/******************************************************************************
*
* This file is part of meryl, a genomic k-kmer counter with nice features.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* 'Celera Assembler' r4587 (http://... |
3b46e408c8cb72b45f1e1fc2d2b623901045a865283cb349b93fa543c0ea011e | C | 3,813 | 176 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
cfe72089854f7114761ef1715f9811f02202bdded72fa67c78349b6020015409 | C | 3,836 | 89 | //
// mcaSize = sizeof(merylCountArray) == 80
// ptrSize = sizeof(uint64 *) == 8
// segSize = (as above) ~= 64 KB
//
// mersPerPrefix = nKmers / nPrefix+1
// mersPerSeg = 8 * segSize / 2*merSize-prefixSize
//
// nSegPerPrefix = mersPerPrefix / mersPerSeg
//
// ... |
0a2a53dff6f97ed5f7df6fd2b95146a0b2e4824ae5199fe2ba2b4e202b289326 | C | 3,848 | 130 |
/******************************************************************************
*
* This file is part of meryl-utility, a collection of miscellaneous code
* used by Meryl, Canu and others.
*
* This software is based on:
* 'Canu' v2.0 (https://github.com/marbl/canu)
* which is based on:
* ... |
5e07a766a87f8daef6a29a509a88b1ffb03c421e592eb03ba6fa7496b7b4f3e6 | C | 3,914 | 172 | /*
* lat_mem_pingpong.c - measure cache pingpong latency
*
* usage: lat_mem_pingpong [-P <parallelism>] [-N <repetitions>] <op>
*
* Copyright (c) 2025 Huang Ying
*
* Distributed under the FSF GPL with additional restriction that results
* may published only if:
* (1) the benchmark is unmodified, and
* (2) the... |
617c4d2228b6d8b17fd3ac3319e957458a6d2aeb04ae609c5e65402954bf01c6 | C | 3,921 | 182 | /*
* lat_proc.c - process creation tests
*
* Usage: lat_proc [-P <parallelism] [-W <warmup>] [-N <repetitions>] procedure|fork|exec|shell
*
* TODO - linux clone, plan9 rfork, IRIX sproc().
*
* Copyright (c) 1994 Larry McVoy. Distributed under the FSF GPL with
* additional restriction that results may published... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.