Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
null | ParMETIS-main/libparmetis/ametis.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* ametis.c
*
* This is the entry point of parallel difussive repartitioning routines
*
* Started 10/19/96
* George
*
* $Id: ametis.c 10757 2011-09-15 22:07:47Z karypis $
*
*/
#include <parmetislib.h>
/******************************************... | 7,412 | 30.411017 | 141 | c |
null | ParMETIS-main/libparmetis/csrmatch.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* csrmatch.c
*
* This file contains the code that computes matchings
*
* Started 7/23/97
* George
*
* $Id: csrmatch.c 10057 2011-06-02 13:44:44Z karypis $
*
*/
#include <parmetislib.h>
/*********************************************************... | 1,976 | 21.988372 | 75 | c |
null | ParMETIS-main/libparmetis/wave.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* wave.c
*
* This file contains code for directed diffusion at the coarsest graph
*
* Started 5/19/97, Kirk, George
*
* $Id: wave.c 13946 2013-03-30 15:51:45Z karypis $
*
*/
#include <parmetislib.h>
/********************************************... | 7,851 | 29.316602 | 98 | c |
null | ParMETIS-main/libparmetis/redomylink.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* redomylink.c
*
* This file contains code that implements the edge-based FM refinement
*
* Started 7/23/97
* George
*
* $Id: redomylink.c 10542 2011-07-11 16:56:22Z karypis $
*/
#include <parmetislib.h>
#define PE 0
/***************************... | 4,522 | 24.410112 | 79 | c |
null | ParMETIS-main/libparmetis/frename.c | /*
* frename.c
*
* This file contains some renaming routines to deal with different
* Fortran compilers.
*
* Started 6/1/98
* George
*
* $Id: frename.c 13945 2013-03-30 14:38:24Z karypis $
*
*/
#include <parmetislib.h>
/*************************************************************************
* Renaming m... | 4,633 | 36.674797 | 93 | c |
null | ParMETIS-main/libparmetis/selectq.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* selectq.c
*
* This file contains the driving routines for multilevel k-way refinement
*
* Started 7/28/97
* George
*
* $Id: selectq.c 10542 2011-07-11 16:56:22Z karypis $
*/
#include <parmetislib.h>
/*******************************************... | 13,136 | 35.491667 | 110 | c |
null | ParMETIS-main/libparmetis/debug.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* debug.c
*
* This file contains various functions that are used to display debuging
* information
*
* Started 10/20/96
* George
*
* $Id: debug.c 10391 2011-06-23 19:00:08Z karypis $
*
*/
#include <parmetislib.h>
/***************************... | 7,879 | 30.52 | 164 | c |
null | ParMETIS-main/libparmetis/struct.h | /*
* Copyright 1997, Regents of the University of Minnesota
*
* struct.h
*
* This file contains data structures for ILU routines.
*
* Started 9/26/95
* George
*
* $Id: struct.h 10592 2011-07-16 21:17:53Z karypis $
*/
/*************************************************************************/
/*! This data ... | 10,131 | 37.378788 | 101 | h |
null | ParMETIS-main/libparmetis/stat.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* stat.c
*
* This file computes various statistics
*
* Started 7/25/97
* George
*
* $Id: stat.c 10578 2011-07-14 18:10:15Z karypis $
*
*/
#include <parmetislib.h>
/*************************************************************************
* Th... | 5,661 | 27.59596 | 112 | c |
null | ParMETIS-main/libparmetis/remap.c | /*
* premap.c
*
* This file contains code that computes the assignment of processors to
* partition numbers so that it will minimize the redistribution cost
*
* Started 4/16/98
* George
*
* $Id: remap.c 10361 2011-06-21 19:16:22Z karypis $
*
*/
#include <parmetislib.h>
/************************************... | 4,883 | 24.978723 | 92 | c |
null | ParMETIS-main/libparmetis/balancemylink.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* balancemylink.c
*
* This file contains code that implements the edge-based FM refinement
*
* Started 7/23/97
* George
*
* $Id: balancemylink.c 10542 2011-07-11 16:56:22Z karypis $
*/
#include <parmetislib.h>
#define PE 0
/*********************... | 8,895 | 24.489971 | 76 | c |
null | ParMETIS-main/libparmetis/move.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* mmove.c
*
* This file contains functions that move the graph given a partition
*
* Started 11/22/96
* George
*
* $Id: move.c 10657 2011-08-03 14:34:35Z karypis $
*
*/
#include <parmetislib.h>
/*************************************************... | 10,661 | 30.175439 | 118 | c |
null | ParMETIS-main/libparmetis/node_refine.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* node_refine.c
*
* This file contains code that performs the k-way refinement
*
* Started 3/1/96
* George
*
* $Id: node_refine.c 10391 2011-06-23 19:00:08Z karypis $
*/
#include <parmetislib.h>
/************************************************... | 23,763 | 32.236364 | 117 | c |
null | ParMETIS-main/libparmetis/mesh.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* mesh.c
*
* This file contains routines for constructing the dual graph of a mesh.
* Assumes that each processor has at least one mesh element.
*
* Started 10/19/94
* George
*
* $Id: mesh.c 10575 2011-07-14 14:46:42Z karypis $
*
*/
#include <p... | 10,199 | 27.333333 | 89 | c |
null | ParMETIS-main/libparmetis/initmsection.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* initmsection.c
*
* This file contains code that performs the k-way multisection
*
* Started 6/3/97
* George
*
* $Id: initmsection.c 10361 2011-06-21 19:16:22Z karypis $
*/
#include <parmetislib.h>
#define DEBUG_IPART_
/*********************... | 8,484 | 33.076305 | 103 | c |
null | ParMETIS-main/conf/check_thread_storage.c | extern __thread int x;
int main(int argc, char **argv) {
return 0;
}
| 72 | 11.166667 | 33 | c |
null | ParMETIS-main/programs/adaptgraph.c | /*
* Copyright 1998, Regents of the University of Minnesota
*
* tstadpt.c
*
* This file contains code for testing teh adaptive partitioning routines
*
* Started 5/19/97
* George
*
* $Id: adaptgraph.c,v 1.2 2003/07/21 17:50:22 karypis Exp $
*
*/
#include <parmetisbin.h>
/*********************************... | 4,617 | 26.005848 | 158 | c |
null | ParMETIS-main/programs/parmetisbin.h | /*
* Copyright 1997, Regents of the University of Minnesota
*
* par_metis.h
*
* This file includes all necessary header files
*
* Started 8/27/94
* George
*
* $Id: parmetisbin.h,v 1.1 2003/07/21 17:50:23 karypis Exp $
*/
/*
#define DEBUG 1
#define DMALLOC 1
*/
#include <GKlib.h>
#include <parmetis.h>
... | 579 | 17.125 | 61 | h |
null | ParMETIS-main/programs/ptest.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* main.c
*
* This file contains code for testing teh adaptive partitioning routines
*
* Started 5/19/97
* George
*
* $Id: ptest.c,v 1.3 2003/07/22 21:47:20 karypis Exp $
*
*/
#include <parmetisbin.h>
#define NCON 5
/***********************... | 15,095 | 31.746204 | 122 | c |
null | ParMETIS-main/programs/proto.h | /*
* Copyright 1997, Regents of the University of Minnesota
*
* proto.h
*
* This file contains header files
*
* Started 10/19/95
* George
*
* $Id: proto.h 10076 2011-06-03 15:36:39Z karypis $
*
*/
/* pio.c */
void ParallelReadGraph(graph_t *, char *, MPI_Comm);
void Mc_ParallelWriteGraph(ctrl_t *, graph_t... | 1,553 | 30.714286 | 122 | h |
null | ParMETIS-main/programs/dglpart.c | /*
* dglpart.c
*
* This file partitions a graph for use in DistDGL
*
* Started 12/31/2020
* George
*
*/
#include <parmetisbin.h>
#define CHUNKSIZE (1<<15)
/* The following is to perform a cyclic distribution of the input vertex IDs
in order to balance the adjancency lists during the partitioning computat... | 46,087 | 34.425058 | 118 | c |
null | ParMETIS-main/programs/otest.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* main.c
*
* This file contains code for testing teh adaptive partitioning routines
*
* Started 5/19/97
* George
*
* $Id: ptest.c,v 1.3 2003/07/22 21:47:20 karypis Exp $
*
*/
#include <parmetisbin.h>
/*****************************************... | 14,967 | 30.379455 | 231 | c |
null | ParMETIS-main/programs/parmetis.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* main.c
*
* This is the entry point of the ILUT
*
* Started 10/19/95
* George
*
* $Id: parmetis.c,v 1.5 2003/07/30 21:18:54 karypis Exp $
*
*/
#include <parmetisbin.h>
/*************************************************************************
... | 5,891 | 30.677419 | 151 | c |
null | ParMETIS-main/programs/pometis.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* pometis.c
*
* This is the entry point of the ILUT
*
* Started 10/19/95
* George
*
* $Id: parmetis.c,v 1.5 2003/07/30 21:18:54 karypis Exp $
*
*/
#include <parmetisbin.h>
/***********************************************************************... | 3,225 | 26.338983 | 121 | c |
null | ParMETIS-main/programs/io.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* pio.c
*
* This file contains routines related to I/O
*
* Started 10/19/94
* George
*
* $Id: io.c,v 1.1 2003/07/22 21:47:18 karypis Exp $
*
*/
#include <parmetisbin.h>
#define MAXLINE 64*1024*1024
/*********************************************... | 27,873 | 26.762948 | 100 | c |
null | ParMETIS-main/programs/mtest.c | /*
* Copyright 1997, Regents of the University of Minnesota
*
* main.c
*
* This file contains code for testing teh adaptive partitioning routines
*
* Started 5/19/97
* George
*
* $Id: mtest.c,v 1.3 2003/07/25 14:31:47 karypis Exp $
*
*/
#include <parmetisbin.h>
/*****************************************... | 2,701 | 25.752475 | 108 | c |
null | ParMETIS-main/programs/plotorder.pl | #!/usr/bin/perl
die "Usage: plotorder.pl <graphfile> <orderfile> <sizesfile>\n" unless ($#ARGV == 2);
$graphfile = shift(@ARGV);
$orderfile = shift(@ARGV);
$sizesfile = shift(@ARGV);
#=========================================================================
# Read the graph file
#===================================... | 809 | 21.5 | 85 | pl |
null | ParMETIS-main/include/parmetis.h | /*
* Copyright 1997-2003, Regents of the University of Minnesota
*
* parmetis.h
*
* This file contains function prototypes and constrant definitions for
* ParMETIS
*
* Started 7/21/03
* George
*
*/
#ifndef __parmetis_h__
#define __parmetis_h__
#include <mpi.h>
#include <metis.h>
#ifndef _MSC_VER
#define ... | 6,414 | 36.95858 | 93 | h |
pyCBT | pyCBT-master/LICENSE.md | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Copyright (C) Aivon Oy 2013.
The Software is provided "as is" without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particu... | 353 | 58 | 245 | md |
pyCBT | pyCBT-master/README.md | pyCBT
=====
Python library for Coulomb Blockade Thermometer (CBT) data fitting. It uses master equation for conductance calculations according to *Pekola et. al. PRL*
**73** *(1994)*.
See
* [Tutorial](http://nbviewer.ipython.org/urls/raw.github.com/AivonOy/pyCBT/master/pyNotebooks/pyCBT%2520tutorial.ipynb)
* [Mult... | 1,787 | 30.928571 | 245 | md |
pyCBT | pyCBT-master/src/CBT_fit_lib.py | # -*- coding: utf-8 -*-
"""
@author: Leif Roschier/Aivon Oy
This class fits single C_sigma, R_T from a given curve.
"""
from matplotlib import mlab
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
from pylab import figure, show
from scipy import optimize
from scipy import interpolate
from scipy.c... | 14,359 | 43.184615 | 163 | py |
pyCBT | pyCBT-master/src/CBT_fit_multi_T.py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 09 09:51:03 2013
@author: Leif Roschier/Aivon Oy
This class fits single C_sigma, R_T from list of already fitted fitted curves
inside classes CBT_fitter (from file CBT_fit_lib.py).
"""
from scipy import optimize
from CBT_lib import *
from multiprocessing import Pool,Queu... | 8,780 | 37.178261 | 108 | py |
pyCBT | pyCBT-master/src/CBT_lib.py | # -*- coding: utf-8 -*-
"""
Copyright Aivon Oy (C) 2013
Created on Wed Feb 23 12:09:04 2011
@author: Leif Roschier
Calculates conductance of two junctions in series. When scaling voltage,
can be used to calculate junction array conductance
"""
# LRR 23.2.2011
from numpy import *
from scipy import *
from scipy.cons... | 13,472 | 42.46129 | 318 | py |
pyCBT | pyCBT-master/src/CBT_plot_data_pyx.py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 06 14:03:31 2013
@author: Leif
"""
from pyx import *
from numpy import *
class CBT_plot_data_pyx:
def __init__(self,fitters):
self.fitters=fitters
def plot_data_given_params(self,T,R_T,C_sigma,filename="result_pfit.pdf"):
"""
Pl... | 7,069 | 44.320513 | 112 | py |
pyCBT | pyCBT-master/src/CBT_secondary_temp.py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 09 15:45:21 2013
@author: Leif Roschier/Aivon Oy
This class CBT_secondary_temp is used as interpolator to find temperature from
conductance minimum.
List of resistances is calculated from temperatures and interpolation function
is generated.
"""
from CBT_lib import ... | 2,551 | 32.578947 | 85 | py |
pyCBT | pyCBT-master/src/example_fit_and_plot.py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 09 12:28:35 2013
@author: Leif
"""
from CBT_lib import *
from CBT_fit_lib import *
from CBT_plot_data_pyx import *
parallel_arrays = 20.0
N_junctions=33.0
excitation = 30e-6/N_junctions
T_init = 10e-3 # K
island_size_init=400.0 #x 1e-15 m3
R_tunnel_init=28.0 # kOhm
... | 1,336 | 25.74 | 88 | py |
pyCBT | pyCBT-master/src/example_multi_fit.py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 13:56:30 2013
@author: Leif Roschier/Aivon Oy
"""
"""
This is example script to fit CBT R-V curves at different temperatures
simultaneously in order to find C_sigma and R_T.
Script fits first all separate curves with class CBT_fitter to get initial
values for final... | 2,792 | 30.738636 | 88 | py |
pyCBT | pyCBT-master/src/readme.md | ### Source code
Files:
* ``CBT_fit_lib.py``: encapsulates fitting of curve into class CBT_fitter
* ``CBT_lib.py``: library for calculating I,V,G
* ``CBT_lib.pyx``: cythonized (for cython) version of ``CBT_lib.py``
* ``CBT_plot_data_pyx.py`` : plotting with pyx library (do not mix with .pyx cython files)
* ``example_... | 464 | 45.5 | 109 | md |
pyCBT | pyCBT-master/src/setup_CBT_lib.py | # -*- coding: utf-8 -*-
"""
Created on Wed May 15 14:54:55 2013
@author: Leif Roschier
Copyright Aivon Oy (C) 2013
"""
import pyximport
pyximport.install(setup_args={"script_args":["--compiler=mingw32"]}, reload_support=True)
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distu... | 451 | 22.789474 | 89 | py |
filebench | filebench-master/aslr.c | /*
* mmap() call with MAP_FIXED flag does not guarantee that the allocated memory
* region is not overlapped with the previously existant mappings. According to
* POSIX, old mappings are silently discarded. There is no generic way to
* detect overlap. If a silent overlap occurs, strange runtime errors might
* happ... | 1,777 | 33.862745 | 79 | c |
filebench | filebench-master/aslr.h | #ifndef _ASLR_H
#define _ASLR_H
#include <filebench.h>
#if defined(HAVE_SYS_PERSONALITY_H) && defined(HAVE_ADDR_NO_RANDOMIZE)
extern void
linux_disable_aslr();
static inline void
disable_aslr()
{
return linux_disable_aslr();
}
#else /* HAVE_SYS_PERSONALITY_H && HAVE_ADDR_NO_RANDOMIZE */
extern void
other_disable_as... | 479 | 17.461538 | 70 | h |
filebench | filebench-master/eventgen.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 4,841 | 27.650888 | 79 | c |
filebench | filebench-master/eventgen.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,115 | 30 | 70 | h |
filebench | filebench-master/fb_avl.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 27,911 | 25.183865 | 80 | c |
filebench | filebench-master/fb_avl.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 12,596 | 29.575243 | 80 | h |
filebench | filebench-master/fb_cvar.c | /*
* fb_cvar.c
*
* Support for custom variables in Filebench.
*
* @Author Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <sys/types.h>
#include <dirent.h>
#include <limits.h>
#include <dlfcn.h>
#include "ipc.h"
#include "fb_cvar.h"
/* Some helpers. */
static int alloc_cvar_lib_info(const cha... | 9,532 | 19.951648 | 77 | c |
filebench | filebench-master/fb_cvar.h | /*
* fb_cvar.h
*
* Include file for code using custom variables.
*
* @Author Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _FB_CVAR_H
#define _FB_CVAR_H
#include <stdint.h>
#include <sys/types.h>
/* Function (symbol) names within custom variable libraries. */
#define FB_CVAR_MODULE_INIT "c... | 3,054 | 34.114943 | 79 | h |
filebench | filebench-master/fb_localfs.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 16,441 | 22.96793 | 79 | c |
filebench | filebench-master/fb_random.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 9,001 | 23.198925 | 79 | c |
filebench | filebench-master/fb_random.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 2,906 | 26.685714 | 73 | h |
filebench | filebench-master/fbtime.c | #include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
#include "fbtime.h"
#include "config.h"
#include "filebench.h"
/*
* If we don't have gethrtime() function provided by the environment (which is
* usually provided only by Solaris) then we use gettimeofdate().
*/
#ifndef HAVE_GETHRTIME
hrtime_t
gethrtime(... | 517 | 17.5 | 78 | c |
filebench | filebench-master/fbtime.h | #ifndef _FBTIME_H
#define _FBTIME_H
#include "config.h"
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifndef HAVE_GETHRTIME
typedef uint64_t hrtime_t;
hrtime_t gethrtime(void);
#endif
#define SEC2NS_FLOAT (double)1000000000.0
#define SEC2MS_FLOAT (double)1000000.0
#endif /* _FBTIME_H*/
| 295 | 14.578947 | 41 | h |
filebench | filebench-master/filebench.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 4,589 | 22.782383 | 74 | h |
filebench | filebench-master/fileset.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 53,805 | 26.606978 | 96 | c |
filebench | filebench-master/fileset.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 6,504 | 38.907975 | 79 | h |
filebench | filebench-master/flag.h | #ifndef _FB_FLAG_H
#define _FB_FLAG_H
typedef volatile int flag_t;
static inline void clear_flag(flag_t *flag)
{
*flag = 0;
}
static inline void set_flag(flag_t *flag)
{
*flag = 1;
}
static inline int query_flag(flag_t *flag)
{
return (*flag) != 0;
}
static inline void wait_flag(flag_t *flag)
{
while (!query_f... | 380 | 12.137931 | 43 | h |
filebench | filebench-master/flowop.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 31,376 | 26.284348 | 80 | c |
filebench | filebench-master/flowop.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 5,901 | 37.077419 | 77 | h |
filebench | filebench-master/flowop_library.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 78,364 | 28.933155 | 96 | c |
filebench | filebench-master/fsplug.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 4,327 | 28.442177 | 70 | h |
filebench | filebench-master/gamma_dist.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 3,163 | 21.125874 | 74 | c |
filebench | filebench-master/gamma_dist.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,220 | 31.131579 | 70 | h |
filebench | filebench-master/ioprio.c | #include "filebench.h"
#include "ioprio.h"
#ifdef HAVE_IOPRIO
static inline int ioprio_set(int which, int who, int ioprio)
{
return syscall(__NR_ioprio_set, which, who, ioprio);
}
static inline int ioprio_get(int which, int who)
{
return syscall(__NR_ioprio_get, which, who);
}
enum {
IOPRIO_CLASS_NONE,
IOPRIO_C... | 980 | 17.509434 | 77 | c |
filebench | filebench-master/ioprio.h | #ifndef _FB_IOPRIO_H
#define _FB_IOPRIO_H
#ifdef HAVE_IOPRIO
#include <asm/unistd.h>
extern void set_thread_ioprio(threadflow_t *);
#else
static inline void set_thread_ioprio(threadflow_t *tf)
{
return;
}
#endif
#endif /* _FB_IOPRIO_H */
| 241 | 15.133333 | 54 | h |
filebench | filebench-master/ipc.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 25,368 | 25.930998 | 81 | c |
filebench | filebench-master/ipc.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 8,677 | 30.215827 | 87 | h |
filebench | filebench-master/misc.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 5,319 | 25.206897 | 70 | c |
filebench | filebench-master/misc.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,454 | 32.837209 | 73 | h |
filebench | filebench-master/multi_client_sync.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 3,217 | 26.741379 | 71 | c |
filebench | filebench-master/multi_client_sync.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,227 | 31.315789 | 77 | h |
filebench | filebench-master/parsertypes.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,922 | 21.892857 | 70 | h |
filebench | filebench-master/procflow.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 23,056 | 26.38361 | 95 | c |
filebench | filebench-master/procflow.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,536 | 27.462963 | 70 | h |
filebench | filebench-master/stats.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 7,813 | 28.048327 | 75 | c |
filebench | filebench-master/stats.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 2,242 | 32.477612 | 75 | h |
filebench | filebench-master/threadflow.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 12,856 | 27.507761 | 73 | c |
filebench | filebench-master/threadflow.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 2,915 | 32.906977 | 97 | h |
filebench | filebench-master/utils.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 5,166 | 23.722488 | 80 | c |
filebench | filebench-master/utils.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 1,416 | 27.34 | 70 | h |
filebench | filebench-master/vars.c | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 18,834 | 19.974388 | 82 | c |
filebench | filebench-master/vars.h | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 5,483 | 26.837563 | 73 | h |
filebench | filebench-master/cvars/cvar-erlang.c | /*
* rand-erlang.c
*
* Custom variable that returns random numbers following the Erlang
* distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#include "cvar_tokens... | 3,537 | 20.839506 | 72 | c |
filebench | filebench-master/cvars/cvar-erlang.h | /*
* rand-erlang.h
*
* Custom variable that returns random numbers following the Erlang
* distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_ERLANG_H
#define _RAND_ERLANG_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable. */
#define RER_SHAPE ... | 734 | 18.342105 | 67 | h |
filebench | filebench-master/cvars/cvar-exponential.c | /*
* rand-exponential.c
*
* Custom variable implementation that returns exponentially distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#include ... | 2,859 | 19.140845 | 79 | c |
filebench | filebench-master/cvars/cvar-exponential.h | /*
* rand-exponential.h
*
* Custom variable implementation that returns exponentially distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_EXPONENTIAL_H
#define _RAND_EXPONENTIAL_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable.... | 693 | 18.828571 | 79 | h |
filebench | filebench-master/cvars/cvar-gamma.c | /*
* rand-gamma.c
*
* Custom variable implementation that returns gamma distributed random
* numbers.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "cvar.h"
#include "cvar_trace.h"
#include "cvar_tokens.h"
#define VERSION "0.1.1 (alpha)"
#define USAGE_LEN 2048
static char usage[USAGE_... | 5,771 | 19.323944 | 74 | c |
filebench | filebench-master/cvars/cvar-lognormal.c | /*
* rand-lognormal.c
*
* Custom variable implementation that returns Log-Normally distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#include "cv... | 3,556 | 21.093168 | 78 | c |
filebench | filebench-master/cvars/cvar-lognormal.h | /*
* rand-lognormal.h
*
* Custom variable implementation that returns Log-Normally distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_LOGNORMAL_H
#define _RAND_LOGNORMAL_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable. */
#de... | 758 | 18.973684 | 78 | h |
filebench | filebench-master/cvars/cvar-normal.c | /*
* rand-normal.h
*
* Custom variable that returns random numbers following the Normal
* distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#include "cvar_tokens... | 3,183 | 20.369128 | 72 | c |
filebench | filebench-master/cvars/cvar-normal.h | /*
* rand-normal.h
*
* Custom variable that returns Normally distributed random numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_NORMAL_H
#define _RAND_NORMAL_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable. */
#define RN_MEAN "mean"
#define RN... | 721 | 18.513514 | 68 | h |
filebench | filebench-master/cvars/cvar-triangular.c | /*
* rand-triangular.c
*
* Custom variable implementation that returns random numbers following a
* Triangular distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
... | 4,154 | 22.607955 | 74 | c |
filebench | filebench-master/cvars/cvar-triangular.h | /*
* rand-triangular.h
*
* Custom variable implementation that returns random numbers following a
* Triangular distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_TRIANGULAR_H
#define _RAND_TRIANGULAR_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this va... | 839 | 19.487805 | 73 | h |
filebench | filebench-master/cvars/cvar-uniform.c | /*
* rand-uniform.c
*
* Custom variable implementation that returns uniformly distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#include "cvar_to... | 3,422 | 21.227273 | 75 | c |
filebench | filebench-master/cvars/cvar-uniform.h | /*
* rand-uniform.h
*
* Custom variable implementation that generates uniformly distributed random
* numbers.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_UNIFORM_H
#define _RAND_UNIFORM_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable. */
#define RU... | 748 | 18.710526 | 77 | h |
filebench | filebench-master/cvars/cvar-weibull.c | /*
* rand-weibull.c
*
* Custom variable implementation that returns random numbers following the
* Weibull distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include "mtwist/mtwist.h"
#include "mtwist/randistrs.h"
#include "cvar.h"
#include "cvar_trace.h"
#inc... | 3,568 | 21.030864 | 75 | c |
filebench | filebench-master/cvars/cvar-weibull.h | /*
* rand-weibull.h
*
* Custom variable implementation that returns random numbers following the
* Weibull distribution.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _RAND_WEIBULL_H
#define _RAND_WEIBULL_H
#include "mtwist/mtwist.h"
/* Parameters recognized by this variable. */... | 759 | 19 | 75 | h |
filebench | filebench-master/cvars/cvar.h | /*
* cvar.h
*
* Include file for code implementing custom variables.
*
* @Author Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _CVAR_H
#define _CVAR_H
/*
* Initialize the state of the library supporting the custom variable.
* cvar_module_init is the first function to be invoked when a custo... | 2,873 | 24.891892 | 80 | h |
filebench | filebench-master/cvars/cvar_tokens.c | /*
* cvar_tokens.c
*
* Simple utilities to manipulate tokens.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include <string.h>
#include "cvar_trace.h"
#include "cvar_tokens.h"
/*
* Return 0 if tokenization was successful, non-zero otherwise. This function
* does not ... | 3,291 | 16.145833 | 79 | c |
filebench | filebench-master/cvars/cvar_tokens.h | /*
* cvar_tokens.h
*
* Simple utilities to manipulate tokens.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _CVAR_TOKENS_H
#define _CVAR_TOKENS_H
#define DEFAULT_PARAMETER_DELIMITER ';'
#define DEFAULT_KEY_VALUE_DELIMITER ':'
/* A token holds a key-value pair. */
typedef struct c... | 1,178 | 23.061224 | 79 | h |
filebench | filebench-master/cvars/cvar_trace.h | /*
* cvar_trace.h
*
* Tracing and logging utilities.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#ifndef _CVAR_TRACE_H
#define _CVAR_TRACE_H
#include <stdio.h>
#include <stdlib.h>
#define cvar_log_error(fmt, ...) fprintf(stderr, fmt ".\n", ##__VA_ARGS__)
#ifdef DEBUG
#define cvar_tra... | 1,467 | 18.064935 | 74 | h |