sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
fcf1a5dcecc87fa07f16964b336bd509e9f357d650bd23bae92209e58e3afbbb | C/C++ | 24,948 | 698 | /*****************************************************************************
* ppp.h - Network Point to Point Protocol header file.
*
* Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
* portions Copyright (c) 1997 Global Election Systems Inc.
*
* The authors hereby grant permission to use, copy... |
fcf8eff7d8ef3353f3be84f9a785426615a5ec2c0c91c000407ad66841ba441a | C/C++ | 25,054 | 431 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include "CoreMinimal.h"
#include "Carla/Lights/CarlaLight.h"
#include "Kismet/Bl... |
13d42caee095ad7b0b1030479f118a69b8b6fed9554e618b4ba65dedda46ffdc | C/C++ | 25,088 | 662 | #pragma once
#include <carla/Memory.h>
#include <carla/PythonUtil.h>
#include <carla/Time.h>
#include <carla/geom/Acceleration.h>
#include <carla/geom/AngularVelocity.h>
#include <carla/geom/BoundingBox.h>
#include <carla/geom/GeoLocation.h>
#include <carla/geom/Location.h>
#include <carla/geom/Quaternion.h>
#include... |
20d5df8475ac21c776a25b7f02ca5b703ef278fa95b3211fd273ded7091545e0 | C/C++ | 25,153 | 785 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
// ETSI ITS message model (CAM, DENM containers). This header is a vendored
// transliteration ... |
7a1ff2e78fc687bc13e38e0549b56df028abb655c957b4476462842e3ccc829a | C/C++ | 25,372 | 888 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include "Carla/Sensor/PixelReader.h"
#include "Carla/Sensor/RHIGPUReadbackPool.h... |
9f797297950f1d475a5a12b468621aac5894fb1e27439d1aeda4d5e810396ce8 | C/C++ | 25,543 | 688 | /**
* @file
* Socket API (to be used from non-TCPIP threads)
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1... |
5a37079947783c645bea00e8b04a7af86765412d1b0de0015d717f7013a74a84 | C/C++ | 25,770 | 979 | // Copyright (c) 2025 Computer Vision Center (CVC) at the Universitat Autonoma de Barcelona (UAB).
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include <fastcdr/Cdr.h>
#include <fastcdr/FastBuffer.h>
#include <fastcdr/exceptions/B... |
5a3a35ecbfe7dcf06fa4ed72d00ab1e897786fa90d7cc27a0bfb2e1247f27b6e | C/C++ | 25,937 | 669 | /**
* @file
* netif API (to be used from TCPIP thread)
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redi... |
089527577452b3761e50ed1f45aaaa2a0dd677af681715de6660644520d4e363 | C/C++ | 26,662 | 942 | /*
* Copyright 1993-1996 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings ... |
b97b058ae2d1abb36bd32d20ba0b3588841849aa719e259f3abf83d3a37b5f82 | C/C++ | 26,705 | 666 | #pragma once
/*
* ModelFitFilter.h
*
* Copyright (c) 2018 Tobias Wood.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#include <Eigen/Core>
#incl... |
e84f701b0c304ee6af07d51420fa74999a491209215abc94c9a320649aa63bb0 | C/C++ | 27,185 | 367 | #ifndef CORRECTOR
#define CORRECTOR
using namespace std;
class Corrector {
public:
static void initialize() {
/*vals = vector<double>({2.609, 1.324, 1.06, 1.038, 0.728, 0.552, 0.527,
* 0.4106, 0.3872, 0.3307, 0.322, 0.3144, 0.3144, 0.228, 0.213, 0.213,
* 0.213, 0.1926, 0.1926, 0.151, 0.151, 0.151, 0.... |
73571bbfa3d5b518d45ca159252df58a308e568c6b9cb02193ce86d15cc021e0 | C/C++ | 27,780 | 720 | /* -*- mode: C -*- */
/*
IGraph library.
Copyright (C) 2003-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
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 Softw... |
f652bdd083bbab53d00e39ad355fc1d5df0bc90ed98952d664f1ebae18d13199 | C/C++ | 27,921 | 352 |
// encoding:
#ifdef STREAMVBYTE_SSSE3
static const uint8_t shuf_lut[64*16] = {
0x00, 0x04, 0x08, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x01, 0x04, 0x08, 0x0C, 0x0D, 0x0E, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x01, 0x02, 0x04, 0x08, 0x0C, 0x0D, 0x0... |
e240ae9ce9cc8725e1e7fbaf75aea3a0a4039f467a0baf169b851e07f759aea8 | C/C++ | 29,229 | 212 | /*! This is the methods container that contains the most methods for the RESILIENT.*/
#ifndef _RESILIENT_Methods_
#define _RESILIENT_Methods_
#include "Headers.h"
#include "AveragingOrientation.h"
#include "FiberOrientation.h"
#include <vtkMatrix3x3.h>
class Methods {
public:
static void init(DataFormat &data);
st... |
8ee82a8b2a272269951b6e8ac86520ca5f359677f70f7788f78fe50a8773f145 | C/C++ | 30,939 | 1,153 | /////////////////////////////////////////////
//
// Mesh Simplification Tutorial
//
// (C) by Sven Forstmann in 2014
//
// License : MIT
// http://opensource.org/licenses/MIT
//
// https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
//
// 5/2016: Chris Rorden created minimal version for OSX/Linux/Windows compi... |
89f30294673a7b03c25a3abdad90abc12b08581701eac3826747ffe2451dd4fb | C/C++ | 31,877 | 756 | /*
* CXSPARSE: a Concise Sparse Matrix package - Extended.
* Copyright (c) 2006-2009, Timothy A. Davis.
* http://www.cise.ufl.edu/research/sparse/CXSparse
*
* CXSparse 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... |
1a74ec0ec530b89a06fcfc19bdfff2944619adb1763d1b5f60a7950d223ee287 | C/C++ | 31,934 | 736 | /*
* C library of Limited memory BFGS (L-BFGS).
*
* Copyright (c) 1990, Jorge Nocedal
* Copyright (c) 2007-2010 Naoaki Okazaki
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
55d0b3d7bd200778238aa7bcdf205d007a918388d5e3f0b489a9ff40413bff0d | C/C++ | 32,357 | 1,031 | /******************************************************************************
* Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/***************************************************************... |
da652938cb56859dc4f01288813b771c2c7e33c21aa8f64ab3c361060d29c816 | C/C++ | 32,390 | 566 | #ifndef CBLAS_H
#define CBLAS_H
#include <stddef.h>
/*
* Enumerated and derived types
*/
#define CBLAS_INDEX size_t /* this may vary between platforms */
enum CBLAS_ORDER { CblasRowMajor = 101, CblasColMajor = 102 };
enum CBLAS_TRANSPOSE {
CblasNoTrans = 111,
CblasTrans = 112,
CblasConjTrans = 113
};
enum CBL... |
603eb8070ece01e8aa16eea60a99a18f0a0c13c337c98245f7f33c8fa3d553b6 | C/C++ | 32,431 | 828 | /**
* @file slow5.h
* @brief SLOW5 API
* @author Sasha Jenner (jenner.sasha@gmail.com), Hasindu Gamaarachchi (hasindu@garvan.org.au), Hiruna Samarakoon
* @date 27/02/2021
*/
/* IMPORTANT: The comments in this header file are NOT the API documentation
The API documentation is available at https://hasindu2008.githu... |
ff3b30712c8ecc339e69fc3104f2da425c10745836e2ade215e85da800401022 | C/C++ | 33,117 | 745 | /**
* \file Integrator.h
* This file contains routines for numerical integration using Gauss-Kronrod quadrature.
* \sa R Piessens, E de Doncker-Kapenger, C Ueberhuber, D Kahaner, QUADPACK, A Subroutine Package
* for Automatic Integration, Springer Verlag, 1983.
*/
#ifndef EIGEN_INTEGRATOR_H
#define EIGEN_INTE... |
3dfe5f46cd9b36b09335a50fae5025edb9145b376129588b9c1baced644dd446 | C/C++ | 34,355 | 1,012 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include <mutex>
#include "carla/Debug.h"
#include "carla/Logging.h"
#include "c... |
fa08ee784585378339ef62f375d2470e7e5965d821dc0d89a97fabc32b5669d0 | C/C++ | 35,047 | 1,005 | // Copyright 2017 Mike Fricker. All Rights Reserved.
#pragma once
#include "StreetMap.generated.h"
USTRUCT(BlueprintType)
struct STREETMAPRUNTIME_API FStreetMapCollisionSettings
{
GENERATED_USTRUCT_BODY()
public:
/** Uses triangle mesh data for collision data. (Cannot be used for physics simulation). */
UPROP... |
77b88a0d0fdd9f125fcb42e983eab3a70cf229c3061c6c75ac30a068a002b849 | C/C++ | 35,916 | 873 | /* -*- mode: C -*- */
/*
IGraph library.
Copyright (C) 2005-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
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 Softw... |
170a8fc94a88b636f442b8af853396930ea120e0bf62f0eee53f7dab5495aa46 | C/C++ | 37,417 | 870 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include "Carla/Vehicle/AckermannController.h"
#include "Carla/Vehicle/AckermannC... |
8e1c19e1f49bb3f011eff6920ef70c09c12b0f3af6bec92df5ff52da284500b6 | C/C++ | 37,783 | 959 | /*
* Si5345 Rev B Configuration Register Export Header File
*
* This file represents a series of Silicon Labs Si5345 Rev B
* register writes that can be performed to load a single configuration
* on a device. It was created by a Silicon Labs ClockBuilder Pro
* export tool.
*
* Part: ... |
1722915541c7264e1a5c14571f4c095d2c34afc1527797957e29bb5b2db85e4d | C/C++ | 38,072 | 734 | /* The MIT License
Copyright (c) 2008, 2009, 2011 by Attractive Chaos <attractor@live.co.uk>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without ... |
371a88211d4e6a540d9b895d3b126206b6eeffe2447c71a549bacaf58659a499 | C/C++ | 40,506 | 1,190 | #pragma once
#include <stdlib.h>
#include <list>
#include <random>
#include <unordered_set>
#include "hnswlib.h"
#include "visited_list_pool.h"
// Taken from RcppAnnoy, https://cran.r-project.org/package=RcppAnnoy
// This allows others to supply their own logger / error printer without
// requiring hnsw to import the... |
848ede73ecb90c827965cec997fb78e5de4d4a24d874f8d123898f662f3632bd | C/C++ | 46,355 | 1,451 | /* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
Copyright (C) 1991, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published by
the Free Software Foundation;... |
681b3442a986415de6de9b37821c022b4d1f5efc507eedd3135ba9a1fd6ffeb2 | C/C++ | 46,807 | 1,869 | /******************************************************************************
* Copyright (c) 2019 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/**************************************************************... |
3d7474ef638113bbfa243d6d2919bd2db1de5d66a20d436521c0b508910c5888 | C/C++ | 52,506 | 10 | //
// Created by wenhan on 2022/5/16.
//
#ifndef HRESTIMATOR_SAMPLE_H
#define HRESTIMATOR_SAMPLE_H
float sample[]={0.8884645479663009f,1.111587432727126f,1.2913769382906493f,1.4180512634836646f,1.5197819956850052f,1.6252298123321642f,1.6914526062747677f,1.7889771639716299f,1.8515806914801474f,1.8770133745304824f,1.873... |
7f8cf7c61f20144ed09792343abe844faec0ddef19fdcff61e8d6e1e18f318ce | C/C++ | 54,469 | 1,794 | /***************************************************************************************************
* Copyright (c) 2013
* Consiglio Nazionale delle Ricerche, Istituto di Matematica Applicata e Tecnologie Informatiche
* Sezione di Genova, IMATI-GE / CNR
*
* Copyright (c) 2016 - 2021
* Blue Brain Project (BBP) / ... |
806c7ab4886d5d55075ca1e3673bfc65c10ecb0077287c5e653cf53669f17fca | C/C++ | 74,756 | 2,268 | /// Json-cpp amalgamated header (http://jsoncpp.sourceforge.net/).
/// It is intended to be used with #include "json/json.h"
// //////////////////////////////////////////////////////////////////////
// Beginning of content of file: LICENSE
// //////////////////////////////////////////////////////////////////////
/*
T... |
e3e5c40735d7590aeb24f076e6c7416deddd865757cfab2080f328dd8dc8488f | C/C++ | 96,579 | 1,296 | /* -*- mode: C -*- */
/*
IGraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
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 Softw... |
e9881fbb33d88b399d93754f05bfedb0782bd4ae61bc222b00c28de5557e9195 | C/C++ | 102,175 | 2,302 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#if defined(_MSC_VER)
# pragma warning(pop)
#endif
// Restore UE macros and scrub <windows.h>... |
d0d9fa0e97f9202a778056eaf34439002e0f0b9107709386e04b05608939c9fb | C/C++ | 110,995 | 1,770 | /**
* \file GaussKronrodNodesWeights.h
* \sa R Piessens}, E de Doncker-Kapenger}, C Ueberhuber}, D Kahaner}, QUADPACK}, A Subroutine Package
* for Automatic Integration}, Springer Verlag}, 1983.
*/
#ifndef EIGEN_QUADRATURE_KRONROD_H
#define EIGEN_QUADRATURE_KRONROD_H
namespace Eigen
{
/**
* \brief Th... |
33fb331b186f5939d914b3a8a49f7889977bb026679192441830efd55c82794c | C/C++ | 111,190 | 3,523 | /**
* @file
*
* lwIP Options Configuration
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions... |
74fd68d0d591649648366e3e05f05add8ea2778c4e2133444d29c0174c19151b | C/C++ | 115,434 | 3,101 | #ifndef DAG_CONSTRUCT
#define DAG_CONSTRUCT
#include <math.h>
#include <time.h>
#include <algorithm>
#include <list>
#include <mutex>
#include <thread>
#include "corrector.h"
#include "dag.h"
#include "graph_undirected.h"
#include "graph_undirected_bitset.h"
#include "nodeDistanceObject.h"
#include "util.h"
void prin... |
2b4c686aeb9d6635a13e43d94dfe7d8e2a60dde2a6192a1b2e716d0a827874e7 | C/C++ | 155,311 | 3,647 | // Provides a C++11 implementation of a multi-producer, multi-consumer lock-free queue.
// An overview, including benchmark results, is provided here:
// http://moodycamel.com/blog/2014/a-fast-general-purpose-lock-free-queue-for-c++
// The full design is also described in excruciating detail at:
// http://moodyc... |
36883a10f7bc3c11438ea29cd2cdc211549125038c9d18424ea703672e180d2f | C/C++ | 176,478 | 6,781 | // Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#ifndef LIBCARLA_INCLUDED_DISABLE_UE4_MACROS_HEADER
#define LIBCARLA_INCLUDED_DISABLE_UE4_MACRO... |
0099c179ebaa67696ebc9a63f84b701a30106aa09b373ddf50ef66f79cedd753 | C/C++ | 183,387 | 2,432 | /* -*- c++ -*- --------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
LAMMPS development team: developers@lammps.org
Copyright (2003) Sandia Corporation. Under the terms of Contract
... |
19e1c93b4bdfe8c27914df6d1a4925a5b96fa4a27e0f9c196e9b883b57eb9725 | C/C++ | 200,000 | 1,772 | // This is the validation DNN data
float validation_dnn_data[]={
0.0997739, 0.0346382, -0.528623, -0.232639, -0.0998687, 0.0258073, 0.0303954, -0.0542397, -0.493942, -0.0842651,
0.146185, -0.143005, -0.647042, -0.0317847, 0.00863399, 0.0502583, 0.0455824, 0.18265, -0.39494, -0.106098,
-0.117733, 0.222804, -0.0977282, 0... |
4130db6f46470877b55cc38d0862143556cd0b324d3360789e66135e58a49dfc | C/C++ | 200,000 | 3,855 |
/* @file model.h
**
** pore models
** models taken from nanopolish
** @@
******************************************************************************/
#ifndef MODEL_H
#define MODEL_H
//extracted from nanopolish
static float r9_4_450bps_nucleotide_6mer_template_model_builtin_data[] = {
86.48634, 1.51785, 0.9... |
6c27f4f39dfbfd5ee17c43b72d8d551cee892b0f1e28acd2e0c1deb838d945f1 | C/C++ | 200,000 | 14,571 | #define PRIMELISTSIZE1 1000
#define STEP 10000
#define PRIMELISTSIZE2 15613
unsigned int prime_list[PRIMELISTSIZE2] =
{
3037000493U,
3037000453U,
3037000429U,
3037000427U,
3037000399U,
3037000391U,
3037000333U,
3037000331U,
3037000303U,
3037000289U,
3037000249U,
3037000193U,
3037000181U,
3037000177... |
f3af19e3298205b051ba06fecc4d0a506cdd2d4efacd04c50e1dd313132dbdeb | C/C++ | 200,000 | 4,448 | /*
This file contains docstrings for use in the Python bindings.
Do not edit! They were automatically extracted by pybind11_mkdoc.
*/
#define __EXPAND(x) x
#define __COUNT(_1, _2, _3, _4, _5, _6, _7, COUNT, ...) COUNT
#define __VA_SIZE(...) _... |
05ecf921f2bd9c1298ab43b0a813464e2167aa604674b894f828f9212f78b465 | C/C++ | 200,001 | 3,772 | /*
#
# File : CImg.h
# ( C++ header file )
#
# Description : C++ Template Image Processing Toolkit.
# This file is the main component of the CImg Library project.
# ( http://cimg.eu )
#
# Project manager : David Tschumperlé
# ... |
82c296b25e8330c35a611bb299d47a755ddba241829fb831f1629ad144f369e2 | CUDA | 61 | 3 | #include "parrots_cuda_helper.hpp"
using namespace parrots;
|
2966193fdac0971299916bc597b3dbfa6b9555d014bb511b1182dfa538f99f24 | CUDA | 173 | 10 | extern "C"
__global__ void tozero(float *src,int length)
{
const int x = blockIdx.x*blockDim.x+threadIdx.x;
if(x >= length){
return;
}
src[x] = 0;
} |
4342dd41c4811a726a53dffcb7be8b06903544fa7a8824d25ef2fdab8ef255ea | CUDA | 452 | 17 | // extern "C"
// __global__ void psfpermax(float *d_Src,float *max_value,
// int sizeH1,int sizeH2,int sizeH3,int sizeH4,int sizeH5)
// {
// const long x = blockIdx.x*blockDim.x+threadIdx.x;
// long H1 = sizeH1;
// long H2 = sizeH2;
// long H3 = sizeH3;
// long H4 = sizeH4;
... |
c80e6cc878787491639eb4f9741ece5dd8176dbb5343e3ef893f57e099c13c28 | CUDA | 466 | 17 | extern "C"
__global__ void getpsf_fromGPU(float *d_Src,float *d_Dst,int z,
int sizeH1,int sizeH2,int sizeH3,int sizeH4)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
// const long y = blockIdx.y*blockDim.y+threadIdx.y;
long H1 = sizeH1;
long H2 = sizeH2;
long H3 = size... |
120ec793139988e117ed2fc0e2522457add6f1a7165f71f6a7e27a5405f12b7f | CUDA | 494 | 21 | extern "C"
__global__ void normalize(float *d_Src,float max_value,int flag,
int sizeH1,int sizeH2,int sizeH3,int sizeH4,int sizeH5)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
long H1 = sizeH1;
long H2 = sizeH2;
long H3 = sizeH3;
long H4 = sizeH4;
long H5 = sizeH... |
94ff2de3d3ef2883e7a80cca2e8e0ab7ab26caefb1071e04d3dd1339587a8778 | CUDA | 496 | 22 | extern "C"
__global__ void forwardADD(float *d_Src,float *d_Dst,float *tempdst,int img_h,int img_w,int flag)
{
int x= blockIdx.x*blockDim.x+threadIdx.x;
if(x < img_h*img_w)
{
if(flag == 0){
d_Dst[x] = 0;
}else{
float t = d_Src[x];
float h = t - tempdst[x];... |
f7b71ff6b53ed9d885952d19cc511aa7c2e5d684081161b4cec6e60750c3483a | CUDA | 556 | 15 | extern "C"
__global__ void backcut(float *d_Dst,float *d_Src,int imcenter,int sizeH1,
int sizeH2,int src_h,int src_w,int sizeH5)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
const long z = blockIdx.z*blockDim.z+threadIdx.z;... |
5a5d917be350e08b746dedc644a4a23d1c8f270b4117b8a4171c426b5aad867e | CUDA | 585 | 20 | extern "C"
__global__ void setprojection(float *d_Dst,int imcenterinit,
int exsize1,int exsize2,int aa,int bb,
int img_h,int img_w)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if(... |
0fa0f3dfbecd2e01f2252b5457ac3e4eb4d891b282e40fc4fe1768bc0d7bf9b3 | CUDA | 632 | 16 | extern "C"
__global__ void psfcomplex(float *d_Src,float *d_Dst,double k,double d,
int exsize1,int exsize2)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if((x < exsize1)&&(y < exsize2))
{
double src_temp_re... |
ef9b0f6e402ef2648f97e47e57133202589fcc2034287f3c509026688c385c36 | CUDA | 660 | 20 | extern "C"
__global__ void getpsf(float *d_Src,float *d_Dst,int x1shift,int x2shift,int cp0,
int sizeH1,int sizeH2,int sizeH3,int sizeH4,int sizeH5,
int src_h,int src_w,int z,int b,int a)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.... |
aea1a7656d522fa1044a466674b7f6ae2eab4ab00604bee56b8b489c40dc5a3c | CUDA | 721 | 26 | extern "C"
__global__ void pixelbinning(float *d_Src,float *d_Dst,int x1init,int x2init,
int src_h,int src_w,int dst_h,int dst_w,int OSR,int flag)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if((x < dst_h)&&(y < dst_w... |
a132ff6a471cf40f8cc8413a369a6aeb719666acad17ea1cae7f4c8a04a1d30b | CUDA | 723 | 21 | extern "C"
__global__ void multiply(float *d_Src,float *d_Mask,float *d_Dst,
int exsize1,int exsize2)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if((x < exsize1)&&(y < exsize2))
{
float src_temp_real ... |
ddaea134529746621b84035a67bea8ba4904c431e782833d8bd5e3e752ad2491 | CUDA | 798 | 25 | extern "C"
__global__ void convolutionKernel(float *d_Src,float *d_Mask,float *d_Dst,
int imageW,int imageH,int maskW,int maskH)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if(x < imageH && y < imageW)
{
... |
1298df7169fc09b776df5c8c71d820faf0f739a915cff6efe6e94ec8d3e0033f | CUDA | 892 | 22 | #include "bbox_overlaps_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
void BBoxOverlapsCUDAKernelLauncher(const DArrayLite bboxes1,
const DArrayLite bboxes2, DArrayLite ious,
const int mode, const bool aligned,
... |
55ca282555de0468164f10d8476e105e6f22d3241718f7e141691deacc3c4096 | CUDA | 967 | 22 | #include "bbox_overlaps_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void BBoxOverlapsCUDAKernelLauncher(const Tensor bboxes1, const Tensor bboxes2,
Tensor ious, const int mode,
const bool aligned, const int offset) {
int output_size = io... |
25e4fb297783de9498839961a2e7a884eef6ae3ca65624b37f80123d731d723b | CUDA | 1,013 | 39 | extern "C"
__global__ void getprojection(float *d_Src, float *d_Dst,int Nnum,
int exsize1,int exsize2,int aa,int bb,int cc,
int img_h,int img_w,int flag)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim... |
8d69239650700b58dcdf6759b5e6b5f748a1a53216fce11bf9862411f32135e6 | CUDA | 1,345 | 54 | extern "C"
__global__ void reductionMax(float *d_Src,float *d_Dst,float *temp_result,int *blocknum,int blockpergrid,
int sizeH1,int sizeH2,int sizeH3,int sizeH4,int sizeH5)
{
__shared__ float sdata[1024];
const int tid = threadIdx.x;
const long x = blockIdx.x*blockDim.x+threadIdx.x;
... |
4e07b3b7f84303030dd33d52b6041deb4665de11bb975c4af029d1a1b24f7dc2 | CUDA | 1,367 | 36 | extern "C"
__global__ void getHnew(float *d_Src,float *d_Dst,int aa,int bb,int cc,int mmidx,int mmidy,
int exsize1,int exsize2,int size_H1,int size_H2,int size_H3,int size_H4,int size_H5,int isHt)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim... |
bbae65aadab1411558659f667d58696183241502505b2f977e5398aefb12cfcf | CUDA | 1,589 | 62 | extern "C"
__global__ void xguessmax(float *Htf,float* hxguessback,float *xguess,float *temp_result,float* maxout,
int *blocknum,int blockpergrid,long length)
{
__shared__ float sdata[1024];
// static int max = 0;
const int tid = threadIdx.x;
const long x = blockIdx.x*blockDim.x... |
755d8f5fcb89e58b1a1a7aee0fe0ddc95f7f2029c45a08042c4ea27ffcef2077 | CUDA | 1,821 | 52 | #include "nms_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
Tensor NMSCUDAKernelLauncher(Tensor boxes, Tensor scores, float iou_threshold,
int offset) {
at::cuda::CUDAGuard device_guard(boxes.device());
if (boxes.numel() == 0) {
return at::empty({0}, boxes.options().dtype(at... |
27175a0a303891e24031bf072268e0cb81ee0b4b74268659080f6033698d7f2f | CUDA | 1,835 | 46 | #include "carafe_naive_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
void CARAFENAIVEForwardCUDAKernelLauncher(
const DArrayLite features, const DArrayLite masks, DArrayLite output,
const int kernel_size, const int group_size, const int scale_factor,
cudaStream_t stream) {
int output_size = output.... |
764a7f1087360bb40005b364ea17c8b115dd0b671368e94a037d688fa779f9c1 | CUDA | 1,987 | 45 | #include "masked_conv2d_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
void MaskedIm2colForwardCUDAKernelLauncher(
const DArrayLite bottom_data, const DArrayLite mask_h_idx,
const DArrayLite mask_w_idx, DArrayLite top_data, const int kernel_h,
const int kernel_w, const int pad_h, const int pad_w, cuda... |
9ac581987c29c678ca0a1432318a829056f74fd852f424b5ba102d6f487c79d6 | CUDA | 1,995 | 55 | #include "nms_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
DArrayLite NMSCUDAKernelLauncher(const DArrayLite boxes_sorted,
const DArrayLite order, const DArrayLite areas,
float iou_threshold, int offset,
CudaConte... |
6c619a4df86037b23c5e88c5ae466ea39cd66141fd73d0be69477e6f9f82521a | CUDA | 2,006 | 45 | #include "parrots_cuda_helper.hpp"
#include "roi_pool_cuda_kernel.cuh"
void ROIPoolForwardCUDAKernelLauncher(const DArrayLite input,
const DArrayLite rois, DArrayLite output,
DArrayLite argmax, int pooled_height,
... |
dbbbd9a215a81170709e2eb675de749e7674b12bebcc121256e62ade946e2adb | CUDA | 2,076 | 48 | #include "deform_roi_pool_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
void DeformRoIPoolForwardCUDAKernelLauncher(
const DArrayLite input, const DArrayLite rois, const DArrayLite offset,
DArrayLite output, int pooled_height, int pooled_width, float spatial_scale,
int sampling_ratio, float gamma, cu... |
8c30264001ef26b3a0427ab2fa289ab8e0a353c7dd99100a566685edcfeda4a8 | CUDA | 2,173 | 49 | #include "pytorch_cuda_helper.hpp"
#include "roi_pool_cuda_kernel.cuh"
void ROIPoolForwardCUDAKernelLauncher(Tensor input, Tensor rois, Tensor output,
Tensor argmax, int pooled_height,
int pooled_width, float spatial_scale) {
int output_size... |
de63df5ef5dab36d08d444785e149e9e031864454bb78acfbde730be567f65e4 | CUDA | 2,237 | 53 | #include "carafe_naive_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
int CARAFENAIVEForwardCUDAKernelLauncher(const Tensor features,
const Tensor masks, Tensor output,
const int kernel_size,
... |
4921cea61f59a0b1dc5d0fbfaed452c3355dc802ae32ac81016c3aaa1e467ccf | CUDA | 2,352 | 70 | extern "C"
__global__ void imshift(float *d_Dst,float *d_Src,int z,
int img_h,int img_w,int shiftx,int shifty, int clear)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
if((x<img_h) && (y<img_w))
{
if(clear)
... |
addd0f6eeb9907355e2aa1cfa3abd285561767eda274f7d105298653c7fd4d4f | CUDA | 2,353 | 52 | #include "parrots_cuda_helper.hpp"
#include "roi_align_cuda_kernel.cuh"
void ROIAlignForwardCUDAKernelLauncher(const DArrayLite input,
const DArrayLite rois, DArrayLite output,
DArrayLite argmax_y, DArrayLite argmax_x,
... |
833a55d77165823570abe544f8a406aacc6cf96a18fe8c9742bdfd9b4f8bbef2 | CUDA | 2,394 | 48 | // Modified from
// https://github.com/hszhao/semseg/blob/master/lib/psa/src
#include "parrots_cuda_helper.hpp"
#include "psamask_cuda_kernel.cuh"
void PSAMaskForwardCUDAKernelLauncher(const int psa_type,
const DArrayLite input, DArrayLite output,
... |
d44974a6ce1cead5fcc812c03bbb3744f11ea5b421bd54f88ca255e0e412bfdc | CUDA | 2,566 | 54 | #include "deform_roi_pool_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void DeformRoIPoolForwardCUDAKernelLauncher(Tensor input, Tensor rois,
Tensor offset, Tensor output,
int pooled_height, int pooled_width,
... |
23c3afd67312b1704891857656831b0dac7f88522161d60fbd7aae105f9ed562 | CUDA | 2,579 | 53 | #include "masked_conv2d_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void MaskedIm2colForwardCUDAKernelLauncher(const Tensor bottom_data,
const Tensor mask_h_idx,
const Tensor mask_w_idx,
... |
3b0f775483b2adae58275d43c1f3794db5fd0e3cb39aedaae68e573bd72b1f29 | CUDA | 2,588 | 70 | extern "C"
__global__ void add(float *d_Src,float *d_Dst, float *tempdst, int aa,int bb,int cc,int Nnum,
int exsize1,int exsize2,int img_h,int img_w,int flag)
{
int x= blockIdx.x*blockDim.x+threadIdx.x;
int y= blockIdx.y*blockDim.y+threadIdx.y;
if(flag==1)
{
long i = aa+x;
... |
de03af79d57433362374432863c72ca3524bf1783a1e6ae2cb811a9e9ff103ee | CUDA | 2,597 | 79 | extern "C"
__global__ void backht(float *d_Dst,float *d_Src,int sizeH1,int sizeH2,
int sizeH3,int sizeH4,int bb,int aa,int imcenter,
int src_h,int src_w,
int shiftx,int shifty,int sizeH5)
{
const long x = blockIdx.x*blockDim.x+threa... |
ee5b3e55271963a3d9f63d2f99ea3890bfd826db1066b8ba43a997cc8bc4f48b | CUDA | 2,685 | 83 | // Copyright 2022 Huawei Technologies Co., Ltd
//
// 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 ... |
274f0ba54b9125ed20e277bb6ac3ea86d07f9875546ef4edd92ca68098eac155 | CUDA | 2,708 | 67 | extern "C"
__global__ void forcomputeKernel(double *x1space,double *x2space,double *pattern_real,double *pattern_img,
int centerPT,double alpha,double M,double k,int x1length,int x2length,
double p3,int centerarea_il_start,double fobj,double lambda)
{
... |
8f728a647a561211f68bcc1733524b0a5cc835de14b1a5d5e67870f64c5e0adc | CUDA | 2,737 | 57 | #include "pytorch_cuda_helper.hpp"
#include "roi_align_cuda_kernel.cuh"
void ROIAlignForwardCUDAKernelLauncher(Tensor input, Tensor rois, Tensor output,
Tensor argmax_y, Tensor argmax_x,
int aligned_height, int aligned_width,
... |
c4f36c05ee39e191e56ce0cca128aca7baf967459f85c9bf1c75afa3750d6adc | CUDA | 2,757 | 62 | // Modified from
// https://github.com/hszhao/semseg/blob/master/lib/psa/src
#include <THC/THC.h>
#include <torch/serialize/tensor.h>
#include <THC/THCDeviceUtils.cuh>
#include "psamask_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void PSAMaskForwardCUDAKernelLauncher(const int psa_type, const Tensor input,
... |
bd58d9c2eaf85aa1e12cb8bd6d6ee14e19d13303d2e8eae9a0e25efeb4441cad | CUDA | 2,777 | 99 | // Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
//
// This work is made available under the Nvidia Source Code License-NC.
// To view a copy of this license, visit
// https://nvlabs.github.io/stylegan2/license.html
#include <torch/types.h>
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#inclu... |
64b950b47fb8742698371c831187159d1d1113d116ec57340d1265f594f3c6a2 | CUDA | 2,828 | 105 | // Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
//
// This work is made available under the Nvidia Source Code License-NC.
// To view a copy of this license, visit
// https://nvlabs.github.io/stylegan2/license.html
#include <torch/types.h>
#include <ATen/ATen.h>
#include <ATen/AccumulateType.... |
42c217064d68d91756cd0f92e19377c61824b4734b4659095b9282075e9113f4 | CUDA | 2,875 | 99 | // Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
//
// This work is made available under the Nvidia Source Code License-NC.
// To view a copy of this license, visit
// https://nvlabs.github.io/stylegan2/license.html
#include <torch/types.h>
#include <ATen/ATen.h>
#include <ATen/AccumulateType.... |
48a3c494573ea57edd02538db8023cfa8e7e06101a68f3ffa0fca936010baa51 | CUDA | 3,156 | 75 | extern "C"
__global__ void imshiftap(float *d_Dst,float *d_Src,int xmin,int xmax,int ymin,int ymax,
int img_h,int img_w,int shiftx,int shifty, int clear)
{
const long x = blockIdx.x*blockDim.x+threadIdx.x;
const long y = blockIdx.y*blockDim.y+threadIdx.y;
double temp_real = 0.0;... |
24bb0fc2a0b08d8797236ce653d4851fda6c0fbaa17acfc2d118f892636d39ba | CUDA | 3,245 | 105 | /*
* kcGLM.cu
* Main class for holding a GLM (across multiple GPUs).
*
* Package GMLM_dmc for dimensionality reduction of neural data.
*
* References
* Kenneth Latimer & David Freeedman (2021). Low-dimensional encoding of
* decisions in parietal cortex reflects long-term training history.
* bioRxiv
... |
9d34b678a7f22fc0dc2aafa23ff149ab5919a9fd18e4c2b2f4206a8803b3a16c | CUDA | 3,531 | 88 | #include "parrots_cuda_helper.hpp"
#include "sigmoid_focal_loss_cuda_kernel.cuh"
#include "softmax_focal_loss_cuda_kernel.cuh"
void SigmoidFocalLossForwardCUDAKernelLauncher(
const DArrayLite input, const DArrayLite target, const DArrayLite weight,
DArrayLite output, float gamma, float alpha, cudaStream_t stre... |
f822922234f6e86aa4aa2ef56579b66f7fc5a9a2188895775b2f19416be43683 | CUDA | 3,695 | 87 | // modify from
// https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/blob/mmdetection/mmdet/ops/dcn/src/modulated_dcn_cuda.c
// based on
// author: Charles Shang
// https://github.com/torch/cunn/blob/master/lib/THCUNN/generic/SpatialConvolutionMM.cu
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.... |
8a8b7f4295dbbb4687463de00abb1e769e0abe3130c387578641a714f2278511 | CUDA | 3,778 | 109 | #include "cc_attention_cuda_kernel.cuh"
#include "parrots_cuda_helper.hpp"
void CAForwardCUDAKernelLauncher(const DArrayLite t, const DArrayLite f,
DArrayLite weight, CudaContext &ctx,
cudaStream_t stream) {
auto n = t.dim(0);
auto c = t.dim(1);
a... |
493e3586ad9854e44d106504397f33d504331122d419d64c4f8ed077c9373e60 | CUDA | 4,099 | 110 | // Copyright 2022 Huawei Technologies Co., Ltd
//
// 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 ... |
7f4fbd88211abd4af26019cba7abb1d0dea0b0aed2bf3e838a157010c824382a | CUDA | 4,232 | 104 | #include "parrots_cuda_helper.hpp"
#include "sync_bn_cuda_kernel.cuh"
void SyncBNForwardMeanCUDAKernelLauncher(const DArrayLite input,
DArrayLite mean, cudaStream_t stream) {
int num = input.dim(0);
int channels = input.dim(1);
int spatial = input.dim(2);
PARROTS_DISPA... |
945adc1c21a911df8576073c419076d75989f59f5a0e38621ce2e44f4cb35ab7 | CUDA | 4,846 | 109 | #include "pytorch_cuda_helper.hpp"
#include "sync_bn_cuda_kernel.cuh"
void SyncBNForwardMeanCUDAKernelLauncher(const Tensor input, Tensor mean) {
int num = input.size(0);
int channels = input.size(1);
int spatial = input.size(2);
at::cuda::CUDAGuard device_guard(input.device());
cudaStream_t stream = at::cu... |
b467e897a82e4eb5bfa9a3baf3d331aa8933b2fce5a1211f871ae26790e53ba1 | CUDA | 4,850 | 131 | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCDeviceUtils.cuh>
#include <vector>
#include <iostream>
int const threadsPerBlock = sizeof(unsigned long long) * 8;
__device__ inline float devIoU(f... |
0d6cb98059781ff81c1d13953a4208ac1dfb8932c15c3aa5a5eb11429080f7fb | CUDA | 4,967 | 106 | #include "pytorch_cuda_helper.hpp"
#include "sigmoid_focal_loss_cuda_kernel.cuh"
#include "softmax_focal_loss_cuda_kernel.cuh"
void SigmoidFocalLossForwardCUDAKernelLauncher(Tensor input, Tensor target,
Tensor weight, Tensor output,
... |
a836f85cd806b9e2f81503e15f3fdf2e612abf49e7ac66385714c605929a5368 | CUDA | 4,970 | 142 | // Modified from
// https://github.com/LikeLy-Journey/SegmenTron/blob/master/segmentron/modules/csrc/criss_cross_attention/ca_cuda.cu
#include <THC/THC.h>
#include <THC/THCDeviceUtils.cuh>
#include "cc_attention_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void CAForwardCUDAKernelLauncher(const Tensor t, con... |
837f435356eed205b2651c8a586e2785b4447390d5114f5afeac3926ad4cb9ed | CUDA | 5,146 | 155 | /*
* kcGMLM.cu
* Main class for holding a GMLM (across multiple GPUs).
*
* Package GMLM_dmc for dimensionality reduction of neural data.
*
* References
* Kenneth Latimer & David Freeedman (2021). Low-dimensional encoding of
* decisions in parietal cortex reflects long-term training history.
* bioRxi... |
3828e5500ff484130e991be870561d2e8b9b803c960a7d5facfe54409f4699b9 | CUDA | 5,623 | 161 | // ------------------------------------------------------------------
// Faster R-CNN
// Copyright (c) 2015 Microsoft
// Licensed under The MIT License [see fast-rcnn/LICENSE for details]
// Written by Shaoqing Ren
// ------------------------------------------------------------------
#include <stdbool.h>
#include <std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.