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 |
|---|---|---|---|---|---|---|
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/heap.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,912 | 31.010989 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/arrayG.h | /*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eithe... | 1,666 | 27.254237 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/basics.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 1,303 | 27.977778 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/RePair.h | /*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eithe... | 2,127 | 23.45977 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/dictionary.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 1,705 | 26.967213 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/records.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,313 | 27.567901 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/RePair/hash.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,075 | 28.239437 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Samplings/VByte2.h | /* VByte2.h
* Copyright (C) 2011, Rodrigo Canovas & Miguel A. Martinez-Prieto
* all rights reserved.
*
* This class implements the Variable Byte (VByte2) Code.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by... | 1,925 | 27.746269 | 77 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Samplings/hutucker2.h | /* BinaryNode.h
* Copyright (C) 2011, Rodrigo Canovas & Miguel A. Martinez-Prieto
* all rights reserved.
*
* This class implements a Hu-Tucker encoding.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Fr... | 5,891 | 24.729258 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Samplings/CSD.h | /* CSD.h
* Copyright (C) 2011, Rodrigo Canovas & Miguel A. Martinez-Prieto
* all rights reserved.
*
* Abstract class for implementing Compressed String Dictionaries following:
*
* ==========================================================================
* "Compressed String Dictionaries"
* Nieves R. ... | 3,420 | 31.273585 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Samplings/CSD_HTFC.h | /* CSD_HTCF.h
* Copyright (C) 2011, Rodrigo Canovas & Miguel A. Martinez-Prieto
* all rights reserved.
*
* This class implements a Hu-Tucker compressed Front-Coding for compression of
* string dictionaries.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... | 8,553 | 33.914286 | 103 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Samplings/binarynode.h | /* BinaryNode.h
* Copyright (C) 2011, Rodrigo Canovas & Miguel A. Martinez-Prieto
* all rights reserved.
*
* This class implements a binary node required for Hu-Tucker encoding.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licen... | 2,772 | 22.700855 | 86 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Utils/offsets.h | /**
* offsets.h
* Copyright (C) 2011 Francisco Claude F.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | 2,572 | 24.989899 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Utils/deltacodes.h | /* deltacodes.h
*
* This class implements a rank/select bitmap which performs differential
* encoding of (sparse)1-bits.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
*... | 1,967 | 31.8 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/slp/Utils/SuffixArray.h | #ifndef SUFFIXARRAY_H_
#define SUFFIXARRAY_H_
/*
Adaptation of the original implementation...
Copyright 1999, N. Jesper Larsson, all rights reserved.
This file contains an implementation of the algorithm presented in "Faster
Suffix Sorting" by N. Jesper Larsson (jesper@cs.lth.se) and Kunihiko
Sadakan... | 2,605 | 31.17284 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/BinRel/BinaryRelation.h | /* BinaryRelation.h
* Copyright (C) 2010, Miguel A. Martinez-Prieto
* all rights reserved.
*
* Compact Binary Relation based on:
* Francisco Claude and Gonzalo Navarro.
* Self-Indexed Grammar-Based Compression.
* Fundamenta Informaticae
*
* This library is free software; you can redistribute it and/or... | 4,296 | 31.067164 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/BinRel/Rule.h | /* LabeledPoint.h
* Copyright (C) 2010, Miguel A. Martinez-Prieto
* all rights reserved.
*
* Labeled Point Description in a Binary Relation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software F... | 1,719 | 27.666667 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/BinRel/Point.h | /* Point.h
* Copyright (C) 2010, Miguel A. Martinez-Prieto
* all rights reserved.
*
* Point Description in a Binary Relation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eith... | 2,022 | 21.730337 | 77 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/BinRel/LabeledBinaryRelation.h | /* LabeledBinaryRelation.h
* Copyright (C) 2010, Miguel A. Martinez-Prieto
* all rights reserved.
*
* Labeled Binary Relation based on:
* Francisco Claude and Gonzalo Navarro.
* Self-Indexed Grammar-Based Compression.
* Fundamenta Informaticae
*
* This library is free software; you can redistribute it... | 4,071 | 35.357143 | 111 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/heap.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,927 | 30.483871 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/arrayg.h | /*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eithe... | 1,667 | 27.271186 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/IRePair.h | /*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eithe... | 2,325 | 25.431818 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/basics.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 1,309 | 28.111111 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/dictionary.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 1,725 | 27.295082 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/records.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,331 | 27.439024 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/IRePair/hash.h |
/*
Repair -- an implementation of Larsson and Moffat's compression and
decompression algorithms.
Copyright (C) 2010-current_year Gonzalo Navarro
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; eith... | 2,067 | 28.126761 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/offsets.h | /**
* offsets.h
* Copyright (C) 2011 Francisco Claude F.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | 2,572 | 24.989899 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/WordsManager.h | /* WordsManager.h
* Copyright (C) 2011, Miguel A. Martinez-Prieto
* all rights reserved.
*
* Extracted from the implementation of Antonio Fariña
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Softw... | 3,769 | 28.920635 | 119 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/words.h | /* words.h
* Copyright (C) 2011, Antonio Fariña
* all rights reserved.
*
* Utils for word managemente
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | 1,585 | 27.321429 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/MemoryManager.h | /*-----------------------------------------------------------------------
File : MemoryManager.h
Function : Reserves large blocks of memory and gives pointers to small
portions of that block when requested.
This improves performance since a unique "LARGE ALLOCATION"
o... | 1,729 | 32.921569 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/deltacodes.h | #include <fstream>
#include <libcdsBasics.h>
using namespace std;
using namespace cds_utils;
class DeltaCodes{
public:
DeltaCodes();
DeltaCodes(unsigned int* array, unsigned int n, unsigned int sampling);
virtual ~DeltaCodes();
unsigned int select(unsigned int total);
unsigned in... | 1,023 | 29.117647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/defValues.h | #ifndef DEFVALUES_INCLUDED
#define DEFVALUES_INCLUDED
#define MAX_MEANINGFUL_WORDS 100000000 //number of words (non separators)
#define MAX_SIZE_OF_WORD 1000000 //255 //size of word
#define MAX_SIZE_OF_GAP 1000000 //1000 //size of separator
#define MAX_SIZE_OF_ANY 1000000 //1000
#define DEFAULT_SUFFIX_ARRAY_SIZE 5... | 796 | 24.709677 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/SLP/wslp/utils/SuffixArray.h | #ifndef SUFFIXARRAY_H_
#define SUFFIXARRAY_H_
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#define KEY(p) (V[*(p)+(h)])
#define SWAP(p, q) (tmp=*(p), *(p)=*(q), *(q)=tmp)
#define MED3(a, b, c) (KEY(a)<KEY(b) ? \
(KEY(b)<KEY(c) ? (b) : KEY(a)<KEY(c) ? (c) : ... | 1,231 | 28.333333 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/offsets.h | /**
* offsets.h
* Copyright (C) 2011 Francisco Claude F.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | 2,572 | 24.989899 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/sasamples.h | #ifndef SASAMPLES_H
#define SASAMPLES_H
#include <fstream>
#include "misc/definitions.h"
#include "bits/bitbuffer.h"
#include "bits/deltavector.h"
namespace CSA
{
class SASamples
{
public:
const static usint INDEX_BLOCK_SIZE = 16;
SASamples(std::ifstream& sample_file, usint sample_rate);
// These ... | 2,596 | 27.855556 | 126 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/lcpsamples.h | #ifndef LCPSAMPLES_H
#define LCPSAMPLES_H
#include <fstream>
#include "bits/array.h"
#include "bits/vectors.h"
#include "misc/utils.h"
namespace CSA
{
class LCPSamples
{
public:
const static usint INDEX_BLOCK_SIZE = 16;
const static usint VALUE_BLOCK_SIZE = 32;
LCPSamples(std::ifstream& sample_file... | 1,858 | 22.833333 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/rlcsa.h | #ifndef RLCSA_H
#define RLCSA_H
#include <fstream>
#include <vector>
#include "bits/vectors.h"
#include "sasamples.h"
#include "lcpsamples.h"
#include "misc/parameters.h"
namespace CSA
{
const std::string SA_EXTENSION = ".sa";
const std::string PSI_EXTENSION = ".psi";
const std::string ARRAY_EXTENSION = ".rlcsa.a... | 11,962 | 35.033133 | 119 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/misc/definitions.h | #ifndef DEFINITIONS_H
#define DEFINITIONS_H
#include <algorithm>
#include <climits>
// #define MULTITHREAD_SUPPORT // Try to parallelize things using OpenMP.
// #define MASSIVE_DATA_RLCSA // usint and sint become 64-bit in a 64-bit environment.
namespace CSA
{
#ifdef MASSIVE_DATA_RLCSA
typedef unsigned long... | 1,746 | 20.048193 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/bits/rlevector.h | #ifndef RLEVECTOR_H
#define RLEVECTOR_H
#include <fstream>
#include "bitvector.h"
namespace CSA
{
/*
This class is used to construct a RLEVector.
*/
class RLEEncoder : public VectorEncoder
{
public:
RLEEncoder(usint block_bytes, usint superblock_size = VectorEncoder::SUPERBLOCK_SIZE);
~RLEEncoder();
... | 2,885 | 21.030534 | 90 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/bits/bitvector.h | #ifndef BITVECTOR_H
#define BITVECTOR_H
#include <fstream>
#include <list>
#include "../misc/definitions.h"
#include "bitbuffer.h"
namespace CSA
{
/*
This class provides the core functionality for encoding a bit vector.
*/
class VectorEncoder
{
public:
const static usint SUPERBLOCK_SIZE = MEGABYTE;
... | 5,443 | 25.950495 | 96 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/bits/array.h | #ifndef ARRAY_H
#define ARRAY_H
#include <fstream>
#include <list>
#include "../misc/definitions.h"
#include "bitbuffer.h"
namespace CSA
{
/*
Delta-coded array for storing positive integers.
Do not try to encode value 0!
*/
class ArrayEncoder
{
public:
const static usint SUPERBLOCK_SIZE = MEGABYTE;
... | 3,637 | 22.320513 | 96 | h |
uiHRDC | uiHRDC-master/uiHRDC/self-indexes/RLCSAM/rlcsa/bits/bitbuffer.h | #ifndef BITBUFFER_H
#define BITBUFFER_H
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include "../misc/definitions.h"
namespace CSA
{
template<class Data>
class GenericReadBuffer
{
public:
GenericReadBuffer(std::ifstream& file, usint words) :
size(w... | 12,993 | 22.16221 | 95 | h |
null | BiPoS1-main/Settings.h | #define LOWMASS_M 0.079
#define LOWMASS_K 0.45
#define LOWMASS_G 0.8
#define LOWMASS_F 1.04
#define LOWMASS_A 1.4
#define LOWMASS_B 2.1
#define LOWMASS_O 16.0
#define NBDF 10
#define SMPLPNTS_lE 40
#define SMPLPNTS_lP 12
#define SMPLPNTS_q 10
#define SMPLPNTS_e 10
#define SMPLPNTS_la 30
#define SMPLPNTS_mu 20
#define... | 1,350 | 23.125 | 53 | h |
null | BiPoS1-main/Small_routines.h | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int sort_desc(float *x1, float *x2);
int sort_asc(double *x1, double *x2);
/**********************************************
* ascending and descending sorting for qsort *
*********************************************/
float fabsolute(float x);
double dabsolute(... | 1,260 | 38.40625 | 64 | h |
null | BiPoS1-main/Constants.h | /* Mathematical/Physical constants */
#define PI 3.1415926535
#define GN 1.32758e11 /* Msun,km,s */
#define RSUN 4.6523e-3 /* AU */
#define IMF_AV_MASS 0.4 /* av. mass of stellar IMF if fully populated */
#define DELTAT 3.6525e+9 /* cluster assembly time (10Myr) in yr */
#define M_ECL_MAX_star 1.0e+8 /* physical upper... | 594 | 24.869565 | 72 | h |
null | BiPoS1-main/Ptr.h | #include <stdlib.h>
#include <stdio.h>
float *fvector(unsigned int elmnts);
/***********************************************
* returns a float vector with elmnts entries *
***********************************************/
double *dvector(unsigned int elmnts);
/***********************************************
* same ... | 1,844 | 45.125 | 65 | h |
null | BootCMatchGX-main/EXTERNAL/cub-1.7.4/test/mersenne.h | /*
A C-program for MT19937, with initialization improved 2002/1/26.
Coded by Takuji Nishimura and Makoto Matsumoto.
Before using, initialize the state by using init_genrand(seed)
or init_by_array(init_key, key_length).
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
All rights reserved.
Redi... | 5,148 | 30.981366 | 94 | h |
null | BootCMatchGX-main/EXTERNAL/cub-1.7.4/experimental/histogram/histogram_smem_atomics.h | /******************************************************************************
* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistrib... | 6,812 | 33.760204 | 106 | h |
null | BootCMatchGX-main/EXTERNAL/cub-1.7.4/experimental/histogram/histogram_gmem_atomics.h | /******************************************************************************
* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistrib... | 6,368 | 33.241935 | 106 | h |
BootCMatchGX-main | BootCMatchGX-main/EXTERNAL/nsparse-master/cuda-c/inc/nsparse.h | #include <cusparse_v2.h>
#include "prec_setup/spmspmMGPU/csrseg.h"
#ifdef FLOAT
typedef float real;
#elif defined DOUBLE
typedef double real;
#else
typedef double real;
#endif
#define div_round_up(a, b) ((a % b == 0)? a / b : a / b + 1)
/* Hardware Specific Parameters */
#define WARP_BIT 5
#define WARP 32
#define ... | 3,777 | 20.588571 | 87 | h |
BootCMatchGX-main | BootCMatchGX-main/EXTERNAL/nsparse-master/cuda-c/src/kernel/spgemm_hash_kernel_gen.c | #include <stdio.h>
#include <stdlib.h>
#include <nsparse.h>
#define MAX_BIN_NUM 100
#define TB_NUM_WR 4
typedef enum {
GTR,
TR,
PWR
} PATTERN;
int main(int argc, char **argv)
{
int i;
int count;
int shared_tb, shared_sm;
int tb_max, tb_sm;
int max_tb_num_sm;
int pw_min_table,... | 10,352 | 31.454545 | 103 | c |
null | BootCMatchGX-main/BCMGX/src/utility/cudamacro.h | #ifndef _CUDAMACRO_H
#define _CUDAMACRO_H
#define MY_CUDA_CHECK( call) { \
cudaError err = call; \
if( cudaSuccess != err) { \
fprintf(stderr, "Cuda error in file... | 4,037 | 41.957447 | 126 | h |
null | BootCMatchGX-main/BCMGX/src/utility/setting.h | #define BLOCKSIZE 512 // 1024C
// Matrix's value type
#define vtype double
// Matrix's index type
#define itype int
// Matrix's sizes type
#define stype unsigned int
// Matrix's global size and row shift
#define gstype unsigned long
#define gsstype long int
#define VTYPE_MPI MPI_DOUBLE
#define ITYPE_MPI MPI_INT
#def... | 853 | 20.897436 | 37 | h |
null | BootCMatchGX-main/BCMGX/src/utility/myMPI.h | #pragma once
#include <mpi.h>
#define ISMASTER (myid==0)
#define _MPI_ENV int myid, nprocs; MPI_Comm_rank(MPI_COMM_WORLD, &myid); MPI_Comm_size(MPI_COMM_WORLD,&nprocs)
#define CHECK_MPI(X) \
{ \
if (X !=MPI_SUCCESS) { \
fprintf( stderr, "[ERROR MPI] :\n\t LINE: %d; FILE: %s\n", __LINE__, __FILE__);\
ex... | 838 | 23.676471 | 110 | h |
null | BootCMatchGX-main/BCMGX/src/utility/function_cnt.h | #pragma once
#define CUDAMALLOCCNTON 0
#ifndef NOMPI
#include "utility/myMPI.h"
#endif
typedef struct functionCall_cnt{
const char** callers;
const char** calleds;
int* number_of_calls;
int len;
int used_elements;
void init (int number_of_elements) {
len = number_of_elements;
callers = (co... | 3,426 | 27.558333 | 105 | h |
null | BootCMatchGX-main/BCMGX/src/prec_setup/matchingAggregation.h | #pragma once
#include <mpi.h>
#include "cub/cub.cuh"
#include "cub/util_allocator.cuh"
#include "cub/device/device_reduce.cuh"
#include "utility/setting.h"
#include "prec_setup/spmspmMGPU/spspmpi.h"
#include "AMG.h"
#include "basic_kernel/matrix/scalar.h"
#include "basic_kernel/matrix/CSR.h"
#include "basic_kernel/ma... | 643 | 31.2 | 110 | h |
null | BootCMatchGX-main/BCMGX/src/prec_setup/spmspmMGPU/spspmpi.h | #pragma once
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include "utility/utils.h"
#include "utility/handles.h"
#include "basic_kernel/matrix/CSR.h"
#include <cuda_profiler_api.h>
#include "prec_setup/spmspmMGPU/csrseg.h"
itype merge(itype a[], itype b[], itype c[], itype n1, itype n2);
CSR* nsparseMG... | 1,013 | 27.971429 | 95 | h |
null | BootCMatchGX-main/BCMGX/src/basic_kernel/matrix/vector.h | #pragma once
#include <iostream>
#include <curand.h>
#include "utility/setting.h"
#include "utility/utils.h"
#include "utility/myMPI.h"
template <typename T>
struct vector{
int n; // number of non-zero
bool on_the_device;
T *val; // array of nnz values
};
template <typename T>
struct vectorCollection{
unsign... | 2,364 | 23.635417 | 93 | h |
null | BootCMatchGX-main/BCMGX/src/basic_kernel/halo_communication/halo_communication.h | #pragma once
#include <cub/cub.cuh>
#include "basic_kernel/matrix/scalar.h"
#include "basic_kernel/matrix/CSR.h"
#include "basic_kernel/matrix/vector.h"
#include "basic_kernel/halo_communication/local_permutation.h"
__global__
void _getToSend(itype n, vtype *x, vtype *what_to_send, itype *to_send);
__global__
void ... | 745 | 28.84 | 99 | h |
null | BootCMatchGX-main/BCMGX/src/basic_kernel/halo_communication/local_permutation.h | #ifndef LOCAL_PERMUTATION
#define LOCAL_PERMUTATION
#include <unistd.h>
#include <stdio.h>
#include "prec_setup/AMG.h"
// #include "basic_kernel/halo_communication/localization_debug.h"
// ---------------------------------------------------------------------------------
vector<itype>* compute_mask_permut (CSR *Alo... | 1,060 | 32.15625 | 110 | h |
null | AMGX-main/external/rapidjson/include/rapidjson/prettywriter.h | #ifndef RAPIDJSON_PRETTYWRITER_H_
#define RAPIDJSON_PRETTYWRITER_H_
#include "writer.h"
namespace rapidjson {
//! Writer with indentation and spacing.
/*!
\tparam Stream Type of ouptut stream.
\tparam Encoding Encoding of both source strings and output.
\tparam Allocator Type of allocator for allocating memory of... | 5,157 | 31.853503 | 109 | h |
null | AMGX-main/external/rapidjson/include/rapidjson/stringbuffer.h | #ifndef RAPIDJSON_STRINGBUFFER_H_
#define RAPIDJSON_STRINGBUFFER_H_
#include "rapidjson.h"
#include "internal/stack.h"
namespace rapidjson {
//! Represents an in-memory output stream.
/*!
\tparam Encoding Encoding of the stream.
\tparam Allocator type for allocating memory buffer.
\implements Stream
*/
template <... | 1,326 | 25.54 | 115 | h |
null | AMGX-main/external/rapidjson/include/rapidjson/writer.h | #ifndef RAPIDJSON_WRITER_H_
#define RAPIDJSON_WRITER_H_
#include "rapidjson.h"
#include "internal/stack.h"
#include "internal/strfunc.h"
#include <cstdio> // snprintf() or _sprintf_s()
#include <new> // placement new
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4127) // conditional expression is c... | 6,764 | 26.954545 | 99 | h |
null | AMGX-main/external/rapidjson/include/rapidjson/internal/strfunc.h | #ifndef RAPIDJSON_INTERNAL_STRFUNC_H_
#define RAPIDJSON_INTERNAL_STRFUNC_H_
namespace rapidjson {
namespace internal {
//! Custom strlen() which works on different character types.
/*! \tparam Ch Character type (e.g. char, wchar_t, short)
\param s Null-terminated input string.
\return Number of characters in the st... | 656 | 25.28 | 101 | h |
null | AMGX-main/examples/amgx_test_common.h | #include <stdlib.h> /* import labs() */
#include <math.h>
#if defined(_WIN32)
#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
#define NOMINMAX
#include <windows.h>
static double second (void)
{
LARGE_INTEGER t;
static double oofreq;
static int checkedForHighResTimer;
static BOOL ... | 2,375 | 22.067961 | 68 | h |
null | AMGX-main/examples/amgxP_capi.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 5,761 | 35.238994 | 118 | h |
null | AMGX-main/examples/amgxP_c.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,430 | 29.096491 | 104 | h |
null | AMGX-main/examples/convert.c | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,970 | 39.148649 | 104 | c |
null | AMGX-main/include/sort.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,710 | 41.775 | 74 | h |
null | AMGX-main/include/readers.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 7,634 | 49.9 | 108 | h |
null | AMGX-main/include/resources.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,167 | 35.413793 | 126 | h |
null | AMGX-main/include/amg_signal.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,744 | 40.547619 | 74 | h |
null | AMGX-main/include/stream.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,032 | 33.457627 | 74 | h |
null | AMGX-main/include/matrix_distribution.h | /* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | 3,592 | 41.77381 | 108 | h |
null | AMGX-main/include/amgx_c.h | /* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 16,303 | 25.044728 | 126 | h |
null | AMGX-main/include/device_properties.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,660 | 42.710526 | 74 | h |
null | AMGX-main/include/transpose.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,789 | 42.658537 | 74 | h |
null | AMGX-main/include/permute.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,981 | 40.479167 | 97 | h |
null | AMGX-main/include/amgx_config.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 7,858 | 36.783654 | 129 | h |
null | AMGX-main/include/misc.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,081 | 41.489796 | 74 | h |
null | AMGX-main/include/generic_spmv_csr.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 15,337 | 42.822857 | 131 | h |
null | AMGX-main/include/thread_manager.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 7,383 | 32.261261 | 110 | h |
null | AMGX-main/include/ld_functions.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,406 | 29.419643 | 74 | h |
null | AMGX-main/include/gaussian_elimination.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,958 | 36.854962 | 130 | h |
null | AMGX-main/include/getvalue.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,483 | 24.050279 | 74 | h |
null | AMGX-main/include/version.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,812 | 45.487179 | 74 | h |
null | AMGX-main/include/memory_space.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,659 | 49.30303 | 74 | h |
null | AMGX-main/include/truncate.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,839 | 40.367521 | 108 | h |
null | AMGX-main/include/types.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,373 | 22.760563 | 77 | h |
null | AMGX-main/include/global_thread_handle.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 8,122 | 30.730469 | 101 | h |
null | AMGX-main/include/amgxP_c.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 3,348 | 28.377193 | 79 | h |
null | AMGX-main/include/memory_info.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,524 | 34.069444 | 74 | h |
null | AMGX-main/include/reorder_partition.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 6,085 | 42.784173 | 109 | h |
null | AMGX-main/include/texture.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,788 | 38.755556 | 89 | h |
null | AMGX-main/include/hash_workspace.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,234 | 40.930693 | 119 | h |
null | AMGX-main/include/miscmath.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2,409 | 36.076923 | 93 | h |
null | AMGX-main/include/amgx_lapack.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,342 | 40.759615 | 112 | h |
null | AMGX-main/include/amgx_cublas.h | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 6,301 | 39.658065 | 123 | h |
null | AMGX-main/include/block_dia_csr_matrix.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 8,692 | 38.513636 | 124 | h |
null | AMGX-main/include/stacktrace.h | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 4,958 | 34.421429 | 100 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.