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
HDN
HDN-master/training_dataset/coco14/pycocotools/common/maskApi.h
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
2,176
34.688525
75
h
HDN
HDN-master/training_dataset/coco/pycocotools/common/maskApi.c
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
8,249
34.714286
75
c
HDN
HDN-master/training_dataset/coco/pycocotools/common/gason.h
// https://github.com/vivkin/gason - pulled January 10, 2016 #pragma once #include <stdint.h> #include <stddef.h> #include <assert.h> enum JsonTag { JSON_NUMBER = 0, JSON_STRING, JSON_ARRAY, JSON_OBJECT, JSON_TRUE, JSON_FALSE, JSON_NULL = 0xF }; struct JsonNode; #define JSON_VALUE_PAYLOA...
3,483
24.430657
104
h
HDN
HDN-master/training_dataset/coco/pycocotools/common/maskApi.h
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
2,176
34.688525
75
h
FoNCO
FoNCO-master/cutest_py/cutest.h
/* * ====================================================================== * * cutest.h * Data type definitions, constants definitions and function prototypes * to interface the CUTEst testing environment Fortran library with C * * This header file is built from different sources and different authors * have c...
14,182
43.741325
95
h
FoNCO
FoNCO-master/cutest_py/py_cute.c
/* ================================================ * CUTEst interface to Python * * Jiashan Wang UW * * ================================================ */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "cutest.h" void _open(char* fname, integer* funit) { integer ierr = 0; FORT...
3,204
23.653846
80
c
mushy-layer
mushy-layer-master/src/MushyLayerParams.h
/* * MushyLayerParams.h * * Created on: 23 May 2016 * Author: parkinsonjl */ #ifndef SRC_MUSHYLAYERPARAMS_H_ #define SRC_MUSHYLAYERPARAMS_H_ #include <cmath> #include "LoHiSide.H" #include "RealVect.H" #include "CH_HDF5.H" #include "BCInfo.h" // Comment below ensures that enums doxygen generates documenta...
22,723
26.411339
101
h
mushy-layer
mushy-layer-master/src/ChomboSpline.h
/* * ChomboSpline.h is a port of spline.h to match the Chombo interface, * primarily to include Real rather than double so we can also use floats * spline.h * * simple cubic spline interpolation library without external * dependencies * * --------------------------------------------------------------------- * ...
3,833
24.223684
79
h
mushy-layer
mushy-layer-master/src/Diagnostics.h
/* * Diagnostics.h * * Created on: 30 May 2017 * Author: parkinsonjl */ #ifndef SRC_DIAGNOSTICS_H_ #define SRC_DIAGNOSTICS_H_ //#include <cmath> #include "FArrayBox.H" #include "Misc.H" #include "Vector.H" #include "mushyLayerOpt.h" #include "parstream.H" #include <fstream> #include <iomanip> #include "Na...
4,483
22.354167
80
h
mushy-layer
mushy-layer-master/src/AMRScalarDiffusionOp.h
/* * AMRScalarDiffusionOp.h * * Created on: 23 Aug 2019 * Author: parkinsonjl */ #ifndef SRC_AMRSCALARDIFFUSIONOP_H_ #define SRC_AMRSCALARDIFFUSIONOP_H_ #include "CoarseAverage.H" #include "VCAMRPoissonOp2.H" #include "NamespaceHeader.H" /// Operator for doing diffusion of a scalar quantity /** * Derive...
2,416
24.712766
79
h
mushy-layer
mushy-layer-master/src/Channel.h
/* * Channel.h * * Created on: 28 Jul 2017 * Author: parkinsonjl */ #ifndef SRC_CHANNEL_H_ #define SRC_CHANNEL_H_ #include "IntVectSet.H" /// Representation of a brine channel /** * Consider a channel as just a collection of IntVects (an IntVectSet) * but with a few other helpful functions e.g. calculat...
2,581
22.053571
76
h
mushy-layer
mushy-layer-master/src/AMRProjectionOp.h
/* * AMRProjectionOp.h * * Created on: 16 Nov 2018 * Author: parkinsonjl */ #ifndef SRC_AMRPROJECTIONOP_H_ #define SRC_AMRPROJECTIONOP_H_ #include "CoarseAverage.H" #include "VCAMRPoissonOp2.H" #include "NamespaceHeader.H" /// Operator for doing projector with a variable coefficient. /** * This is essen...
5,259
32.503185
80
h
mushy-layer
mushy-layer-master/src/LevelDomainFluxRegister.h
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #ifndef AMRTOOLS_LEVELDOMAINFLUXREGISTER_H_ #define AMRTOOLS_LEVELDOMAINFLUXR...
2,933
26.679245
76
h
mushy-layer
mushy-layer-master/VisitPatch/avtChomboFileFormat.h
/***************************************************************************** * * Copyright (c) 2000 - 2016, Lawrence Livermore National Security, LLC * Produced at the Lawrence Livermore National Laboratory * LLNL-CODE-442911 * All rights reserved. * * This file is part of VisIt. For details, see https://visit.llnl...
10,303
35.28169
103
h
null
ccpdmp-main/src/mala.h
#ifndef MALA_H #define MALA_H #include "types.h" double log_q_mala(arma::vec& x, arma::vec& y, arma::vec& x_grad, double eps){ arma::vec res = y - x + (eps/2.0)*x_grad; return(-1.0/(2.0*eps) * arma::dot(res,res)); } // [[Rcpp::export]] List mala_pnt(double maxTime, SEXP post_f, SEXP grad_f, const List& Data, cons...
2,224
25.176471
93
h
null
ccpdmp-main/src/inversion.h
#ifndef INVERSION_H #define INVERSION_H #include <RcppArmadillo.h> // Simulate from a + bs // [[Rcpp::export]] arma::vec linear_inv_t(double a, double b, double u, double tmax) { arma::vec res(2); res.zeros(); double tsim, t_zero, eps = 1e-13; if(std::abs(u) < eps){ return(res); } else if ( a > eps & ...
1,938
21.287356
89
h
null
ccpdmp-main/src/zigzag_cpp.h
#ifndef ZIGZAG_CPP_H #define ZIGZAG_CPP_H #include <queue> #include "types.h" #include "poly.h" #include "cave_vex_rate.h" #include "piecewise.h" #include "inversion.h" #include "rate.h" // [[Rcpp::export]] List zigzag_cpp(double maxTime, SEXP rate_f, const List& local_updates, const List& Data, const arma::...
5,747
28.628866
109
h
null
ccpdmp-main/src/hmc.h
#ifndef HMC_H #define HMC_H #include "types.h" // [[Rcpp::export]] List hmc(double maxTime, SEXP post_f, SEXP grad_f, const List& Data, const arma::vec& y, arma::vec x0, double epsilon = 0.1, double stoch_time = 1, int nmax = 10^6, int burn = -1, int thin = 1){ XPtr<mcmcGradPtr> xpgrad(g...
2,419
24.744681
89
h
null
ccpdmp-main/src/types.h
#ifndef types_H #define types_H // Define types so Cpp arguments may be passed to functions // Pointer for function returning rate and possibly gradients // Arguments t, t_old, x, theta, y, Data, rate_index, grad typedef arma::vec (*ratePtr)(double, arma::vec&, arma::vec&, arma::vec&, const arma::v...
929
37.75
76
h
null
ccpdmp-main/src/bps_cpp.h
#ifndef BPS_CPP_H #define BPS_CPP_H #include <queue> #include "types.h" #include "poly.h" #include "cave_vex_rate.h" #include "piecewise.h" #include "inversion.h" #include "rate.h" // [[Rcpp::export]] List bps_cpp(double maxTime, SEXP rate_f, const List& factors, const List& local_updates, const List& Data, ...
6,518
28.631818
109
h
null
ccpdmp-main/src/poly.h
#ifndef POLY_H #define POLY_H #include <RcppArmadillo.h> using namespace Rcpp; arma::vec get_chebspace_u(int n_pnts){ arma::vec ts = (arma::linspace<arma::vec>(0.0, n_pnts-1, n_pnts) + 0.5)/n_pnts; arma::vec tau_shifted = arma::cos(ts*arma::datum::pi); return(tau_shifted); } arma::vec adjust_range(arma::vec ta...
1,501
25.821429
101
h
null
ccpdmp-main/src/piecewise.h
#ifndef PIECEWISE_H #define PIECEWISE_H #include <RcppArmadillo.h> using namespace Rcpp; #include "inversion.h" class piecewise { public: // Store the function evaluations std::map< double, arma::vec > fEvaluations; double eps = 1e-14; // add new (t, f) pair --> f = (fu, fn, gn) void push_tf(double t_in, ...
3,677
26.654135
103
h
null
OV-3DET-main/third_party/pointnet2/_ext_src/include/utils.h
// Copyright (c) Facebook, Inc. and its affiliates. #pragma once #include <ATen/cuda/CUDAContext.h> #include <torch/extension.h> #define CHECK_CUDA(x) \ do { \ AT_ASSERT(x.is_cuda(), #x " must be a CUDA tensor"); \...
1,041
34.931034
70
h
null
OV-3DET-main/third_party/pointnet2/_ext_src/include/cuda_utils.h
// Copyright (c) Facebook, Inc. and its affiliates. #ifndef _CUDA_UTILS_H #define _CUDA_UTILS_H #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <cmath> #include <cuda.h> #include <cuda_runtime.h> #include <vector> #define TOTAL_THREADS 512 inline int opt_n_threads(int work_size) { const int p...
1,356
29.840909
77
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/common/includes/bitmap/bitmap.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,334
23.722222
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/common/includes/logger/logger.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,905
25.84507
88
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/common/includes/oclHelper/oclHelper.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,239
24.306122
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/common/includes/simplebmp/simplebmp.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,529
24.081967
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/common/includes/cmdparser/cmdlineparser.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
2,826
24.468468
78
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/host/debug_profile/src/host.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
677
31.285714
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/host/hbm_rama_ip/src/krnl_vaddmul.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
778
28.961538
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie2_pl/aie/kernels.h
/* * Copyright 2022 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
747
33
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie2_pl/aie/graph.h
/* * Copyright 2022 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
2,188
34.885246
100
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie2_pl/aie/kernels/include.h
/* * Copyright 2022 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
808
28.962963
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie_pl/pl_ctrl_aie_asyn/src/aie/kernels.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
773
31.25
81
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie_pl/pl_ctrl_aie_asyn/src/aie/graph.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
2,341
34.484848
100
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/validate_aie_pl/pl_ctrl_aie_asyn/src/aie/kernels/include.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
800
27.607143
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/ps_aie_gmio_test/src/kernels.h
/** * Copyright (C) 2022 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
752
30.375
88
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/ps_aie_gmio_test/src/include.h
/** * Copyright (C) 2022 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
733
27.230769
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/ps_aie_gmio_test/src/graph.h
/** * Copyright (C) 2022 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
1,293
24.88
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/validate/ps_bandwidth_test/src/ps_bandwidth.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <syslog.h> #include <sys/mman.h> #include "xrt/xrt_kernel.h" #ifdef __cplusplus extern "C" { #endif #include "sk_types.h" // User private data structure container (context object) definit...
3,269
30.747573
129
c
Vitis_Accel_Examples
Vitis_Accel_Examples-master/sys_opt/multiple_process/src/multi_krnl.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
762
30.791667
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/kmeans.h
/** * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. * By downloading, copying, installing or using the software you agree * to this license. If you do not agree to this license, do not download, * install, copy or use the software. * * Copyright (c) 2005 Northwestern University * Copyright (C) 201...
1,299
34.135135
114
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/timer.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,804
29.083333
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/kmeans_config.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
766
25.448276
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/krnl_kmeans.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,202
31.513514
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/fpga_kmeans.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
2,476
26.831461
86
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/demo/kmeans/src/kmeans_clustering_cmodel.c
/** * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. * By downloading, copying, installing or using the software you agree * to this license. If you do not agree to this license, do not download, * install, copy or use the software. * * Copyright (c) 2005 Northwestern University * Copyright (C) 201...
6,718
40.220859
100
c
Vitis_Accel_Examples
Vitis_Accel_Examples-master/cpp_kernels/dependence_inter/src/vconv.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
835
31.153846
85
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/cpp_kernels/custom_datatype/src/rgb_to_hsv.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,471
33.232558
79
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/cpp_kernels/simple_vadd/src/vadd.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,199
32.333333
80
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/performance/hbm_bandwidth_pseudo_random/src/krnl_vaddmul.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
778
28.961538
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/performance/hbm_bandwidth/src/krnl_vaddmul.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
747
31.521739
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/system_compilation/quick_start_sc/src/coefficients.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
6,856
43.816993
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/system_compilation/quick_start_sc/src/common.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
905
23.486486
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/aie_kernels/aie_adder/src/aie/kernel.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
800
31.04
91
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/aie_kernels/aie_adder/src/aie/graph.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,447
27.392157
86
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/aie_kernels/single_aie_gmio_xrt/src/aie/kernel.h
/********** © Copyright 2020 Xilinx, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
754
40.944444
111
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/aie_kernels/single_aie_gmio_xrt/src/aie/graph.h
/********** © Copyright 2020 Xilinx, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
1,182
27.853659
72
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_adder_hybrid_swemu/src/aie/kernel.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
800
31.04
91
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_adder_hybrid_swemu/src/aie/graph.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,447
27.392157
86
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_func_mode/src/sw/host.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,191
26.72093
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_func_mode/src/aie/include.h
#ifndef __INCLUDE_H__ #define __INCLUDE_H__ #define INTERPOLATOR27_INPUT_SAMPLES 128 #define INTERPOLATOR27_INPUT_MARGIN (16*4) #define INTERPOLATOR27_COEFFICIENTS 16 #define INTERPOLATOR27_OUTPUT_SAMPLES (INTERPOLATOR27_INPUT_SAMPLES * 2) #define INTERPOLATOR27_INPUT_BLOCK_SIZE (INTERPOLATOR27_INPUT_SAMPLES * 4) #de...
670
36.277778
74
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_func_mode/src/aie/graph.h
#ifndef __GRAPH_H__ #define __GRAPH_H__ #include <adf.h> #include "include.h" #include "kernels.h" using namespace adf; class clipped : public graph { private: kernel interpolator; kernel classify; public: port<input> in; port<output> out; port<output> clip_in; port<input> clip_out; ...
1,216
22.862745
110
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_baremetal/aie/kernels.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
882
31.703704
85
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_baremetal/aie/include.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,259
37.181818
75
h
Vitis_Accel_Examples
Vitis_Accel_Examples-master/emulation/aie_baremetal/aie/graph.h
/** * Copyright (C) 2019-2021 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
2,187
31.656716
119
h
pe-sieve
pe-sieve-master/pe_sieve.h
/** * @file * @brief The root of the PE-sieve scanner. */ #pragma once #include <windows.h> #include <iostream> #include <stdexcept> #include <pe_sieve_types.h> #include <pe_sieve_return_codes.h> #include "pe_sieve_ver_short.h" #include "pe_sieve_report.h" #include "postprocessors/report_formatter.h" namespace p...
786
22.848485
99
h
pe-sieve
pe-sieve-master/params.h
#pragma once #include <sstream> #include "pe_sieve.h" #include "params_info/pe_sieve_params_info.h" #include <paramkit.h> using namespace paramkit; using namespace pesieve; //scan options: #define PARAM_PID "pid" #define PARAM_SHELLCODE "shellc" #define PARAM_OBFUSCATED "obfusc" #define PARAM_THREADS "threads" #def...
9,976
32.820339
104
h
pe-sieve
pe-sieve-master/params_info/pe_sieve_params_info.h
#pragma once #include <iostream> #include <pe_sieve_types.h> namespace pesieve { std::string translate_dump_mode(const DWORD dump_mode); std::string translate_out_filter(const pesieve::t_output_filter o_filter); std::string translate_data_mode(const pesieve::t_data_scan_mode &mode); std::string translate_imprec_m...
1,011
41.166667
77
h
pe-sieve
pe-sieve-master/scanners/module_scanner.h
#pragma once #include <windows.h> #include <psapi.h> #include <map> #include <peconv.h> #include "module_scan_report.h" #include "module_data.h" #include "../utils/format_util.h" #include "process_feature_scanner.h" namespace pesieve { //! A base class for all the scanners operating on module data. class Module...
748
20.4
92
h
pe-sieve
pe-sieve-master/scanners/mempage_data.h
#pragma once #include <windows.h> #include <peconv.h> #include "../utils/byte_buffer.h" namespace pesieve { class MemPageData { public: MemPageData(HANDLE _process, bool _is_process_refl, ULONGLONG _start_va, ULONGLONG _stop_va) : processHandle(_process), start_va(_start_va), stop_va(_stop_va), is_liste...
2,149
22.11828
98
h
pe-sieve
pe-sieve-master/scanners/mapping_scanner.h
#pragma once #include <windows.h> #include "module_scanner.h" #include "../utils/path_util.h" #include "process_feature_scanner.h" namespace pesieve { class MappingScanReport : public ModuleScanReport { public: MappingScanReport(HMODULE _module, size_t _moduleSize) : ModuleScanReport(_module, _moduleSize) ...
1,656
25.725806
131
h
pe-sieve
pe-sieve-master/scanners/patch_list.h
#pragma once #include <windows.h> #include <vector> #include <fstream> #include <peconv.h> namespace pesieve { typedef enum { HOOK_NONE, HOOK_INLINE, HOOK_ADDR_REPLACEMENT, COUNT_HOOK_TYPES } t_hook_type; class PatchList { public: class Patch { public: Patch(HMODULE module_base, size_t patch_i...
3,224
20.938776
111
h
pe-sieve
pe-sieve-master/scanners/module_data.h
#pragma once #include <windows.h> #include <psapi.h> #include <map> #include <set> #include <peconv.h> #include "../utils/format_util.h" #include "module_cache.h" namespace pesieve { //! Loads a module from the disk, corresponding to the module in the scanned process' memory. class ModuleData { public: Module...
5,186
21.951327
98
h
pe-sieve
pe-sieve-master/scanners/headers_scanner.h
#pragma once #include <windows.h> #include "module_scanner.h" namespace pesieve { //! A report from the headers scan, generated by HeadersScanner class HeadersScanReport : public ModuleScanReport { public: HeadersScanReport(HMODULE _module, size_t _moduleSize) : ModuleScanReport(_module, _moduleSize), ...
3,045
29.158416
132
h
pe-sieve
pe-sieve-master/postprocessors/pe_reconstructor.h
#pragma once #include <windows.h> #include <psapi.h> #include <map> #include <peconv.h> #include "pe_buffer.h" #include "../scanners/artefact_scanner.h" namespace pesieve { template <typename IMAGE_OPTIONAL_HEADER_T> bool overwrite_opt_hdr(BYTE* vBuf, size_t vBufSize, IMAGE_OPTIONAL_HEADER_T* opt_hdr_ptr, PeArtef...
1,761
24.536232
114
h
pe-sieve
pe-sieve-master/postprocessors/pe_buffer.h
#pragma once #include <peconv.h> #include "../utils/byte_buffer.h" namespace pesieve { class PeBuffer { public: PeBuffer(HANDLE _process_hndl, bool _is_refl) : processHndl(_process_hndl), isRefl(_is_refl), vBuf(nullptr), vBufSize(0), moduleBase(0), relocBase(0) { } ~PeBuffer() { freeBuffer(); ...
2,547
20.777778
127
h
pe-sieve
pe-sieve-master/postprocessors/imp_rec/imp_reconstructor.h
#pragma once #include <windows.h> #include <map> #include <peconv.h> #include "pe_sieve_types.h" #include "../pe_buffer.h" #include "iat_block.h" #include "../utils/artefacts_util.h" namespace pesieve { class ImportTableBuffer { public: ImportTableBuffer(DWORD _descriptorsRVA) : descriptors(nullptr), desc...
6,177
23.418972
134
h
pe-sieve
pe-sieve-master/utils/format_util.h
#pragma once #include <windows.h> #include <string> #include <set> #include <sstream> #include <iomanip> #include "strings_util.h" #define OUT_PADDED(stream, field_size, str) \ std::cout.fill(' '); \ if (field_size) stream << std::setw(field_size) << ' '; \ stream << str; namespace pesieve { namespace util { ...
912
22.410256
121
h
pe-sieve
pe-sieve-master/utils/path_util.h
#pragma once #include <windows.h> #include <sstream> #include <iomanip> namespace pesieve { namespace util{ char* get_subpath_ptr(char *modulePath, char* searchedPath); // Add escape characters to path separators std::string escape_path_separators(std::string path); // Get system drive letter, i.e. "C:" ...
602
22.192308
79
h
pe-sieve
pe-sieve-master/utils/byte_buffer.h
#pragma once #include <windows.h> #include <peconv.h> namespace pesieve { namespace util { struct BasicBuffer { public: BasicBuffer() : data(nullptr), data_size(0), real_start(0), real_end(0), padding(0) { } ...
4,374
24.584795
96
h
pe-sieve
pe-sieve-master/utils/path_converter.h
#pragma once #include <iostream> namespace pesieve { namespace util { //convert from System32 path to the WoW64 equivalent: bool convert_to_wow64_path(char *szModName); //converts path in format: \SystemRoot\... to format: C:\... std::string convert_to_win32_path(const std::string &path); //converts pa...
511
21.26087
79
h
pe-sieve
pe-sieve-master/utils/process_reflection.h
#pragma once #include <windows.h> #define USE_PROCESS_SNAPSHOT #define USE_RTL_PROCESS_REFLECTION namespace pesieve { namespace util { // required by RtlCreateProcessReflection: const DWORD reflection_access1 = PROCESS_CREATE_THREAD | PROCESS_VM_OPERATION | PROCESS_DUP_HANDLE; // required by PssCaptureSnaps...
761
25.275862
126
h
pe-sieve
pe-sieve-master/include/pe_sieve_return_codes.h
/** * @file * @brief The codes returned by the PE-sieve EXE */ #pragma once // return codes for PE-sieve.exe: typedef enum { PESIEVE_ERROR = (-1), ///< the scan has failed, PE-sieve returned an error PESIEVE_INFO = 0, ///< PE-sieve was deployed in the info mode (i.e. displaying help) PESIEVE_NOT_DETECTED = 1...
533
34.6
110
h
pe-sieve
pe-sieve-master/stats/std_dev_calc.h
#pragma once #include <windows.h> #include <iostream> #include <map> namespace pesieve { namespace stats { class StdDeviationCalc { public: StdDeviationCalc(const std::map<BYTE, size_t>& _population, size_t _max) : mean(0), population(_population) { max = _max; mean = calcMean(); } do...
2,067
20.319588
98
h
pe-sieve
pe-sieve-master/stats/entropy.h
#pragma once #include <map> namespace pesieve { namespace stats { template <typename T> size_t generateHistogram(IN T buffer[], IN size_t bufferSize, OUT std::map<T, size_t> &counts) { if (!buffer || !bufferSize) return 0; for (size_t i = 0; i < bufferSize; ++i) { const T val = buffer[i]; counts[...
1,130
24.133333
118
h
pe-sieve
pe-sieve-master/stats/stats_util.h
#pragma once #include <windows.h> #include <iostream> #include <string> namespace pesieve { namespace stats { template <typename T> std::string hexdumpValue(const BYTE* in_buf, const size_t max_size) { std::stringstream ss; for (size_t i = 0; i < max_size; i++) { ss << "\\x" << std::setfill('0') << ...
1,530
22.19697
103
h
null
FreqPCR-main/rasterizer/csrc/rasterization_utils.h
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. #pragma once // The default value of the NDC range is [-1, 1], however in the case that // H != W, the NDC range is set such that the shorter side has range [-1, 1] and // the longer side is scaled by the ratio of H:W. S1 is the dimension for wh...
1,504
42
80
h
null
FreqPCR-main/rasterizer/csrc/rasterize_points.h
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. #pragma once #include <torch/extension.h> #include <cstdio> #include <tuple> // #include "utils/pytorch3d_cutils.h" #define CHECK_CUDA(x) TORCH_CHECK(x.is_cuda(), #x "must be a CUDA tensor.") #define CHECK_CONTIGUOUS(x) \ TORCH_CHECK(x.is_cont...
15,211
40.224932
80
h
null
trivium-main/trivium64.c
/* * PRNG-style implementation of trivium (64-bit version). * Author: Charles Bouillaguet (charles.bouillaguet@lip6.fr). * * This version operates on 64-bit words and returns 64 pseudo-random bits. * * Trivium is a stream cipher (cryptographic-strength RNG) selected by eSTREAM * (part of the the EU ECRYPT proj...
1,990
29.630769
80
c
null
trivium-main/trivium32.c
/* * PRNG-style implementation of trivium. * Author: Charles Bouillaguet (charles.bouillaguet@lip6.fr). * * This version operates on 32-bit words and returns 32 pseudo-random bits. * * Trivium is a stream cipher (cryptographic-strength RNG) selected by eSTREAM * (part of the the EU ECRYPT project) to be part o...
2,088
27.616438
86
c
null
SparseP-main/spmv/2D/DCOO/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/DCOO/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; } Params; static void usage() { fprintf(stderr, "\nUsage: ./program [options]" "\n" ...
1,838
24.901408
87
h
null
SparseP-main/spmv/2D/DCOO/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,888
28.952174
130
h
null
SparseP-main/spmv/2D/DCSR/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/DCSR/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; } Params; static void usage() { fprintf(stderr, "\nUsage: ./program [options]" "\n" ...
1,838
24.901408
87
h
null
SparseP-main/spmv/2D/DCSR/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,680
30.097166
130
h
null
SparseP-main/spmv/2D/DCSR/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,037
42.244019
127
c
null
SparseP-main/spmv/2D/RBDBCOO-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