repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
null | SparseP-main/spmv/2D/RBDBCOO-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,425 | 28.228916 | 87 | h |
null | SparseP-main/spmv/2D/BDCSR/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDCSR/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program ... | 2,033 | 26.12 | 87 | h |
null | SparseP-main/spmv/2D/BDCSR/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 9,918 | 31.953488 | 130 | h |
null | SparseP-main/spmv/2D/BDCSR/dpu/task.c | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#include <stdint.h>
#include <stdio.h>
#include <defs.h>
#include <mram.h>
#include <alloc.h>
#include <perfcounter.h>
#include <barrier.h>
#include <seqread.h>
#include "../support/common.h"
#include "../support/utils.h"
__host dpu_arguments_t ... | 9,154 | 42.595238 | 127 | c |
null | SparseP-main/spmv/2D/DBCSR/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/DBCSR/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
} Params;
static void usage() {
fprintf(stderr,
... | 2,223 | 27.151899 | 87 | h |
null | SparseP-main/spmv/2D/RBDBCSR-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/RBDBCSR-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,425 | 28.228916 | 87 | h |
null | SparseP-main/spmv/2D/BDBCSR-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDBCSR-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,424 | 28.216867 | 87 | h |
null | SparseP-main/spmv/2D/RBDBCOO-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/RBDBCOO-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,425 | 28.228916 | 87 | h |
null | SparseP-main/spmv/2D/RBDCSR/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/RBDCSR/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program ... | 2,034 | 26.133333 | 87 | h |
null | SparseP-main/spmv/2D/RBDCSR/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 7,370 | 29.841004 | 130 | h |
null | SparseP-main/spmv/2D/RBDCSR/dpu/task.c | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#include <stdint.h>
#include <stdio.h>
#include <defs.h>
#include <mram.h>
#include <alloc.h>
#include <perfcounter.h>
#include <barrier.h>
#include <seqread.h>
#include "../support/common.h"
#include "../support/utils.h"
__host dpu_arguments_t ... | 9,152 | 42.585714 | 127 | c |
null | SparseP-main/spmv/2D/BDBCOO-block/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDBCOO-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,425 | 28.228916 | 87 | h |
null | SparseP-main/spmv/2D/RBDCOO/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/RBDCOO/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program ... | 2,034 | 26.133333 | 87 | h |
null | SparseP-main/spmv/2D/RBDCOO/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 6,673 | 28.27193 | 130 | h |
null | SparseP-main/spmv/2D/RBDBCSR-block/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/RBDBCSR-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,425 | 28.228916 | 87 | h |
null | SparseP-main/spmv/2D/BDCOO/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDCOO/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program ... | 2,033 | 26.12 | 87 | h |
null | SparseP-main/spmv/2D/BDCOO/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t *... | 8,870 | 30.910072 | 130 | h |
null | SparseP-main/spmv/2D/BDBCOO-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDBCOO-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,433 | 28.325301 | 89 | h |
null | SparseP-main/spmv/2D/BDBCSR-block/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/BDBCSR-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
unsigned int max_nranks;
} Params;
static void u... | 2,424 | 28.216867 | 87 | h |
null | SparseP-main/spmv/2D/DBCOO/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/2D/DBCOO/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
unsigned int vert_partitions;
unsigned int nthreads;
} Params;
static void usage() {
fprintf(stderr,
... | 2,223 | 27.151899 | 87 | h |
null | SparseP-main/spmv/1D/BCSR-block/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/BCSR-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
... | 1,842 | 24.957746 | 87 | h |
null | SparseP-main/spmv/1D/COO-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/COO-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
"\nOptions:"
"\n -h help"
... | 1,449 | 22.015873 | 87 | h |
null | SparseP-main/spmv/1D/COO-nnz/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 3,649 | 25.449275 | 130 | h |
null | SparseP-main/spmv/1D/COO-row/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/COO-row/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
"\nOptions:"
"\n -h help"
... | 1,451 | 22.047619 | 87 | h |
null | SparseP-main/spmv/1D/COO-row/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 3,675 | 25.446043 | 130 | h |
null | SparseP-main/spmv/1D/BCOO-block/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/BCOO-block/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
... | 1,842 | 24.957746 | 87 | h |
null | SparseP-main/spmv/1D/BCOO-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/BCOO-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
... | 1,842 | 24.957746 | 87 | h |
null | SparseP-main/spmv/1D/BCSR-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/BCSR-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
unsigned int row_blsize;
unsigned int col_blsize;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
... | 1,842 | 24.957746 | 87 | h |
null | SparseP-main/spmv/1D/CSR-nnz/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/CSR-nnz/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
"\nOptions:"
"\n -h help"
... | 1,451 | 22.047619 | 87 | h |
null | SparseP-main/spmv/1D/CSR-nnz/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 4,619 | 26.664671 | 130 | h |
null | SparseP-main/spmv/1D/CSR-nnz/dpu/task.c | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#include <stdint.h>
#include <stdio.h>
#include <defs.h>
#include <mram.h>
#include <alloc.h>
#include <perfcounter.h>
#include <barrier.h>
#include <seqread.h>
#include "../support/common.h"
#include "../support/utils.h"
__host dpu_arguments_t ... | 9,251 | 41.833333 | 127 | c |
null | SparseP-main/spmv/1D/CSR-row/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/CSR-row/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
"\nOptions:"
"\n -h help"
... | 1,451 | 22.047619 | 87 | h |
null | SparseP-main/spmv/1D/CSR-row/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 4,619 | 26.664671 | 130 | h |
null | SparseP-main/spmv/1D/CSR-row/dpu/task.c | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#include <stdint.h>
#include <stdio.h>
#include <defs.h>
#include <mram.h>
#include <alloc.h>
#include <perfcounter.h>
#include <barrier.h>
#include <seqread.h>
#include "../support/common.h"
#include "../support/utils.h"
__host dpu_arguments_t ... | 9,251 | 41.833333 | 127 | c |
null | SparseP-main/spmv/1D/COO-nnz-rgrn/support/timer.h | #ifndef _TIMER_H_
#define _TIMER_H_
#include <sys/time.h>
typedef struct Timer{
struct timeval startTime[6];
struct timeval stopTime[6];
double time[6];
} Timer;
static void startTimer(Timer *timer, int i) {
timer->time[i] = 0.0;
gettimeofday(&timer->startTime[i], NULL);
}
static void s... | 869 | 24.588235 | 92 | h |
null | SparseP-main/spmv/1D/COO-nnz-rgrn/support/params.h | #ifndef _PARAMS_H_
#define _PARAMS_H_
#include <getopt.h>
#include <unistd.h>
#include <string.h>
typedef struct Params {
char* fileName;
} Params;
static void usage() {
fprintf(stderr,
"\nUsage: ./program [options]"
"\n"
"\nOptions:"
"\n -h help"
... | 1,456 | 22.126984 | 87 | h |
null | SparseP-main/spmv/1D/COO-nnz-rgrn/support/matrix.h | /**
* Christina Giannoula
* cgiannoula: christina.giann@gmail.com
*/
#ifndef _MATRIX_H_
#define _MATRIX_H_
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "utils.h"
/**
* @brief COO matrix format
*/
struct COOMatrix {
uint32_t nrows;
uint32_t ncols;
uint32_t nnz;
uint32_t ... | 3,675 | 25.446043 | 130 | h |
luiaard | luiaard-master/cudd/mtr/mtr.h | /**CHeaderFile*****************************************************************
FileName [mtr.h]
PackageName [mtr]
Synopsis [Multiway-branch tree manipulation]
Description [This package provides two layers of functions. Functions
of the lower level manipulate multiway-branch trees, implemented
acc... | 7,045 | 36.084211 | 104 | h |
luiaard | luiaard-master/cudd/mtr/mtrInt.h | /**CHeaderFile*****************************************************************
FileName [mtrInt.h]
PackageName [mtr]
Synopsis [Internal data structures of the mtr package]
Description [In this package all definitions are external.]
SeeAlso []
Author [Fabio Somenzi]
Copyright [Copy... | 3,951 | 41.494624 | 79 | h |
luiaard | luiaard-master/cudd/mtr/mtrBasic.c | /**CFile***********************************************************************
FileName [mtrBasic.c]
PackageName [mtr]
Synopsis [Basic manipulation of multiway branching trees.]
Description [External procedures included in this module:
<ul>
<li> Mtr_AllocNode()
<li> Mtr_DeallocNode()
... | 12,647 | 27.422472 | 90 | c |
luiaard | luiaard-master/cudd/mtr/testmtr.c | /**CFile***********************************************************************
FileName [testmtr.c]
PackageName [mtr]
Synopsis [Test program for the mtr package.]
Description []
SeeAlso []
Author [Fabio Somenzi]
Copyright [Copyright (c) 1995-2012, Regents of the Universi... | 8,355 | 29.833948 | 88 | c |
luiaard | luiaard-master/cudd/util/cpu_stats.c | /* LINTLIBRARY */
#include "util.h"
#ifdef BSD
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#if defined(_IBMR2)
#define etext _etext
#define edata _edata
#define end _end
#endif
extern int end, etext, edata;
#endif
void
util_print_cpu_stats(FILE *fp)
{
#ifdef BSD
struct rusage rusag... | 3,201 | 34.577778 | 81 | c |
luiaard | luiaard-master/cudd/util/state.c | #ifdef lint
util_restart_save_state()
{
return 0;
}
util_restart_restore_state()
{
}
#else
static char rcsid[] = "$Id: state.c,v 1.1 1997/11/04 22:38:50 fabio Exp $";
#ifdef vax
int util_restart_state[32];
util_restart_save_state()
{
asm("movl sp,_util_save_sp");
asm("movl r1,_util_restart_state");
... | 2,091 | 24.204819 | 75 | c |
luiaard | luiaard-master/cudd/util/safe_mem.c | /* LINTLIBRARY */
#include "util.h"
/*
* These are interface routines to be placed between a program and the
* system memory allocator.
*
* It forces well-defined semantics for several 'borderline' cases:
*
* malloc() of a 0 size object is guaranteed to return something
* which is not 0, and can safel... | 1,544 | 20.458333 | 74 | c |
luiaard | luiaard-master/cudd/util/saveimage.c | /* LINTLIBRARY */
/*
* saveimage.c --
*
* Function to save an executable copy of the current process's
* image in a file.
*
*/
#include <stdio.h>
#include "util.h"
#ifdef BSD
#include <sys/types.h>
#include <sys/stat.h>
#include <a.out.h>
#include <errno.h>
extern int errno;
#define BUFSIZE 8192
extern lo... | 5,138 | 21.343478 | 78 | c |
luiaard | luiaard-master/cudd/util/pipefork.c | /*
* Revision Control Information
*
* $Id: pipefork.c,v 1.7 2012/02/05 05:34:04 fabio Exp fabio $
*
*/
/* LINTLIBRARY */
#ifndef HAVE_SYS_WAIT_H
#define HAVE_SYS_WAIT_H 1
#endif
#include "util.h"
#if HAVE_SYS_WAIT_H == 1
#include <sys/wait.h>
#endif
/*
* util_pipefork - fork a command and set up pipes to and ... | 2,210 | 20.891089 | 74 | c |
luiaard | luiaard-master/cudd/st/st.h | /**CHeaderFile*****************************************************************
FileName [st.h]
PackageName [st]
Synopsis [Symbol table package.]
Description [The st library provides functions to create, maintain,
and query symbol tables.]
SeeAlso []
Author []
Copyright []
Rev... | 7,138 | 29.639485 | 90 | h |
luiaard | luiaard-master/cudd/dddmp/dddmpBinary.c | /**CFile**********************************************************************
FileName [dddmpBinary.c]
PackageName [dddmp]
Synopsis [Input and output BDD codes and integers from/to file]
Description [Input and output BDD codes and integers from/to file
in binary mode.
DD node codes are writte... | 9,669 | 27.110465 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpConvert.c | /**CFile**********************************************************************
FileName [dddmpConvert.c]
PackageName [dddmp]
Synopsis [Conversion between ASCII and binary formats]
Description [Conversion between ASCII and binary formats is presently
supported by loading a BDD in the source fo... | 6,332 | 33.98895 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpDbg.c | /**CFile**********************************************************************
FileName [dddmpDbg.c]
PackageName [dddmp]
Synopsis [Functions to display BDD files]
Description [Functions to display BDD files in binary format
]
Author [Gianpiero Cabodi and Stefano Quer]
Copyright [... | 5,139 | 29.778443 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpUtil.c | /**CFile**********************************************************************
FileName [dddmpUtil.c]
PackageName [dddmp]
Synopsis [Util Functions for the dddmp package]
Description [Functions to manipulate arrays.]
Author [Gianpiero Cabodi and Stefano Quer]
Copyright [
Copyrigh... | 10,701 | 23.489703 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpNodeBdd.c | /**CFile**********************************************************************
FileName [dddmpNodeBdd.c]
PackageName [dddmp]
Synopsis [Functions to handle BDD node infos and numbering]
Description [Functions to handle BDD node infos and numbering.
]
Author [Gianpiero Cabodi and Stefan... | 12,142 | 25.80574 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpDdNodeBdd.c | /**CFile**********************************************************************
FileName [dddmpDdNodeBdd.c]
PackageName [dddmp]
Synopsis [Functions to handle BDD node infos and numbering]
Description [Functions to handle BDD node infos and numbering.
]
Author [Gianpiero Cabodi and Stef... | 12,016 | 25.35307 | 79 | c |
luiaard | luiaard-master/cudd/dddmp/dddmpNodeAdd.c | /**CFile**********************************************************************
FileName [dddmpNodeAdd.c]
PackageName [dddmp]
Synopsis [Functions to handle ADD node infos and numbering]
Description [Functions to handle ADD node infos and numbering.
]
Author [Gianpiero Cabodi and Stefan... | 12,169 | 25.924779 | 79 | c |
luiaard | luiaard-master/cudd/cudd/cuddZddCount.c | /**CFile***********************************************************************
FileName [cuddZddCount.c]
PackageName [cudd]
Synopsis [Procedures to count the number of minterms of a ZDD.]
Description [External procedures included in this module:
<ul>
<li> Cudd_zddCount();
<li> Cudd_... | 10,223 | 27.558659 | 95 | c |
luiaard | luiaard-master/cudd/cudd/cuddSplit.c | /**CFile***********************************************************************
FileName [cuddSplit.c]
PackageName [cudd]
Synopsis [Returns a subset of minterms from a boolean function.]
Description [External functions included in this modoule:
<ul>
<li> Cudd_SplitSet()
</ul>
Internal functions... | 19,536 | 27.438137 | 107 | c |
luiaard | luiaard-master/cudd/cudd/cuddRead.c | /**CFile***********************************************************************
FileName [cuddRead.c]
PackageName [cudd]
Synopsis [Functions to read in a matrix]
Description [External procedures included in this module:
<ul>
<li> Cudd_addRead()
<li> Cudd_bddRead()
</ul>]
SeeAlso [cudd_a... | 16,738 | 31.314672 | 88 | c |
luiaard | luiaard-master/cudd/cudd/cuddBddCorr.c | /**CFile***********************************************************************
FileName [cuddBddCorr.c]
PackageName [cudd]
Synopsis [Correlation between BDDs.]
Description [External procedures included in this module:
<ul>
<li> Cudd_bddCorrelation()
<li> Cudd_bddCorrelationWeights()
</ul>
... | 14,450 | 27.224609 | 108 | c |
luiaard | luiaard-master/cudd/cudd/cuddAddFind.c | /**CFile***********************************************************************
FileName [cuddAddFind.c]
PackageName [cudd]
Synopsis [Functions to find maximum and minimum in an ADD and to
extract the i-th bit.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addFindMax(... | 9,292 | 28.315457 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddAddIte.c | /**CFile***********************************************************************
FileName [cuddAddIte.c]
PackageName [cudd]
Synopsis [ADD ITE function and satellites.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addIte()
<li> Cudd_addIteConstant()
<li> Cudd_addEvalC... | 17,648 | 26.576563 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddInit.c | /**CFile***********************************************************************
FileName [cuddInit.c]
PackageName [cudd]
Synopsis [Functions to initialize and shut down the DD manager.]
Description [External procedures included in this module:
<ul>
<li> Cudd_Init()
<li> Cudd_Quit()
</ul>
... | 10,164 | 31.89644 | 89 | c |
luiaard | luiaard-master/cudd/cudd/cuddLiteral.c | /**CFile***********************************************************************
FileName [cuddLiteral.c]
PackageName [cudd]
Synopsis [Functions for manipulation of literal sets represented by
BDDs.]
Description [External procedures included in this file:
<ul>
<li> Cudd_bddLiteralSetIntersection(... | 8,674 | 31.735849 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddLevelQ.c | /**CFile***********************************************************************
FileName [cuddLevelQ.c]
PackageName [cudd]
Synopsis [Procedure to manage level queues.]
Description [The functions in this file allow an application to
easily manipulate a queue where nodes are prioritized by level. The
... | 17,558 | 29.066781 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddBddAbs.c | /**CFile***********************************************************************
FileName [cuddBddAbs.c]
PackageName [cudd]
Synopsis [Quantification functions for BDDs.]
Description [External procedures included in this module:
<ul>
<li> Cudd_bddExistAbstract()
<li> Cudd_bddExistAbs... | 21,848 | 27.710907 | 99 | c |
luiaard | luiaard-master/cudd/cudd/cuddSolve.c | /**CFile***********************************************************************
FileName [cuddSolve.c]
PackageName [cudd]
Synopsis [Boolean equation solver and related functions.]
Description [External functions included in this modoule:
<ul>
<li> Cudd_SolveEqn()
<li> Cudd_VerifySol()
</ul>
I... | 10,882 | 28.653951 | 90 | c |
luiaard | luiaard-master/cudd/cudd/cuddAddWalsh.c | /**CFile***********************************************************************
FileName [cuddAddWalsh.c]
PackageName [cudd]
Synopsis [Functions that generate Walsh matrices and residue
functions in ADD form.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addWals... | 11,841 | 29.209184 | 93 | c |
luiaard | luiaard-master/cudd/cudd/cuddRef.c | /**CFile***********************************************************************
FileName [cuddRef.c]
PackageName [cudd]
Synopsis [Functions that manipulate the reference counts.]
Description [External procedures included in this module:
<ul>
<li> Cudd_Ref()
<li> Cudd_RecursiveDeref()... | 20,697 | 24.584672 | 88 | c |
luiaard | luiaard-master/cudd/cudd/cuddAddInv.c | /**CFile***********************************************************************
FileName [cuddAddInv.c]
PackageName [cudd]
Synopsis [Function to compute the scalar inverse of an ADD.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addScalarInverse()
</ul>
Internal ... | 6,890 | 33.113861 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddZddMisc.c | /**CFile***********************************************************************
FileName [cuddZddMisc.c]
PackageName [cudd]
Synopsis [Miscellaneous utility functions for ZDDs.]
Description [External procedures included in this module:
<ul>
<li> Cudd_zddDagSize()
<li> Cudd_zddCountMin... | 8,273 | 30.460076 | 92 | c |
luiaard | luiaard-master/cudd/cudd/cuddZddPort.c | /**CFile***********************************************************************
FileName [cuddZddPort.c]
PackageName [cudd]
Synopsis [Functions that translate BDDs to ZDDs.]
Description [External procedures included in this module:
<ul>
<li> Cudd_zddPortFromBdd()
<li> Cudd_zddPortToB... | 10,972 | 27.725131 | 92 | c |
luiaard | luiaard-master/cudd/cudd/cuddCof.c | /**CFile***********************************************************************
FileName [cuddCof.c]
PackageName [cudd]
Synopsis [Cofactoring functions.]
Description [External procedures included in this module:
<ul>
<li> Cudd_Cofactor()
<li> Cudd_CheckCube()
</ul>
Internal procedures ... | 9,772 | 28.795732 | 88 | c |
luiaard | luiaard-master/cudd/cudd/cuddInteract.c | /**CFile***********************************************************************
FileName [cuddInteract.c]
PackageName [cudd]
Synopsis [Functions to manipulate the variable interaction matrix.]
Description [Internal procedures included in this file:
<ul>
<li> cuddSetInteract()
<li> cuddTestInteract(... | 12,998 | 29.020785 | 93 | c |
luiaard | luiaard-master/cudd/cudd/cuddAndAbs.c | /**CFile***********************************************************************
FileName [cuddAndAbs.c]
PackageName [cudd]
Synopsis [Combined AND and existential abstraction for BDDs]
Description [External procedures included in this module:
<ul>
<li> Cudd_bddAndAbstract()
<li> Cudd_bddAndAbstra... | 11,454 | 29.628342 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddAnneal.c | /**CFile***********************************************************************
FileName [cuddAnneal.c]
PackageName [cudd]
Synopsis [Reordering of DDs based on simulated annealing]
Description [Internal procedures included in this file:
<ul>
<li> cuddAnnealing()
</ul>
Static procedures i... | 22,472 | 26.574233 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddSign.c | /**CFile***********************************************************************
FileName [cuddSign.c]
PackageName [cudd]
Synopsis [Computation of signatures.]
Description [External procedures included in this module:
<ul>
<li> Cudd_CofMinterm();
</ul>
Static procedures included in ... | 10,553 | 32.084639 | 89 | c |
luiaard | luiaard-master/cudd/cudd/cuddHarwell.c | /**CFile***********************************************************************
FileName [cuddHarwell.c]
PackageName [cudd]
Synopsis [Function to read a matrix in Harwell format.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addHarwell()
</ul>
]
Author [Fabio... | 15,733 | 26.652021 | 92 | c |
luiaard | luiaard-master/cudd/cudd/cuddAddNeg.c | /**CFile***********************************************************************
FileName [cuddAddNeg.c]
PackageName [cudd]
Synopsis [Function to compute the negation of an ADD.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addNegate()
<li> Cudd_addRoundOff()
</ul>
... | 8,938 | 28.599338 | 91 | c |
luiaard | luiaard-master/cudd/cudd/cuddMatMult.c | /**CFile***********************************************************************
FileName [cuddMatMult.c]
PackageName [cudd]
Synopsis [Matrix multiplication functions.]
Description [External procedures included in this module:
<ul>
<li> Cudd_addMatrixMultiply()
<li> Cudd_addTimesPlus()
<li> Cud... | 20,483 | 27.932203 | 96 | c |
luiaard | luiaard-master/cudd/cudd/cuddClip.c | /**CFile***********************************************************************
FileName [cuddClip.c]
PackageName [cudd]
Synopsis [Clipping functions.]
Description [External procedures included in this module:
<ul>
<li> Cudd_bddClippingAnd()
<li> Cudd_bddClippingAndAbstract()
</ul>
Inte... | 16,540 | 28.59034 | 125 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.