hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
e2272fe501a35c913e2422e45a4cb43f8f103e60.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is... | e2272fe501a35c913e2422e45a4cb43f8f103e60.cu | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NOT... |
760a85f606a2fdcdfd6f72c88303976bb7302a2d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
__global__ void gaussianBlurKernel(const Byte* const __restrict__ input,
Byte* const __restrict__ output,
const size_t width,
... | 760a85f606a2fdcdfd6f72c88303976bb7302a2d.cu |
#include "kernel.h"
__global__ void gaussianBlurKernel(const Byte* const __restrict__ input,
Byte* const __restrict__ output,
const size_t width,
const size_t height,
const float... |
e54db1dca0e064a65965831a24752a62a968ea3a.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Context.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/PinnedMemoryAllocator.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/hip/detail/IndexUtils.cuh>
#include <ATen/n... | e54db1dca0e064a65965831a24752a62a968ea3a.cu | #include <ATen/Context.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/PinnedMemoryAllocator.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/native/LinearAlgebraUtils.h>
#include <ATen/native/cud... |
d8523be47289836d1d3b97f1e601ff5201367b76.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "computePointHessian2.cu"
#include<chrono>
#include<iostream>
usi... | d8523be47289836d1d3b97f1e601ff5201367b76.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "computePointHessian2.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,... |
9292da85394fdeb69375bbb4503fc3c3778fab5c.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright 2014 BVLC and contributors.
#include <hip/hip_runtime.h>
#include <stdint.h>
#include <leveldb/db.h>
#include <pthread.h>
#include <string>
#include <vector>
#include <iostream> // NOLINT(readability/streams)
#include <fstream> // NOLINT(readab... | 9292da85394fdeb69375bbb4503fc3c3778fab5c.cu | // Copyright 2014 BVLC and contributors.
#include <cuda_runtime.h>
#include <stdint.h>
#include <leveldb/db.h>
#include <pthread.h>
#include <string>
#include <vector>
#include <iostream> // NOLINT(readability/streams)
#include <fstream> // NOLINT(readability/streams)
#include "caffe/blob.hpp"
#include "caffe/comm... |
2ff1ca4165bfdfbac475ad657369fa110a65cf3c.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include <hip/hip_runtime.h>
#include "cuda_vector_routines.h"
#include "atom_class.h"
#include "config_class.h"
#include "leapfrog_cuda.h"
//#include "cons... | 2ff1ca4165bfdfbac475ad657369fa110a65cf3c.cu |
#include <stdio.h>
#include <stdlib.h>
#include <curand.h>
#include <curand_kernel.h>
#include <cuda.h>
#include "cuda_vector_routines.h"
#include "atom_class.h"
#include "config_class.h"
#include "leapfrog_cuda.h"
//#include "constants_cuda.cuh"
#include "constants.h"
//Fast integer multiplication
#define MUL(a, b) ... |
dc75ef37689d5833442a4778cdcb1b84fc5d2e3c.hip | // !!! This is a file automatically generated by hipify!!!
// -----------------------------------------------------------------
// Simple cuda ray tracing tutorial
// Written by Peter Trier
// Alexandra Institute august 2009
//
//
// -----------------------------------------------------------------
// includes ---... | dc75ef37689d5833442a4778cdcb1b84fc5d2e3c.cu |
// -----------------------------------------------------------------
// Simple cuda ray tracing tutorial
// Written by Peter Trier
// Alexandra Institute august 2009
//
//
// -----------------------------------------------------------------
// includes --------------------------------------
#ifdef _WIN32
# define... |
6c0190e9349547651b3984995ffa34a2d8d597d5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2016-present Jean-Noel Braun.
*
* 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 with... | 6c0190e9349547651b3984995ffa34a2d8d597d5.cu | /*
* Copyright (c) 2016-present Jean-Noel Braun.
*
* 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 limitation the rights
* to use, copy, modify, merge, ... |
22033a836a0bc68ceab8754a4aac2bfeed3c4c23.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <stdlib.h>
#include <cmath>
void add (float*, float*, float*, float);
int main (float argc, char* argv[]){
//variables
int matDim;
// get inputs
if (argc < 2){
std::cout << "Not enough arguments. <<matrix dimension>>" << s... | 22033a836a0bc68ceab8754a4aac2bfeed3c4c23.cu | #include <iostream>
#include <stdlib.h>
#include <cmath>
void add (float*, float*, float*, float);
int main (float argc, char* argv[]){
//variables
int matDim;
// get inputs
if (argc < 2){
std::cout << "Not enough arguments. <<matrix dimension>>" << std::endl;
return 1;
}
else{
matDim = atoi (arg... |
b797389a778113c7f816d34e4eb065997b535ad2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__device__ __forceinline__ int is_between(float a, float b, float c) {
#if between_method == 0
return (b > a) != (c > a);
#elif between_method == 1
return ((b <= a) && (c > a)) || ((b > a) && (c <= a));
#elif b... | b797389a778113c7f816d34e4eb065997b535ad2.cu | #include "includes.h"
__device__ __forceinline__ int is_between(float a, float b, float c) {
#if between_method == 0
return (b > a) != (c > a);
#elif between_method == 1
return ((b <= a) && (c > a)) || ((b > a) && (c <= a));
#elif between_method == 2
return ((a - b) == 0.0f) || ((a - b) * (a - c) < 0.0f);
#elif between... |
3009c63943b9cee1140df8733455120614bda586.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//15co154 Yeshwanth R
//15co118 Goutham M
#include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
__global__ void func(float *da_in,float *db_in,float *d_out)
{
int idx = blockIdx.x*100 + threadIdx.x;
d_out[idx] = da_in[idx] +... | 3009c63943b9cee1140df8733455120614bda586.cu | //15co154 Yeshwanth R
//15co118 Goutham M
#include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
__global__ void func(float *da_in,float *db_in,float *d_out)
{
int idx = blockIdx.x*100 + threadIdx.x;
d_out[idx] = da_in[idx] + db_in[idx];
}
int main()
{
float t1,t2;
const int array_size = 16000;
const int ar... |
13db205cdc821e8fcf72d11db43f6dd170f7844c.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <hip/hip_runtime_api.h>
//#include <cutil.h>
#include <hip/hip_runtime.h>
#include <string>
#define GPUJOULE_DIR ""
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 196608
int num_blocks;
int num_th... | 13db205cdc821e8fcf72d11db43f6dd170f7844c.cu | #include <stdio.h>
#include <iostream>
#include <cuda_profiler_api.h>
//#include <cutil.h>
#include <cuda_runtime.h>
#include <string>
#define GPUJOULE_DIR ""
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 196608
int num_blocks;
int num_threads_per_block;
int num_iterations;
int divergence;
float* h_A... |
ae9fa8b8f357cfb26210de7621e4d2acd006f2fd.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <thrust/extrema.h>
#include <thrust/device_vector.h>
// :
struct type { // .
int key;
int value;
};
struct comparator {
__host__ __device__ bool operator()(type a, type b) { // "<"
return a.k... | ae9fa8b8f357cfb26210de7621e4d2acd006f2fd.cu | #include <stdio.h>
#include <thrust/extrema.h>
#include <thrust/device_vector.h>
// Задача: найти максимум в массиве объектов по ключу
struct type { // Тип элемента массива. Структура из двух полей
int key;
int value;
};
struct comparator {
__host__ __device__ bool operator()(type a, type b) { // ... |
b24e3aab8256f2f798a4fa7a5484d34a64a03a3b.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip> // std::setfill, std::setw
#include <string>
#include <stdlib.h> // For malloc 2d
// #include <opencv2/opencv.hpp>
#include <omp.h>
#include <mpi.h>
#include <hip/hip_runtime.h>... | b24e3aab8256f2f798a4fa7a5484d34a64a03a3b.cu | #include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip> // std::setfill, std::setw
#include <string>
#include <stdlib.h> // For malloc 2d
// #include <opencv2/opencv.hpp>
#include <omp.h>
#include <mpi.h>
#include <cuda.h>
#include <helper_math.h> //For clamp
#include <assert.h>
#include <h... |
da7093bfcc5c7827a0bf40fbaf0fd1402c47b3cd.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <ATen/ATen.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <stdio.h>
// for the older gpus atomicAdd with double arguments does not exist
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600
#else
stati... | da7093bfcc5c7827a0bf40fbaf0fd1402c47b3cd.cu | #include <iostream>
#include <ATen/ATen.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <stdio.h>
// for the older gpus atomicAdd with double arguments does not exist
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600
#else
static __inline__ __device__ double atomicAdd(double *address, double val) {
... |
f6a3931f18ef47aec01065886228cf23d1248de4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
*
* maketable_v4.cu
* calculate and sort a rainbow table
*
* nvcc maketable_v4.cu ./obj/fname_gen.o ./obj/md5.o -o ./bin/mktab
* From the parameters in rainbow.h, maketable produces an unsorted
* table (new) and a table ... | f6a3931f18ef47aec01065886228cf23d1248de4.cu | /*
*
* maketable_v4.cu
* calculate and sort a rainbow table
*
* nvcc maketable_v4.cu ./obj/fname_gen.o ./obj/md5.o -o ./bin/mktab
* From the parameters in rainbow.h, maketable produces an unsorted
* table (new) and a table sorted on final hash (sorted). This is
* used for merging into the main table.
*
* T... |
cd748e42a1e68b94aef9d5802da93551027755e9.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2015-16 Tom Deakin, Simon McIntosh-Smith,
// University of Bristol HPC
//
// For full license terms please see the LICENSE file distributed with this
// source code
#include <iostream>
#include <vector>
#include <numeric>
#include <cmath>
#in... | cd748e42a1e68b94aef9d5802da93551027755e9.cu |
// Copyright (c) 2015-16 Tom Deakin, Simon McIntosh-Smith,
// University of Bristol HPC
//
// For full license terms please see the LICENSE file distributed with this
// source code
#include <iostream>
#include <vector>
#include <numeric>
#include <cmath>
#include <limits>
#include <chrono>
#include <algorithm>
#incl... |
77346a373409c00b2e558db656331dd93b1e1ab2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any us... | 77346a373409c00b2e558db656331dd93b1e1ab2.cu | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduction, disclosure, or distribution of this software
* and related documentat... |
ff1a7994a0ebf0b6dadde9f6760c6c9d09948a52.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@generated from magmablas/zlange.cu, normal z -> d, Thu ... | ff1a7994a0ebf0b6dadde9f6760c6c9d09948a52.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@generated from magmablas/zlange.cu, normal z -> d, Thu Oct 8 23:05:33 2020
@author Mark Gates
*/
#include "magma_internal.h"
#include "... |
20242a682574e4d118052e2eaf8ffb061a08368b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// statistical kernel
__global__ void compress(
long d_Ne,
fp *d_I) { // pointer to output image (DEVICE GLOBAL MEMORY)
// indexes
int bx = blockIdx.x; // get current horizontal block index
int tx = threadIdx.x; /... | 20242a682574e4d118052e2eaf8ffb061a08368b.cu | // statistical kernel
__global__ void compress(
long d_Ne,
fp *d_I) { // pointer to output image (DEVICE GLOBAL MEMORY)
// indexes
int bx = blockIdx.x; // get current horizontal block index
int tx = threadIdx.x; // get current horizontal thread index
int ei = (bx * NUMBER_THREADS) +
tx; ... |
56a63b940d2fb82e8d5516302bfd0cd18b77486d.hip | // !!! This is a file automatically generated by hipify!!!
#include <Device/SafeCudaAPI.cuh>
#include <Device/SimpleKernels.cuh>
#include <Device/Timer.cuh>
#include <cmath>
#include <limits>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace timer;
using xlib::byte_t;
using ttime_t = float;
int... | 56a63b940d2fb82e8d5516302bfd0cd18b77486d.cu | #include <Device/SafeCudaAPI.cuh>
#include <Device/SimpleKernels.cuh>
#include <Device/Timer.cuh>
#include <cmath>
#include <limits>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace timer;
using xlib::byte_t;
using ttime_t = float;
int main() {
size_t size = 1024;
Timer<DEVICE> TM;
... |
79a2a8bb1a5a602660dc8266374279bfd34b451b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* 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
... | 79a2a8bb1a5a602660dc8266374279bfd34b451b.cu | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* 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... |
c76be60774702a712a80c1a9729ebee8a3f79606.hip | // !!! This is a file automatically generated by hipify!!!
//#include <hip/hip_runtime.h>
//#include "device_launch_parameters.h"
//#include <helper_cuda.h>
////#include "sm_20_atomic_functions.h"
//
//#include <thrust/host_vector.h>
//#include <thrust/device_vector.h>
//#include <thrust/count.h>
//#include <stdio.h>
/... | c76be60774702a712a80c1a9729ebee8a3f79606.cu | //#include <cuda_runtime.h>
//#include "device_launch_parameters.h"
//#include <helper_cuda.h>
////#include "sm_20_atomic_functions.h"
//
//#include <thrust/host_vector.h>
//#include <thrust/device_vector.h>
//#include <thrust/count.h>
//#include <stdio.h>
//
//#define REAL float
////#define USE_CONST_MEM
//#define HAN... |
10f7774cebb60b0e39d361c2663d86d2ef087807.hip | // !!! This is a file automatically generated by hipify!!!
/*********************** LDL Decomposition using CUDA ************************/
/*********************** Name: Balaji Rajasekaran ******************************/
/*********************** UFID:1918-2684 ****************************************/
/***************... | 10f7774cebb60b0e39d361c2663d86d2ef087807.cu | /*********************** LDL Decomposition using CUDA ************************/
/*********************** Name: Balaji Rajasekaran ******************************/
/*********************** UFID:1918-2684 ****************************************/
/*********************** Email : balaji141191@ufl.edu *********************... |
b95f59b12765678f63793d0478e1fd2de9043b79.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2009-2018 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
/*! \file ReactionFieldDriverPotentialPairGPU.cu
\brief Defines the driver functions for computing... | b95f59b12765678f63793d0478e1fd2de9043b79.cu | // Copyright (c) 2009-2018 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
/*! \file ReactionFieldDriverPotentialPairGPU.cu
\brief Defines the driver functions for computing all types of pair forces on the GPU
*/
#include "Evaluato... |
bef2f5e7af75fcbbf76a82347a29a9c90b9eba55.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, ... | bef2f5e7af75fcbbf76a82347a29a9c90b9eba55.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, it will be
//ignored in this homework.
//Each channel Red, Blue, Green and Alpha is rep... |
78275733b930def0a36a2ee6e14a70122c4d18d1.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <time.h>
#include "cuHeader.h"
#include <math.h>
#include <hip/hip_runtime.h>
void initRand(){
time_t t;
srand((unsigned) time(&t));
}
void initData(float *ip,int size){
for (int i=0;i<size;i++){
ip[i] = (float)... | 78275733b930def0a36a2ee6e14a70122c4d18d1.cu | #include <stdio.h>
#include <time.h>
#include "cuHeader.h"
#include <math.h>
#include <cuda_runtime.h>
void initRand(){
time_t t;
srand((unsigned) time(&t));
}
void initData(float *ip,int size){
for (int i=0;i<size;i++){
ip[i] = (float)( rand() & 0xFF )/256*10;
}
}
/// using malloced nElem*3*... |
3a6e10bea2ba83782c6b0e1f4f249c5c62c9cbef.hip | // !!! This is a file automatically generated by hipify!!!
// https://github.com/thrust/thrust/blob/8551c97870cd722486ba7834ae9d867f13e299ad/examples/sum_rows.cu
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/generate.h>
#include <thrust/reduce.h>
#include <thrust/functional.h>
#inc... | 3a6e10bea2ba83782c6b0e1f4f249c5c62c9cbef.cu | // https://github.com/thrust/thrust/blob/8551c97870cd722486ba7834ae9d867f13e299ad/examples/sum_rows.cu
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/generate.h>
#include <thrust/reduce.h>
#include <thrust/functional.h>
#include <thrust/random.h>
#include <iostream>
// convert a li... |
ff94d25506b226e9da616080c4ef5832a38e8874.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include "rism3d.h"
void RISM3D :: cal_Coulomb () {
__global__ void coulomb(double * de, double * dfr,
double4 * dru, double * dqu,
double dx, double dy, double dz,
int nx, int ny, int nz, int n... | ff94d25506b226e9da616080c4ef5832a38e8874.cu | #include <iostream>
#include "rism3d.h"
void RISM3D :: cal_Coulomb () {
__global__ void coulomb(double * de, double * dfr,
double4 * dru, double * dqu,
double dx, double dy, double dz,
int nx, int ny, int nz, int natu);
__global__ void fk(double2 *, const double4 * __restrict__ ,
const doubl... |
8d18e7be7bd544d4556506bc7173cde814620521.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<stdlib.h>
#include<sys/time.h>
#define BLOCK_SIZE 16
#define GRID_SIZE 160
#define SIZE BLOCK_SIZE*BLOCK_SIZE*GRID_SIZE*GRID_SIZE
__constant__ int const_width;
void checkresult(float *ref, float *in, ... | 8d18e7be7bd544d4556506bc7173cde814620521.cu | #include<stdio.h>
#include<stdlib.h>
#include<sys/time.h>
#define BLOCK_SIZE 16
#define GRID_SIZE 160
#define SIZE BLOCK_SIZE*BLOCK_SIZE*GRID_SIZE*GRID_SIZE
__constant__ int const_width;
void checkresult(float *ref, float *in, float *out, float *mul, int width){
for(int i = 0 ; i < GRID_SIZE; i++){
for(int j ... |
377022fb54bd9003d637d28b1efaf4f2c5f46461.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_drhoEpudx_kernel;
int xdim0_drhoEpudx_kernel_h = -1;
int ydim0_drhoEpudx_kernel_h = -1;
__constant__ int xdim1_drhoEpudx_kernel;
int xdim1_drhoEpudx_kernel_h = -1;
int ydim1_d... | 377022fb54bd9003d637d28b1efaf4f2c5f46461.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_drhoEpudx_kernel;
int xdim0_drhoEpudx_kernel_h = -1;
int ydim0_drhoEpudx_kernel_h = -1;
__constant__ int xdim1_drhoEpudx_kernel;
int xdim1_drhoEpudx_kernel_h = -1;
int ydim1_drhoEpudx_kernel_h = -1;
__constant__ int xdim2_drhoEpudx_kernel;
int xdim2_drhoEpudx_ker... |
8c6b20038a431df60c0652b1b357e2084554de5f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <vector>
#include "neuron_layer.hpp"
#include "prelu_layer.hpp"
namespace caffe {
// CUDA kernele for forward
template <typename Dtype>
__global__ void PReLUForward(const int n, const int channels, c... | 8c6b20038a431df60c0652b1b357e2084554de5f.cu | #include <algorithm>
#include <vector>
#include "neuron_layer.hpp"
#include "prelu_layer.hpp"
namespace caffe {
// CUDA kernele for forward
template <typename Dtype>
__global__ void PReLUForward(const int n, const int channels, const int dim,
const Dtype* in, Dtype* out, const Dtype* slope_data,
const int di... |
a01dc7e9e6ea9708afbe0a4c5578f63bbb05ee3e.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 2018-2023 by XGBoost Contributors
* \author Rory Mitchell
*/
#include <thrust/execution_policy.h>
#include <thrust/inner_product.h>
#include <xgboost/data.h>
#include <xgboost/linear_updater.h>
#include "xgboost/span.h"
#include "coordinate... | a01dc7e9e6ea9708afbe0a4c5578f63bbb05ee3e.cu | /**
* Copyright 2018-2023 by XGBoost Contributors
* \author Rory Mitchell
*/
#include <thrust/execution_policy.h>
#include <thrust/inner_product.h>
#include <xgboost/data.h>
#include <xgboost/linear_updater.h>
#include "xgboost/span.h"
#include "coordinate_common.h"
#include "../common/common.h"
#include "../commo... |
69fb3ce5569b27016c2cea6bc2e339855f8722d0.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @brief
* ragged_ops
*
* @copyright
* Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu)
* Mobvoi Inc. (authors: Fangjun Kuang)
*
* @copyright
* See LICENSE for clarification regarding multiple ... | 69fb3ce5569b27016c2cea6bc2e339855f8722d0.cu | /**
* @brief
* ragged_ops
*
* @copyright
* Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu)
* Mobvoi Inc. (authors: Fangjun Kuang)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*/
#include <algorithm>
#include <memory>
#includ... |
bde9fbae7582ed64034d91fc21bfde55a4350d50.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Fast Lee Hologram computation using CUDA
Programmed by Shay Ohayon
DiCarlo Lab @ MIT
Revision History
Version 0.1 10/22/2014
*/
#include <stdio.h>
#include "mex.h"
#include <Windows.h>
#include <math.h>
#define MIN(a,b) (a)<... | bde9fbae7582ed64034d91fc21bfde55a4350d50.cu | /*
Fast Lee Hologram computation using CUDA
Programmed by Shay Ohayon
DiCarlo Lab @ MIT
Revision History
Version 0.1 10/22/2014
*/
#include <stdio.h>
#include "mex.h"
#include <Windows.h>
#include <math.h>
#define MIN(a,b) (a)<(b)?(a):(b)
#define M_PI 3.14159265358979323846
const int DMDwidth = 1024;
const int D... |
419e97d56ce2425988a83d115e44c9de880c5630.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass
//--gridDim=[192,48] --blockDim=[16,8]
// in host invocation
// assert(COLUMNS_BLOCKDIM_Y * COLUMNS_HALO_STEPS >= KERNEL_RADIUS);
// assert(imageW % COLUMNS_BLOCKDIM_X == 0);
// assert(imageH % (COLUMNS_RESULT_STEP... | 419e97d56ce2425988a83d115e44c9de880c5630.cu | //pass
//--gridDim=[192,48] --blockDim=[16,8]
// in host invocation
// assert(COLUMNS_BLOCKDIM_Y * COLUMNS_HALO_STEPS >= KERNEL_RADIUS);
// assert(imageW % COLUMNS_BLOCKDIM_X == 0);
// assert(imageH % (COLUMNS_RESULT_STEPS * COLUMNS_BLOCKDIM_Y) == 0);
#define KERNEL_RADIUS 8
#define KERNEL_LENGTH (2 * KERNE... |
f195a2b93c0fbb8c48824e54682a4784eec09032.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@generated from zgeaxpy.cu normal z -> s, Fri Sep 11 1... | f195a2b93c0fbb8c48824e54682a4784eec09032.cu | /*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@generated from zgeaxpy.cu normal z -> s, Fri Sep 11 18:29:42 2015
*/
#include "common_magma.h"
#include "common_magmasparse.h"
#define BLOC... |
5b4268b73e104908d8ff01c9190f36edf7fc0018.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
// for some reason, const float kBNLL_THRESHOLD = 50.; does not work with nvcc on windows
#define kBNLL_THRESH... | 5b4268b73e104908d8ff01c9190f36edf7fc0018.cu | #include <algorithm>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
// for some reason, const float kBNLL_THRESHOLD = 50.; does not work with nvcc on windows
#define kBNLL_THRESHOLD 50.0f
template <typename Dtype>
__global__ void BNLLForward(const int n, const Dtyp... |
ae9f7959b69a78f7161a9fd4be5d8ca215cbc4e2.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
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... | ae9f7959b69a78f7161a9fd4be5d8ca215cbc4e2.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
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... |
e191cbb8769f24294f7ebff5fa49b1f5891e725d.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* 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.o... | e191cbb8769f24294f7ebff5fa49b1f5891e725d.cu | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* 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... |
0efea4364ad2c3b126d6c198bab18d05e993768f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/PQScanMultiPassP... | 0efea4364ad2c3b126d6c198bab18d05e993768f.cu | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/PQScanMultiPassPrecomputed.cuh>
#include <faiss/gpu/GpuResources.h>
#include <faiss/gpu/impl/PQCodeLoad.... |
337ce4e2151ef5ba087f9801b608a88ac7534e16.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* readvalidatePSF_control.cu
*
* Created on: Apr 19, 2017
* Author: gabriel
*/
#include "0_Mainparameters.h"
string PSFDATA = "/lambda_488/Calib/system_PSF.bin";
double *double_PSF; // on host
float MaxPSF=0.0f, Sum... | 337ce4e2151ef5ba087f9801b608a88ac7534e16.cu | /*
* readvalidatePSF_control.cu
*
* Created on: Apr 19, 2017
* Author: gabriel
*/
#include "0_Mainparameters.h"
string PSFDATA = "/lambda_488/Calib/system_PSF.bin";
double *double_PSF; // on host
float MaxPSF=0.0f, SumPSF = 0.0f;
void PSFprepare(void) {
char * memblock;
int size;
// XMLDocument doc;
//... |
aec1a3092c27a4f5f52ec348d1c19bace322fd31.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
__global__
void solve_jit(double *rateConst, double *state, double *deriv, int numcell)
{
size_t tid;
double rate;
tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < numcell) {
rate = rateConst[tid*50+0]... | aec1a3092c27a4f5f52ec348d1c19bace322fd31.cu |
extern "C"
__global__
void solve_jit(double *rateConst, double *state, double *deriv, int numcell)
{
size_t tid;
double rate;
tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < numcell) {
rate = rateConst[tid*50+0];
rate *= state[tid*20+8];
rate *= state[tid*20+8];
rate *= state[tid*20+18]... |
c7cdf031c40d6351848948a96887d3e6f89a4f7c.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "mDivergence_TwoDim.cu"
#include<chrono>
#include<iostream>
using... | c7cdf031c40d6351848948a96887d3e6f89a4f7c.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "mDivergence_TwoDim.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16... |
341f19c3f236cf3f087c88f1f824ebf1f9a9d1f7.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "negative_prob_multiply_dense_matrix_vector_kernel.cu"
#include<c... | 341f19c3f236cf3f087c88f1f824ebf1f9a9d1f7.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "negative_prob_multiply_dense_matrix_vector_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int... |
bdaca14770063a2382b65ef7aeeff1a3fbf1cee7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cu_inc/common.cuh"
#include "transpose_impl.h"
namespace onnxruntime {
namespace cuda {
constexpr unsig... | bdaca14770063a2382b65ef7aeeff1a3fbf1cee7.cu | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cu_inc/common.cuh"
#include "transpose_impl.h"
namespace onnxruntime {
namespace cuda {
constexpr unsigned int TILE_DIM = 16;
template <typename T>
__global__ void Transpose3DKernel(const TA... |
01aa58d41bdbf4f21c1aeb830bc445b14372c671.hip | // !!! This is a file automatically generated by hipify!!!
#include "./c_runtime_api.h"
#include <cassert>
#include <cstdio>
#include <rocblas.h>
#include <hip/hip_runtime.h>
int divupround(int a, int b) {
if(a % b == 0) return a / b;
return a / b + 1;
}
int64_t totallength(DLArrayHandle array) {
int64_t length... | 01aa58d41bdbf4f21c1aeb830bc445b14372c671.cu | #include "./c_runtime_api.h"
#include <cassert>
#include <cstdio>
#include <cublas_v2.h>
#include <cuda_runtime.h>
int divupround(int a, int b) {
if(a % b == 0) return a / b;
return a / b + 1;
}
int64_t totallength(DLArrayHandle array) {
int64_t length = 1;
for(int i = 0; i < array->ndim; i++) {
length *=... |
ba7ab1eba52cbe5e86b9fa57885a734bcbfd21d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
// We assume that NUM_ELEMENTS is divisible by BLOCK_SIZE
#define RADIUS 3
#define BLOCK_SIZE 256
#define NUM_ELEMENTS (4096*2)
// CUDA API error checking macro
static void handleError(hipError_t err,... | ba7ab1eba52cbe5e86b9fa57885a734bcbfd21d6.cu | #include <stdio.h>
// We assume that NUM_ELEMENTS is divisible by BLOCK_SIZE
#define RADIUS 3
#define BLOCK_SIZE 256
#define NUM_ELEMENTS (4096*2)
// CUDA API error checking macro
static void handleError(cudaError_t err,
const char *file,
int line ) {
if ... |
87efecfc1081042f49d009509be1ebc0e7f7ae3e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHDeviceUtils.cuh>
#include <vector>
#include <iostream>
#include <... | 87efecfc1081042f49d009509be1ebc0e7f7ae3e.cu | // 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>
#include <algorithm>
__global__ void assign_box_kernel(const long *label_cls, const float *la... |
b06ebc025244d23bb439effb5b9175f7f7e74f01.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
% Function: deinterleaver
% Description: Deinterleaves ULSCH data from RI and ACK control information
% Inputs: input_h Input bits
% N_ri_bits Number of RI control bits to deinterleave
% N_ack_bits Number of ACK co... | b06ebc025244d23bb439effb5b9175f7f7e74f01.cu | /*
% Function: deinterleaver
% Description: Deinterleaves ULSCH data from RI and ACK control information
% Inputs: input_h Input bits
% N_ri_bits Number of RI control bits to deinterleave
% N_ack_bits Number of ACK control bits to deinterleave
% N_l Number of layers
% Qm Number of bits per ... |
dafb02a0a2803730b51dc607629242cf5a0f5197.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int dims_advec_mom_kernel_z1 [6][2];
static int dims_advec_mom_kernel_z1_h [6][2] = {0};
//user function
__device__
inline void advec_mom_kernel_z1_gpu(ACC<double> &pre_vol,
ACC<dou... | dafb02a0a2803730b51dc607629242cf5a0f5197.cu | //
// auto-generated by ops.py
//
__constant__ int dims_advec_mom_kernel_z1 [6][2];
static int dims_advec_mom_kernel_z1_h [6][2] = {0};
//user function
__device__
inline void advec_mom_kernel_z1_gpu(ACC<double> &pre_vol,
ACC<double> &post_vol,
const ACC<double> &volume,
const ACC<double> &vol_flux_x,
const AC... |
c739eb40fb936fd97861753e86e0137258a8baef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
__global__ void SoftmaxLo... | c739eb40fb936fd97861753e86e0137258a8baef.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
__global__ void SoftmaxLossForwardGPU(const int nthreads,
const Dtype* prob_data, const Dtype* label, D... |
84ef6ae737106639de3f281a44f777bb30e7d655.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
#include <cmath>
#include "../include/common.hpp"
... | 84ef6ae737106639de3f281a44f777bb30e7d655.cu | #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
#include <cmath>
#include "../include/common.hpp"
#include "../include/math_functions.hpp"
namespace caffe {
template <>
void caffe_gpu_... |
ff5ea555ff8ea26be846fe28e508b3e506ee935a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel_utils.cuh"
#include <ATen/ATen.h>
#ifdef VERSION_LE_04
#include "ATen/hip/AccumulateType.cuh"
#else
#include "ATen/AccumulateType.h"
#endif
#include "ATen/hip/HIPTensorMethods.cuh"
// #include "ATen/hip/HIPTypeCo... | ff5ea555ff8ea26be846fe28e508b3e506ee935a.cu | #include "kernel_utils.cuh"
#include <ATen/ATen.h>
#ifdef VERSION_LE_04
#include "ATen/cuda/AccumulateType.cuh"
#else
#include "ATen/AccumulateType.h"
#endif
#include "ATen/cuda/CUDATensorMethods.cuh"
// #include "ATen/cuda/CUDATypeConversion.cuh"
// #include <THC/THCTensorMathReduce.cuh>
template
<typename scala... |
6c522a80cfa7634c345ef8df665cefd255e4e1ac.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct{
float *matrix;
unsigned long long int rows;
unsigned long long int *position;
unsigned long long int columns;
unsigned long long int spars... | 6c522a80cfa7634c345ef8df665cefd255e4e1ac.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct{
float *matrix;
unsigned long long int rows;
unsigned long long int *position;
unsigned long long int columns;
unsigned long long int sparseCount;
size_t pitch;
}Matrix;
void fillMatrix(Matrix*);
void COOTheMatrix(Matrix*)... |
cb8a4d87bc161eb7890d7273b9f15a4ac75aed00.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
__global__ void add(float * x, float *y, float * z, int n){
int index = threadIdx.x + blockIdx.x * blockDim.x;
int stride = blockDim.x * gridDim.x;
for (int i ... | cb8a4d87bc161eb7890d7273b9f15a4ac75aed00.cu | #include <stdio.h>
#include <iostream>
__global__ void add(float * x, float *y, float * z, int n){
int index = threadIdx.x + blockIdx.x * blockDim.x;
int stride = blockDim.x * gridDim.x;
for (int i = index; i < n; i += stride){
z[i] = x[i] + y[i];
}
}
int main(... |
5dc6a368707f395a886f2f7cae25fdf032114841.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Defines the basic matrix operations for the AIJ (compressed row)
matrix storage format using the CUSPARSE library,
*/
#define PETSC_SKIP_SPINLOCK
#define PETSC_SKIP_CXX_COMPLEX_FIX
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUN... | 5dc6a368707f395a886f2f7cae25fdf032114841.cu | /*
Defines the basic matrix operations for the AIJ (compressed row)
matrix storage format using the CUSPARSE library,
*/
#define PETSC_SKIP_SPINLOCK
#define PETSC_SKIP_CXX_COMPLEX_FIX
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1
#include <petscconf.h>
#include <../src/mat/impls/aij/seq/aij.h> /*I "pets... |
ad0543a4d1b62689bf0d748c7dcb25ba2de4504d.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
texture<float, 2, hipReadModeElementType> tex;
__global__ void transformKernel(float *output, int width, int height, float theta) {
unsigned x = blockIdx.x * blockDim.x + threadIdx.x;
unsigned y = blockIdx.y *... | ad0543a4d1b62689bf0d748c7dcb25ba2de4504d.cu | #include <cuda.h>
#include <stdio.h>
texture<float, 2, cudaReadModeElementType> tex;
__global__ void transformKernel(float *output, int width, int height, float theta) {
unsigned x = blockIdx.x * blockDim.x + threadIdx.x;
unsigned y = blockIdx.y * blockDim.y + threadIdx.y;
float u = (float)x - (float)width / 2;
... |
4d1f50d3b85b989c22a5c5c21021735b82612a03.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2019-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// 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 a... | 4d1f50d3b85b989c22a5c5c21021735b82612a03.cu | // Copyright (c) 2019-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// 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
//
/... |
6b81d156a9328a9486bb4bff26b2e5a94906b7a9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
libcudann
Copyright (C) 2011 Luca Donati (lucadonati85@gmail.com)
*/
#include "CudaActivationFunctions.cuh"
#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>
#define BLOCKSIZE 512
#define clip(x, lo, hi) (((x) < (lo... | 6b81d156a9328a9486bb4bff26b2e5a94906b7a9.cu | /*
libcudann
Copyright (C) 2011 Luca Donati (lucadonati85@gmail.com)
*/
#include "CudaActivationFunctions.cuh"
#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>
#define BLOCKSIZE 512
#define clip(x, lo, hi) (((x) < (lo)) ? (lo) : (((x) > (hi)) ? (hi) : (x)))
__global__ void actLinear(float * neurons, con... |
4cd485be5719726071772bf0237407d3bd928e96.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
All modification made by Cambricon Corporation: 2018 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2018, the respective contributors
All rights reserved.
For the list of contributors go ... | 4cd485be5719726071772bf0237407d3bd928e96.cu | /*
All modification made by Cambricon Corporation: © 2018 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2018, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and use in ... |
acf6071a25cce6031e2f58ca589edf788e877c39.hip | // !!! This is a file automatically generated by hipify!!!
#ifdef __clang__
#include <hip/hip_runtime.h>
#endif
#include <hip/hip_complex.h>
#include "common.h"
#include "metrix.h"
/* 128x128 bins, 8x8-blocks 16x16 threads each.
BU - u-number of bin
BV - v-number of bin
*/
template <
bool is_half_gcf
>
... | acf6071a25cce6031e2f58ca589edf788e877c39.cu | #ifdef __clang__
#include <cuda.h>
#endif
#include <cuComplex.h>
#include "common.h"
#include "metrix.h"
/* 128x128 bins, 8x8-blocks 16x16 threads each.
BU - u-number of bin
BV - v-number of bin
*/
template <
bool is_half_gcf
>
__device__ __inline__ static void grid_kernel_gather(
const Pregridded u... |
3c1a698b738b34e404534ac1ba50629734e74c3c.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "ComputeFreeVolumeGPU.cuh"
#include "IntegratorHPMCMonoGPU.cuh"
#include "IntegratorHPMCMonoI... | 3c1a698b738b34e404534ac1ba50629734e74c3c.cu | // Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "ComputeFreeVolumeGPU.cuh"
#include "IntegratorHPMCMonoGPU.cuh"
#include "IntegratorHPMCMonoImplicitGPU.cuh"
#include "ShapeSphere.h"
#include "ShapeCo... |
aae7f5397c9482bdf1c7ddef54f04a045a17e3cf.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <sys/mman.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <cuda_device_runtime_api.h>
#include <hip/hip_runtime_api.h>
#include <device_launch_parameters.h>
#include <cuda_occupancy.h>
#include "GoLgeneric.h"
#... | aae7f5397c9482bdf1c7ddef54f04a045a17e3cf.cu | #include <stdio.h>
#include <sys/mman.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_device_runtime_api.h>
#include <cuda_runtime_api.h>
#include <device_launch_parameters.h>
#include <cuda_occupancy.h>
#include "GoLgeneric.h"
#include "tictoc.h"
#include "defines.h"
__global__ void cuda_kernel(int * s... |
d37d1a956c43f250f60b4e6d2ffc36b5510e1122.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this... | d37d1a956c43f250f60b4e6d2ffc36b5510e1122.cu | /*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this cod... |
6b68bceef0c44a2d432d0ebba63b8d18fa5d8d9a.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <time.h>
#include "parallel.hip"
#include <unistd.h>
#include <string.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
typedef struct {
int n_inputs;
... | 6b68bceef0c44a2d432d0ebba63b8d18fa5d8d9a.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <time.h>
#include "parallel.cu"
#include <unistd.h>
#include <string.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
typedef struct {
int n_inputs;
int n_hidden;
int n_outputs;
float *out_input;
float *o... |
e634b3cf2949c2c81ea99baa34757b30ec9db73c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
__global__ void vecAdd(double *a, double *b, double *c, int n) {
int id = blockIdx.x * blockDim.x + threadIdx.x;
if (id < n)
c[id] = a[id] + b[id];
}
int main(int ar... | e634b3cf2949c2c81ea99baa34757b30ec9db73c.cu | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
__global__ void vecAdd(double *a, double *b, double *c, int n) {
int id = blockIdx.x * blockDim.x + threadIdx.x;
if (id < n)
c[id] = a[id] + b[id];
}
int main(int argc, char *argv[]) {
int n = 100000;
double *h_a, *h_b, *h_c;
double *d_a;
doub... |
2bf991fb15809368b5602c6086f17f1cf4457d86.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Yan haixu
*/
#include <stdio.h>
#include "../parser.h"
template<unsigned int blocksize>
__device__ void warpReduce(volatile float* sdata , int tid) {
if (blocksize >= 64) sdata[tid] += sdata[tid + 32];
if (blocksize... | 2bf991fb15809368b5602c6086f17f1cf4457d86.cu | /*
* Yan haixu
*/
#include <stdio.h>
#include "../parser.h"
template<unsigned int blocksize>
__device__ void warpReduce(volatile float* sdata , int tid) {
if (blocksize >= 64) sdata[tid] += sdata[tid + 32];
if (blocksize >= 32) sdata[tid] += sdata[tid + 16];
if (blocksize >= 16) sdata[tid] += sdata[tid ... |
09a912e739e5836641d37ec9d3bee6ca79ac1c35.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuVector_td_test_kernels.h"
#include "check_CUDA.h"
#include "vector_td_utilities.h"
#include "cuNDArray.h"
#include "cudaDeviceManager.h"
#include "thrust/device_vector.h"
using namespace Gadgetron;
template<class T, un... | 09a912e739e5836641d37ec9d3bee6ca79ac1c35.cu | #include "cuVector_td_test_kernels.h"
#include "check_CUDA.h"
#include "vector_td_utilities.h"
#include "cuNDArray.h"
#include "cudaDeviceManager.h"
#include "thrust/device_vector.h"
using namespace Gadgetron;
template<class T, unsigned int D> __global__ void abs_kernel(vector_td<T,D>* data, unsigned int size){
con... |
49f030640a1638f17e7a73bb620fc8c25ff9e02e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* LA-CC-16080
Copyright 2016 Priscilla Kelly and Los Alamos National Laboratory. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo... | 49f030640a1638f17e7a73bb620fc8c25ff9e02e.cu | /* LA-CC-16080
Copyright © 2016 Priscilla Kelly and Los Alamos National Laboratory. 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 of source code must retain the above c... |
0b553d134d9bbf23684ac5f770f77fd028c6647e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/core/context_gpu.h"
#include "integral_image_op.h"
namespace caffe2 {
namespace {
__global__ void RowPassKernel(
int count,
int rows_out,
int cols_out,
int chans,
const float* in,
float* ou... | 0b553d134d9bbf23684ac5f770f77fd028c6647e.cu | #include "caffe2/core/context_gpu.h"
#include "integral_image_op.h"
namespace caffe2 {
namespace {
__global__ void RowPassKernel(
int count,
int rows_out,
int cols_out,
int chans,
const float* in,
float* out) {
CUDA_1D_KERNEL_LOOP(i, count) {
// Figure out which row, channel, and batch e... |
5e9097439743340d3ff036f5823b4b9ed541c44f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <unistd.h>
#define ALLOC_SIZE 1024
__global__ void access_offset_kernel() {
int* devMem = (int*)malloc(ALLOC_SIZE*sizeof(int));
#ifdef R
volatile int i = devMem[OFFSET+ACCESS_DIR*(ALLOC_SIZE-1)]... | 5e9097439743340d3ff036f5823b4b9ed541c44f.cu | #include <stdio.h>
#include <unistd.h>
#define ALLOC_SIZE 1024
__global__ void access_offset_kernel() {
int* devMem = (int*)malloc(ALLOC_SIZE*sizeof(int));
#ifdef R
volatile int i = devMem[OFFSET+ACCESS_DIR*(ALLOC_SIZE-1)];
#elif W
devMem[OFFSET+ACCESS_DIR*(ALLOC_SIZE-1)] = 42;
#endif
free(devMem);
}
... |
5e4639a45d0f8c391113613e905d4ab470573071.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright 2015 Chen-Yu Lee (chl260@ucsd.edu)
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/math_functions.hpp"
//#include <iostream>
... | 5e4639a45d0f8c391113613e905d4ab470573071.cu | // Copyright 2015 Chen-Yu Lee (chl260@ucsd.edu)
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/math_functions.hpp"
//#include <iostream>
using std::max;
using std::min;
namespace caffe {
template <typename Dtype>
__device_... |
e48a2e5bc78720673f8a6c4d5c05a29a43d7870b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "rocblas.h"
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <stdio.h>
#include <iostream>
#include "numer_kernels.h"
#include "numer_blas.h"
#include "numer_cublas_wrappers.h"
#include "numer_ml... | e48a2e5bc78720673f8a6c4d5c05a29a43d7870b.cu | #include "cuda.h"
#include "cublas_v2.h"
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <stdio.h>
#include <iostream>
#include "numer_kernels.h"
#include "numer_blas.h"
#include "numer_cublas_wrappers.h"
#include "numer_ml.h"
extern template class BlasWrapper<float>;
extern template class... |
ac0e984bb1cea8bd69b2fdce0678a45a0c479b2e.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <math.h>
#include "CUDAParticleTracking.h"
#include "TrackCUDA.h"
#define _nparams 5
#define _length 0
#define _fieldX 1
#define _fieldY 2
#define _apertureX 3
#define _apertureY 4
extern Beam* d_BeamParameters;
extern P... | ac0e984bb1cea8bd69b2fdce0678a45a0c479b2e.cu | #include <cuda_runtime.h>
#include <math.h>
#include "CUDAParticleTracking.h"
#include "TrackCUDA.h"
#define _nparams 5
#define _length 0
#define _fieldX 1
#define _fieldY 2
#define _apertureX 3
#define _apertureY 4
extern Beam* d_BeamParameters;
extern Particle* d_ParticleArray;
extern int blocksPerGrid;
__global_... |
9a591b2d099ba48b4c9478ad492e4c1dfefe4475.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel1_ba2;
int xdim0_update_halo_kernel1_ba2_h = -1;
__constant__ int ydim0_update_halo_kernel1_ba2;
int ydim0_update_halo_kernel1_ba2_h = -1;
__constant__ int x... | 9a591b2d099ba48b4c9478ad492e4c1dfefe4475.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel1_ba2;
int xdim0_update_halo_kernel1_ba2_h = -1;
__constant__ int ydim0_update_halo_kernel1_ba2;
int ydim0_update_halo_kernel1_ba2_h = -1;
__constant__ int xdim1_update_halo_kernel1_ba2;
int xdim1_update_halo_kernel1_ba2_h = -1;
__constant__ int... |
a41bab94b581e11c8458aeab6f7b6bbca2d2f564.hip | // !!! This is a file automatically generated by hipify!!!
/*
This Code is provied to be freely used, distributed, or modified.
However it comes without warranty of any kind.
Matt Wheeler 2011
Convenience functions to solve a linear system Ax = B and calculate
the trace of a matrix. All functions use the GPU.
*/
#i... | a41bab94b581e11c8458aeab6f7b6bbca2d2f564.cu | /*
This Code is provied to be freely used, distributed, or modified.
However it comes without warranty of any kind.
Matt Wheeler 2011
Convenience functions to solve a linear system Ax = B and calculate
the trace of a matrix. All functions use the GPU.
*/
#include <cublas.h>
#include <cutil_inline.h>
#include "util... |
746f5ca870330c6edaff9094638bcfcc5afb0dc5.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <ATen/hip/HIPBlas.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/native/hip/vol2col.cuh>
namespace at... | 746f5ca870330c6edaff9094638bcfcc5afb0dc5.cu | #include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <ATen/cuda/CUDABlas.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/native/cuda/vol2col.cuh>
namespace at {
namespace native {
namespace {
static inline void ... |
092fec3828f1ff95eec7a065880902cae0615db9.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <cfloat>
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <rocblas.h>
#include <cusolverDn.h>
#include "struct.h"
#include "constants.h"
void assignObjgrdStructMemory(long long &, fcndata &, double *);
void ob... | 092fec3828f1ff95eec7a065880902cae0615db9.cu | #include <cstdio>
#include <cstdlib>
#include <cfloat>
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <cublas_v2.h>
#include <cusolverDn.h>
#include "struct.h"
#include "constants.h"
void assignObjgrdStructMemory(long long &, fcndata &, double *);
void objgrd(double *, double *, double *, fcndata &);
void mexF... |
2be5250703ab7bdc714941c0447b4c638db51eb6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "decimal.h"
#include "colordefs.h"
#include "text.h"
#include <iostream>
#define bilinearInterpolate(c00,c01,c10,c11,w1,w2,w3,w4) (w1*c00+w2*c01+w3*c10+w4*c11)
... | 2be5250703ab7bdc714941c0447b4c638db51eb6.cu | #include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "decimal.h"
#include "colordefs.h"
#include "text.h"
#include <iostream>
#define bilinearInterpolate(c00,c01,c10,c11,w1,w2,w3,w4) (w1*c00+w2*c01+w3*c10+w4*c11)
#define CUDA_THREADS_PER_BLOCK 1024 // Optimal value (calculated)
#if 0==1
#define __sh... |
45fbd7ab54dfca271d9dc1614bb52511042c52e5.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
//#include <cutil.h>
// Includes
//#include <stdio.h>
// includes, project
//#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
/... | 45fbd7ab54dfca271d9dc1614bb52511042c52e5.cu | #include <stdio.h>
#include <stdlib.h>
//#include <cutil.h>
// Includes
//#include <stdio.h>
// includes, project
//#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// includes CUDA
#include <cuda_runtime.h>
#define THREADS_... |
f1d631e124f085984115c31a83a8cd4636245030.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "corrector.cuh"
#include <math.h>
#include <stdio.h>
__global__ void corrector(float* uStar, float* vStar, float* uCorr, float* vCorr, float* P, int N, float dx, float dy, float dt){
int i = threadIdx.x, j = threadIdx... | f1d631e124f085984115c31a83a8cd4636245030.cu | #include "corrector.cuh"
#include <math.h>
#include <stdio.h>
__global__ void corrector(float* uStar, float* vStar, float* uCorr, float* vCorr, float* P, int N, float dx, float dy, float dt){
int i = threadIdx.x, j = threadIdx.y, bx = blockIdx.x, by = blockIdx.y, dim = blockDim.x;
int col = bx*dim + i;
i... |
721edc5ce138d8e99642c5ed0f4356ee898dfb6a.hip | // !!! This is a file automatically generated by hipify!!!
#include"CUDARender.cuh"
#include"cuda.h"
#include<iostream>
#include<hipfft.h>
#include"rocblas.h"
#include<stdio.h>
#include<stdlib.h>
bool CUDARender::Init(HDC dc)
{
MainDC = GetDC(hwnd);
MemoryDC = CreateCompatibleDC(MainDC);
BITMAPINFO ScreenDesc{}... | 721edc5ce138d8e99642c5ed0f4356ee898dfb6a.cu | #include"CUDARender.cuh"
#include"cuda.h"
#include<iostream>
#include<cufft.h>
#include"cublas_v2.h"
#include<stdio.h>
#include<stdlib.h>
bool CUDARender::Init(HDC dc)
{
MainDC = GetDC(hwnd);
MemoryDC = CreateCompatibleDC(MainDC);
BITMAPINFO ScreenDesc{};
ScreenDesc.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);... |
0ac423d1e73a1decb7b4108a0acad05c4be5fcfa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*****************************************************************************
*
* File: okuyama_host.cu
* Author: Alex Stivala
* Created: February 2011
*
* $Id: okuyama_host.cu 224 2011-04-13 06:09:10Z astivala $
*
* C... | 0ac423d1e73a1decb7b4108a0acad05c4be5fcfa.cu | /*****************************************************************************
*
* File: okuyama_host.cu
* Author: Alex Stivala
* Created: February 2011
*
* $Id: okuyama_host.cu 224 2011-04-13 06:09:10Z astivala $
*
* CUDA host code for multiple-source shortest path implementation using
* CUDA based on:
... |
ca7894b2788abbd04cb48dac67cbcd31988373e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "parameters.cuh"
__global__ void d_tumble(point *ra, point *pos_colloid, point len, int no_of_colloid, hiprandState_t *state){
int i = blockDim.x*blockIdx.x + threadIdx.x + 1;
if(i <= no_of_colloid) {
ra[i] = img(pos_... | ca7894b2788abbd04cb48dac67cbcd31988373e5.cu | #include "parameters.cuh"
__global__ void d_tumble(point *ra, point *pos_colloid, point len, int no_of_colloid, curandState_t *state){
int i = blockDim.x*blockIdx.x + threadIdx.x + 1;
if(i <= no_of_colloid) {
ra[i] = img(pos_colloid[i] - ra[i].rand(&state[i])*len, len);
ra[i] = ra[i]/sqrt((ra[i]*ra[i]).sum());
... |
4607241d8764e2e8543aa908331b1a5d95a53eda.hip | // !!! This is a file automatically generated by hipify!!!
#include "CudaTimer.cuh"
#include <cudaDefs.h>
namespace nscommon {
CudaTimer::CudaTimer() : elapsed_{0}, running_{false} {
hipEventCreate(&startEvent_);
hipEventCreate(&stopEvent_);
}
CudaTimer::~CudaTimer() {
hipEventDestroy(startEvent_);
... | 4607241d8764e2e8543aa908331b1a5d95a53eda.cu | #include "CudaTimer.cuh"
#include <cudaDefs.h>
namespace nscommon {
CudaTimer::CudaTimer() : elapsed_{0}, running_{false} {
cudaEventCreate(&startEvent_);
cudaEventCreate(&stopEvent_);
}
CudaTimer::~CudaTimer() {
cudaEventDestroy(startEvent_);
cudaEventDestroy(stopEvent_);
}
void CudaTimer:... |
8189dc68aae951d0ddb2dd3cd8757c5ff21ea86c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Prerequisites.cuh"
#include "Correlation.cuh"
#include "DeviceFunctions.cuh"
#include "IO.cuh"
#include "FFT.cuh"
#include "Helper.cuh"
#include <vector>
namespace gtom
{
////////////////////////////
//CUDA kernel decl... | 8189dc68aae951d0ddb2dd3cd8757c5ff21ea86c.cu | #include "Prerequisites.cuh"
#include "Correlation.cuh"
#include "DeviceFunctions.cuh"
#include "IO.cuh"
#include "FFT.cuh"
#include "Helper.cuh"
#include <vector>
namespace gtom
{
////////////////////////////
//CUDA kernel declarations//
////////////////////////////
__global__ void LocalPeaksKernel(tfloat* d_in... |
19192c5ac94261690a1b231554dc5cece5ee6bd0.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
#include <math.h>
// Includes
#include <stdio.h>
#include "../include/ContAcq-IntClk.h"
#include "../include/repeat2.h"
// includes, project
#include "../include/sdkHelper.h" // helper for shared functi... | 19192c5ac94261690a1b231554dc5cece5ee6bd0.cu | #include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
#include <math.h>
// Includes
#include <stdio.h>
#include "../include/ContAcq-IntClk.h"
#include "../include/repeat2.h"
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#... |
a0dfec6caec93f668891cd8dbb48c8cb04b604cc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "layer.h"
#include <string.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#ifdef GPU
__global__
void bilinear_resize_gpu(const unsigned char* const img,
... | a0dfec6caec93f668891cd8dbb48c8cb04b604cc.cu | #include "layer.h"
#include <string.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#ifdef GPU
__global__
void bilinear_resize_gpu(const unsigned char* const img,
real* const input3d,
const int height, c... |
d9af5255f3afb81635de406caa23f987cf907059.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/IVFInterleaved.cu... | d9af5255f3afb81635de406caa23f987cf907059.cu | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/IVFInterleaved.cuh>
#include <faiss/gpu/impl/scan/IVFInterleavedImpl.cuh>
namespace faiss {
namespace gp... |
b76d71b43e35bdf2fce920a3b0946ede21fb2b3d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef _TIMER_
#include "hip/hip_runtime_api.h"
#endif
#include "stdio.h"
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define min(a,b) FORMA_MIN(... | b76d71b43e35bdf2fce920a3b0946ede21fb2b3d.cu | #include "cuda.h"
#ifdef _TIMER_
#include "cuda_profiler_api.h"
#endif
#include "stdio.h"
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define min(a,b) FORMA_MIN(a,b)
#define FORMA_CEIL(a,b) ( (a) % (b) == 0 ? (a) / (b) : ((a) / (b)) ... |
df4e6a1b5cc469b18f06863673b06ef5437f624b.hip | // !!! This is a file automatically generated by hipify!!!
#include "chainerx/cuda/cuda_device.h"
#include <algorithm>
#include <cstdint>
#include <mutex>
#include <hip/hip_runtime.h>
#include "chainerx/array.h"
#include "chainerx/cuda/cast.cuh"
#include "chainerx/cuda/cuda.h"
#include "chainerx/cuda/cuda_runtime.h"... | df4e6a1b5cc469b18f06863673b06ef5437f624b.cu | #include "chainerx/cuda/cuda_device.h"
#include <algorithm>
#include <cstdint>
#include <mutex>
#include <cuda_runtime.h>
#include "chainerx/array.h"
#include "chainerx/cuda/cast.cuh"
#include "chainerx/cuda/cuda.h"
#include "chainerx/cuda/cuda_runtime.h"
#include "chainerx/cuda/cuda_set_device_scope.h"
#include "ch... |
960fe0a33783e6a43280967e415ddacbb6f498a3.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "gpu_stencil37_hack2_cp_cols.cu"
#include<chrono>
#include<iostre... | 960fe0a33783e6a43280967e415ddacbb6f498a3.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "gpu_stencil37_hack2_cp_cols.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,... |
1cab774c08c54472a73c3bc8f64e2d6703a1fffa.hip | // !!! This is a file automatically generated by hipify!!!
//======================================
//
//
// GPU
//======================================
#include"stdafx.h"
#include"Reshape_DATA.hpp"
#include"Reshape_FUNC.hpp"
#include"Reshape_Base.h"
#include"Reshape_GPU.cuh"
#include"Reshape_LayerData_GPU.cuh"
u... | 1cab774c08c54472a73c3bc8f64e2d6703a1fffa.cu | //======================================
// フィードフォワードニューラルネットワークの統合処理レイヤー
// 結合、活性化
// GPU処理用
//======================================
#include"stdafx.h"
#include"Reshape_DATA.hpp"
#include"Reshape_FUNC.hpp"
#include"Reshape_Base.h"
#include"Reshape_GPU.cuh"
#include"Reshape_LayerData_GPU.cuh"
using namespace Gravis... |
be14a1124f84a596c7512b00acf399a59f0310e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright 2019 Stanford
*
* 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.apa... | be14a1124f84a596c7512b00acf399a59f0310e5.cu | /* Copyright 2019 Stanford
*
* 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 wri... |
58f2a255b381a5357fd313707c385e1283bac13b.hip | // !!! This is a file automatically generated by hipify!!!
/***
* /file
*
* Validation test for Laplacian matrix.
*
* solve - u" = f with Dirichlet boundary conditions
* Numerical solution is confronted with analytical one.
*
*/
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<v... | 58f2a255b381a5357fd313707c385e1283bac13b.cu | /***
* /file
*
* Validation test for Laplacian matrix.
*
* solve - u" = f with Dirichlet boundary conditions
* Numerical solution is confronted with analytical one.
*
*/
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<vector>
#include<mpi.h>
#define USE_PRECONDITIONER
#defin... |
820f54c7729a00760c79ea8eef7e8d47c7c977c3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "simulation_gpu.h"
void cuda_failure(std::string stmt, int ce) {
std::cerr << "CUDA Failure: [" << ce << "] in line: " << stmt << std::endl;
}
CudaPRNG::CudaPRNG(unsigned long long int seed, int size_)
: size(... | 820f54c7729a00760c79ea8eef7e8d47c7c977c3.cu | #include "simulation_gpu.h"
void cuda_failure(std::string stmt, int ce) {
std::cerr << "CUDA Failure: [" << ce << "] in line: " << stmt << std::endl;
}
CudaPRNG::CudaPRNG(unsigned long long int seed, int size_)
: size(size_) {
CUDA_HANDLERR(curandCreateGenerator(&gen, CURAND_RNG_PSEUDO_DEFAULT));
... |
6572b3fa82c28d40d3f0f62394b6341e24a2bae2.hip | // !!! This is a file automatically generated by hipify!!!
/*
GFC code: A GPU-based compressor for arrays of double-precision
floating-point values.
Copyright (c) 2011-2020, Texas State University. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted prov... | 6572b3fa82c28d40d3f0f62394b6341e24a2bae2.cu | /*
GFC code: A GPU-based compressor for arrays of double-precision
floating-point values.
Copyright (c) 2011-2020, Texas State University. 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... |
f480ab3fcf3b81209c05162fee58756ff3564d26.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Created by kindr on 2021/5/8.
//
#include "multiKernelConcurrent.cuh"
#include "../../common/utils.cuh"
#include <cstdio>
const int N = 1 << 25;
__global__
void math_kernel1(int n) {
double sum = 0;
for (int i = 0; ... | f480ab3fcf3b81209c05162fee58756ff3564d26.cu | //
// Created by kindr on 2021/5/8.
//
#include "multiKernelConcurrent.cuh"
#include "../../common/utils.cuh"
#include <cstdio>
const int N = 1 << 25;
__global__
void math_kernel1(int n) {
double sum = 0;
for (int i = 0; i < n; i++) sum += tan(0.1) * tan(0.1);
printf("sum=%g\n", sum);
}
__global__
void ... |
a5de25a9324507b2c64c933bd89f301537089575.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any... | a5de25a9324507b2c64c933bd89f301537089575.cu | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modifications thereto. Any use, reproduction, disclosure, or distribution
* of this ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.