hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
722e7225d9070e292c9bc8fbfd1dbbe4a26928c7.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <device_launch_parameters.h>
#include <arrayfire.h>
#include <af/cuda.h>
extern "C"
__declspec(dllexport)
void treeOffset(double *dtm,... | 722e7225d9070e292c9bc8fbfd1dbbe4a26928c7.cu | #include <iostream>
#include <cuda.h>
#include <cuda_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <device_launch_parameters.h>
#include <arrayfire.h>
#include <af/cuda.h>
extern "C"
__declspec(dllexport)
void treeOffset(double *dtm, double *palshh, double *hans, double *nonf, double *trh, double *dem,
i... |
a908aeaf4a2ae397253eba7d728e8fed8cdcc38f.hip | // !!! This is a file automatically generated by hipify!!!
/*
* c-ray_main.cu
*
* The simplified GPU ray-tracing program.
* For this version, we use some __device__ or __const__ global
* arrays and variables instead of always pass them as arguments for device functions.
*
* usage:
* compile with the Makefile
... | a908aeaf4a2ae397253eba7d728e8fed8cdcc38f.cu | /*
* c-ray_main.cu
*
* The simplified GPU ray-tracing program.
* For this version, we use some __device__ or __const__ global
* arrays and variables instead of always pass them as arguments for device functions.
*
* usage:
* compile with the Makefile
* run as: ./a.out -i scene_file -o img_file -v -w 800 -h... |
4ebef2a4b6143d5a76e92f67f0c20181cfbc4263.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include "mytime.h"
#define N 4096
// This program works for ODD value of N as well
void fill_values(int *array, int n) {
time_t t;
srand((unsigned) time(&t));
for(int j=0; j<n; j++) {
//array[j]=j;
... | 4ebef2a4b6143d5a76e92f67f0c20181cfbc4263.cu | #include <cuda.h>
#include <stdio.h>
#include "mytime.h"
#define N 4096
// This program works for ODD value of N as well
void fill_values(int *array, int n) {
time_t t;
srand((unsigned) time(&t));
for(int j=0; j<n; j++) {
//array[j]=j;
if(j % 2 == 0)
array[j] = rand() % 200;
else{
//array[j] ... |
040397f66716941f02119e9fce97dcb38eb1b7a3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*------------------------------------------------------------------------------
Copyright 2016 by Nicola Bombieri
XLib is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any pe... | 040397f66716941f02119e9fce97dcb38eb1b7a3.cu | /*------------------------------------------------------------------------------
Copyright © 2016 by Nicola Bombieri
XLib is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Softwar... |
a48cad97a713a0a308c70ae6785fec5f61514931.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <hip/device_functions.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string>
#define Thread 1024
__global__ void KernelGaussSeidel(float* device... | a48cad97a713a0a308c70ae6785fec5f61514931.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <device_functions.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string>
#define Thread 1024
__global__ void KernelGaussSeidel(float* deviceA, float* deviceF, float* deviceX0, float*
deviceX1, int N) {
fl... |
88038f61733514256e2f20d95c0eecfef26dfebb.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMathPointwise.cu"
#else
#define IMPLEMENT_CUDA_TENSOR_BASIC_FUNC_(NAME, CFUNC, REAL) \
struct Tensor_##NAME##_##REAL##_Op { \
__device__ __fo... | 88038f61733514256e2f20d95c0eecfef26dfebb.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMathPointwise.cu"
#else
#define IMPLEMENT_CUDA_TENSOR_BASIC_FUNC_(NAME, CFUNC, REAL) \
struct Tensor_##NAME##_##REAL##_Op { \
__device__ __forceinline__ void operator()(real* out, real* in) const { \
... |
0a6c597e01754ec64d3a69a63ceefcc3d1adbb0c.hip | // !!! This is a file automatically generated by hipify!!!
#define GET_PROF
#include "hip/hip_runtime.h"
#include "include/helper/cuda/cublas_error_check.h"
#include "include/helper/cuda/cusparse_error_check.h"
#include <assert.h>
#include <stdio.h>
#include "basic_operations.hpp"
#include "dataStructures/hd_data.hpp... | 0a6c597e01754ec64d3a69a63ceefcc3d1adbb0c.cu | #define GET_PROF
#include "cuda_runtime.h"
#include "include/helper/cuda/cublas_error_check.h"
#include "include/helper/cuda/cusparse_error_check.h"
#include <assert.h>
#include <stdio.h>
#include "basic_operations.hpp"
#include "dataStructures/hd_data.hpp"
#include "dataStructures/matrix_element.hpp"
#include "helpe... |
21ae2a08b14391378fe3ebec5d8356a01fe6bc4f.hip | // !!! This is a file automatically generated by hipify!!!
#include "jacketSDK.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "hip/device_functions.h"
#include <iostream>
#define TPB 96
//first do this without the turbulence model...then with.
__global__ void channel2D_VW_PE_MRT_ts(double * f... | 21ae2a08b14391378fe3ebec5d8356a01fe6bc4f.cu | #include "jacketSDK.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include "device_functions.h"
#include <iostream>
#define TPB 96
//first do this without the turbulence model...then with.
__global__ void channel2D_VW_PE_MRT_ts(double * fOut, double * fIn, int * inl,
int * onl, int * snl, double * ux_p,... |
5fd84cd23d5a0db10c229b171bc53bc61a8fdd5d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2011-2013 Maxim Milakov
*
* 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
*
* ... | 5fd84cd23d5a0db10c229b171bc53bc61a8fdd5d.cu | /*
* Copyright 2011-2013 Maxim Milakov
*
* 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 ... |
5a66813cbfbeb91060cab1754c48a73f2723a213.hip | // !!! This is a file automatically generated by hipify!!!
/* ******************************************************************************
*
*
* 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/licen... | 5a66813cbfbeb91060cab1754c48a73f2723a213.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 NOTICE file distributed wit... |
8f0213db28ff047e44f664735faea4755a69c935.hip | // !!! This is a file automatically generated by hipify!!!
/*
*
*
* Created on: 27.6.2011
* Author: Teemu Rantalaiho (teemu.rantalaiho@helsinki.fi)
*
*
* Copyright 2011 Teemu Rantalaiho
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 8f0213db28ff047e44f664735faea4755a69c935.cu | /*
*
*
* Created on: 27.6.2011
* Author: Teemu Rantalaiho (teemu.rantalaiho@helsinki.fi)
*
*
* Copyright 2011 Teemu Rantalaiho
*
* 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 Licens... |
b8579e9cc310ba63c7a032e60b3e65b7b60d0994.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__device__ __host__ int maximum( int a, int b, int c){
int k;
if( a <= b )
k = b;
else
k = a;
if( k <=c )
return(c);
else
return(k);
}
__global__ void needle_cuda_shared_1( int* reference, int* matrix_cuda, in... | b8579e9cc310ba63c7a032e60b3e65b7b60d0994.cu | #include "includes.h"
__device__ __host__ int maximum( int a, int b, int c){
int k;
if( a <= b )
k = b;
else
k = a;
if( k <=c )
return(c);
else
return(k);
}
__global__ void needle_cuda_shared_1( int* reference, int* matrix_cuda, int cols, int penalty, int i, int block_width)
{
int bx = blockIdx.x;
int tx = threadIdx.x... |
ccce158f1da647fe80cfe11e15845170568856d4.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
int* read_array(const char* filename, int len) {
int *x = (int*) malloc(len * sizeof(int));
FILE *fp = fopen(filename, "r");
for (int i = 0; i < len; i++) {
... | ccce158f1da647fe80cfe11e15845170568856d4.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_runtime.h>
int* read_array(const char* filename, int len) {
int *x = (int*) malloc(len * sizeof(int));
FILE *fp = fopen(filename, "r");
for (int i = 0; i < len; i++) {
fscanf(fp, "%d", &x[i]);
}
fclose(fp);
return x;
}
int main(int argc,... |
74994cf43e05166958fd2b3f3337d1334d1d1b5b.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 available at
*... | 74994cf43e05166958fd2b3f3337d1334d1d1b5b.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 NOTICE file distributed wit... |
54f353d1a0eb108ff1a81d00534459110b1b856d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
# include <stdio.h>
# include <stdlib.h>
# include <hip/hip_runtime.h>
# include <sys/time.h>
# include <unistd.h>
# define BLOCK_SIZE (32)
//# define n 128
//# define n 256
//# define n 512
//# define n 1024
//# define n 2048
/... | 54f353d1a0eb108ff1a81d00534459110b1b856d.cu |
# include <stdio.h>
# include <stdlib.h>
# include <cuda.h>
# include <sys/time.h>
# include <unistd.h>
# define BLOCK_SIZE (32)
//# define n 128
//# define n 256
//# define n 512
//# define n 1024
//# define n 2048
//# define n 4096
# define n 8192
# define threshold 1e-8
double rtclock(void)
{
struct tim... |
10e6b646471f372770ad8d5c58a99f871fe6bcad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel_hip.cuh"
__device__
unsigned char normalizeColor(int sum)
{
if (sum > 255) return 255;
return (unsigned char)sum;
}
__global__
void generateImage(Pixel* pixels, int pixelsCount,
Color* result, int cols, int row... | 10e6b646471f372770ad8d5c58a99f871fe6bcad.cu | #include "kernel.cuh"
__device__
unsigned char normalizeColor(int sum)
{
if (sum > 255) return 255;
return (unsigned char)sum;
}
__global__
void generateImage(Pixel* pixels, int pixelsCount,
Color* result, int cols, int rows, int size)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDim.x ... |
a13f88d04e0134590e9684f2c96a937bea367250.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... | a13f88d04e0134590e9684f2c96a937bea367250.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 ... |
2e12334f0aed9d8e04a09e64d488b1a4081f21b3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Indice2D.h"
#include "cudaTools.h"
#include "Device.h"
#include "IndiceTools_GPU.h"
#include "RipplingMath.h"
using namespace gpu;
// Attention : Choix du nom est impotant!
// VagueDevice.cu et non Vague.cu
// Dans... | 2e12334f0aed9d8e04a09e64d488b1a4081f21b3.cu | #include "Indice2D.h"
#include "cudaTools.h"
#include "Device.h"
#include "IndiceTools_GPU.h"
#include "RipplingMath.h"
using namespace gpu;
// Attention : Choix du nom est impotant!
// VagueDevice.cu et non Vague.cu
// Dans ce dernier cas, probl�me de linkage, car le nom du .cu est le meme que le nom d'un .cpp... |
31edf7a5a7ed53001f3960f57ad6df570ca93d05.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/resource.h>
typedef struct{
char** name;
char* chrom_c;
//int* chrom;
long* pos;
//long* c_pos;
char** rest;
}SNP;
typedef struct{
... | 31edf7a5a7ed53001f3960f57ad6df570ca93d05.cu | #include <cuda_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/resource.h>
typedef struct{
char** name;
char* chrom_c;
//int* chrom;
long* pos;
//long* c_pos;
char** rest;
}SNP;
typedef struct{
char* snp_name;
int* a_id; //length is the number of animals
... |
07495cad859cc5d2a02be420021ed0a654c09b7b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "basic/math_function.h"
#include "device_launch_parameters.h"
namespace surfing
{
void surfing_gpu_memcpy(const size_t N, const void* X, void* Y)
{
if (X != Y)
{
CUDA_CHECK(hipMemcpy(Y, X, N, hipMemcpyDefault));
... | 07495cad859cc5d2a02be420021ed0a654c09b7b.cu | #include "basic/math_function.h"
#include "device_launch_parameters.h"
namespace surfing
{
void surfing_gpu_memcpy(const size_t N, const void* X, void* Y)
{
if (X != Y)
{
CUDA_CHECK(cudaMemcpy(Y, X, N, cudaMemcpyDefault));
}
}
template<>
void surfing_gpu_asum<float>(cublasHandle_t handle, int N, const f... |
4f442996f3e026d583539ff49dfb396f70b98b81.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/pooling_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
__global__ void sync_pool_back()
{ }
template <typename Dtype>
__... | 4f442996f3e026d583539ff49dfb396f70b98b81.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/pooling_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
__global__ void sync_pool_back()
{ }
template <typename Dtype>
__global__ void MaxPoolForward(const int nthreads,
const Dtype* const bottom_data, con... |
andromeda_nb.hip | // !!! This is a file automatically generated by hipify!!!
/*
* This program is a CUDA C program simulating the N-body system
* of two galaxies as PHY 241 FINAL PROJECTS
*
*/
/*
* TODO:(*for final project)
* 1. andromeda
* 2. report
* 3. presentation
* *4. N-body galaxy code-generat 10^11 part... | andromeda_nb.cu | /*
* This program is a CUDA C program simulating the N-body system
* of two galaxies as PHY 241 FINAL PROJECTS
*
*/
/*
* TODO:(*for final project)
* 1. andromeda
* 2. report
* 3. presentation
* *4. N-body galaxy code-generat 10^11 particles
* *5. MatLab write a function to track the distanc... |
e9aaf4fbf7f76806e89886eeb653753247803423.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#define MAXBLOCKS 10
#define MAXTHREADS 1
//__global__ (paralellized method)
__global__ void VectorAdd(int *a, int *b, int*c, int n)
{
int i = blockIdx.x; //Assign each c... | e9aaf4fbf7f76806e89886eeb653753247803423.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#define MAXBLOCKS 10
#define MAXTHREADS 1
//__global__ (paralellized method)
__global__ void VectorAdd(int *a, int *b, int*c, int n)
{
int i = blockIdx.x; //Assign each c element to a single block
c[i] = a[i] + b[i];
}
int main()
... |
c4f79bb90cb33885b2a5104d0aeeabc33536e37d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void hello_cuda()
{
printf("Hello CUDA \n");
}
int main()
{
int nx,ny;
nx=16;
ny=4;
dim3 block(8,2,1);
dim3 grid(nx/block.x,ny/block... | c4f79bb90cb33885b2a5104d0aeeabc33536e37d.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void hello_cuda()
{
printf("Hello CUDA \n");
}
int main()
{
int nx,ny;
nx=16;
ny=4;
dim3 block(8,2,1);
dim3 grid(nx/block.x,ny/block.y);
hello_cuda<<<grid,block>>>();
cudaDeviceSynchroni... |
22d0d26c378ce9c76af567a992917d85a705f441.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 with the LLVM exception
* (the "License"); you may not use this file except in compliance with
* the License.
*
* You may obtain a... | 22d0d26c378ce9c76af567a992917d85a705f441.cu | /*
* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 with the LLVM exception
* (the "License"); you may not use this file except in compliance with
* the License.
*
* You may obtain a copy of the License at
*
* http://llvm.org/foundation/relicensing/LICENSE.txt
*... |
ced3b7ae9c9a67e7b6f9dc165be3b686ad4beca7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef USE_CUDNN
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/gpu_memory.hpp"
#include "caffe/util/im2col.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.... | ced3b7ae9c9a67e7b6f9dc165be3b686ad4beca7.cu | #ifdef USE_CUDNN
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/gpu_memory.hpp"
#include "caffe/util/im2col.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
// Those defines serve single purpose to keep sane C++ formatting
// in presence o... |
de2bcd2f63e077ed88fafd271deb228af38f6354.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @file unstagger.cpp
*
* Calculate the co-located velocity field for U and V
*
Description:
The grid in a staggered arrangement consists of central points ('o') where most parameter values
e.g. temperature and pressure are stored. The u-veloci... | de2bcd2f63e077ed88fafd271deb228af38f6354.cu | /**
* @file unstagger.cpp
*
* Calculate the co-located velocity field for U and V
*
Description:
The grid in a staggered arrangement consists of central points ('o') where most parameter values
e.g. temperature and pressure are stored. The u-velocity points ('u') are shifted east by a half
grid spacing ... |
41d0164c0f858025b4bef636a5195855ccb0aacd.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "hip/hip_runtime.h"
template <typename T>
__global__ void computeFlip(
const T* x,
const int M,
const int N,
T* y
)
{
for (int i = blockIdx.x * bloc... | 41d0164c0f858025b4bef636a5195855ccb0aacd.cu | #include <stdio.h>
#include <math.h>
#include <float.h>
#include "cuda_runtime.h"
template <typename T>
__global__ void computeFlip(
const T* x,
const int M,
const int N,
T* y
)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < M*N; i += blockDim.x * gridDim.x)
... |
c089c844d55b6be75459219936efc53907ac24fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow 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
... | c089c844d55b6be75459219936efc53907ac24fa.cu | /*
Copyright 2020 The OneFlow 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 agre... |
3e7a96468e8ed5b991e8707998d7d7a645991204.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, ... | 3e7a96468e8ed5b991e8707998d7d7a645991204.cu | /*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
9137a86bc0f852a68a88ce0845000bd09b0e1d3a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* CUDA Machine Final Project
*
* Dong-Bang Tasi
* May 27, 2012
* Stanford University
*
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/functional.h>
#include <thru... | 9137a86bc0f852a68a88ce0845000bd09b0e1d3a.cu | /* CUDA Machine Final Project
*
* Dong-Bang Tasi
* May 27, 2012
* Stanford University
*
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/functional.h>
#include <thrust/device_vector.h>
#include <thrust/remove.h>
#include <thrust/iterator/transform_itera... |
6b8fdcafbe28ed19b3f637becdc02a94bc4ac7bc.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <time.h>
#define SIZE 10
__global__ void max(int *a , int *c) // kernel function definition
{
int i = threadIdx.x; // initialize i to thread ID
*c = a[0];
//printf("a[i] is %d \n",a[i]);
atomicMin(... | 6b8fdcafbe28ed19b3f637becdc02a94bc4ac7bc.cu | #include <cuda.h>
#include <stdio.h>
#include <time.h>
#define SIZE 10
__global__ void max(int *a , int *c) // kernel function definition
{
int i = threadIdx.x; // initialize i to thread ID
*c = a[0];
//printf("a[i] is %d \n",a[i]);
atomicMin(c,a[i]);
//printf("max is %d \n",*c);
}
int main()
{
int i;
srand(... |
186692c47e4ef549f8723696254f09ee1b81e036.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime_api.h>
#include <vector>
#include <cmath>
#include "sdf.cuh"
#include <eigen3/Eigen/Dense>
#define INDEX3(data, x, y, z, dims) (data[(z)*dims(1)*dims(0) + (y)*dims(0) + (x)])
#define IS_IN_RANGE3(x, y, z) ((x) >= 0 && (x) < dims(0) ... | 186692c47e4ef549f8723696254f09ee1b81e036.cu | #include <cuda_runtime_api.h>
#include <vector>
#include <cmath>
#include "sdf.cuh"
#include <eigen3/Eigen/Dense>
#define INDEX3(data, x, y, z, dims) (data[(z)*dims(1)*dims(0) + (y)*dims(0) + (x)])
#define IS_IN_RANGE3(x, y, z) ((x) >= 0 && (x) < dims(0) && (y) >= 0 && (y) < dims(1) && (z) >= 0 && (z) < dims(2))
#de... |
e05067dfc354a7df5dd26be2f61e0637cc9f6cbd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__device__ static int ros_Integrator_ros3(double * __restrict__ var, const double * __restrict__ fix, const double Tstart, const double Tend, double &T,
// Integration parameters
const int autonomous, const int vec... | e05067dfc354a7df5dd26be2f61e0637cc9f6cbd.cu |
__device__ static int ros_Integrator_ros3(double * __restrict__ var, const double * __restrict__ fix, const double Tstart, const double Tend, double &T,
// Integration parameters
const int autonomous, const int vectorTol, const int Max_no_steps,
const double roundoff, const double Hmin, const... |
3fa5b897022a88b44b726543724e2d89b5806db3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define CUDA_LAUNCH_BLOCKING 1
#include "ctprofileevaluation.cuh"
#include <algorithm>
#include "stdio.h"
namespace imt
{
namespace volume
{
namespace cuda
{
static void HandleError(hipError_t err,
const char *f... | 3fa5b897022a88b44b726543724e2d89b5806db3.cu | #define CUDA_LAUNCH_BLOCKING 1
#include "ctprofileevaluation.cuh"
#include <algorithm>
#include "stdio.h"
namespace imt
{
namespace volume
{
namespace cuda
{
static void HandleError(cudaError_t err,
const char *file,
int line) {
if (err != cudaSuccess) {
printf("%s in %s at line %d\n"... |
af6bdfea8705ffd1f7efc205b1d3afe391824656.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <hiprand/hiprand.h>
#include <rocblas.h>
#define cudaErrCheck(stat) { cudaErrCheck_((stat), __FILE__, __LINE__); }
void cudaErrCheck_(hipError_t stat, const char *file, int line) {
if (stat != hip... | af6bdfea8705ffd1f7efc205b1d3afe391824656.cu | #include <stdio.h>
#include <curand.h>
#include <cublas_v2.h>
#define cudaErrCheck(stat) { cudaErrCheck_((stat), __FILE__, __LINE__); }
void cudaErrCheck_(cudaError_t stat, const char *file, int line) {
if (stat != cudaSuccess) {
fprintf(stderr, "CUDA Error: %s %s %d\n", cudaGetErrorString(stat), file, li... |
f120a296df808aff20cfcbb29cea33cdb1305535.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <stdio.h>
__global__
void saxpy(int n, float a, float *x, float *y)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) y[i] = y[i]+x[i];
}
int main(void)
{
int N... | f120a296df808aff20cfcbb29cea33cdb1305535.cu | #include <cuda.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <stdio.h>
__global__
void saxpy(int n, float a, float *x, float *y)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) y[i] = y[i]+x[i];
}
int main(void)
{
int N = 1<<20;
float *x, *y, *d_x, *d_y;
x = (float*)malloc(N*sizeof(float))... |
9d90eb78d0d3abc2cff65ab841a753731edcfff6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <hip/device_functions.h>
#include <stdio.h>
#include<cuda.h>
#include<iostream>
#include<cmath>
#include<time.h>
#define TILE_WIDTH 4//block size
double duration_gpu, duration_cpu, d... | 9d90eb78d0d3abc2cff65ab841a753731edcfff6.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <device_functions.h>
#include <stdio.h>
#include<cuda.h>
#include<iostream>
#include<cmath>
#include<time.h>
#define TILE_WIDTH 4//block size
double duration_gpu, duration_cpu, duration_kernel, duration_cpumem;
using namespace std;
__host__
voi... |
deafa5d16c7454ffc8adacd4dd153e8005ff57a4.hip | // !!! This is a file automatically generated by hipify!!!
#define USE_MNIST_LOADER
#define MNIST_DOUBLE
#include "mnist.h"
#include "layer.h"
#include <hip/hip_runtime.h>
#include <cstdio>
#include <time.h>
#include <iostream>
#include <string>
#include <chrono>
#include <vector>
#include <omp.h>
static mnist_data *... | deafa5d16c7454ffc8adacd4dd153e8005ff57a4.cu | #define USE_MNIST_LOADER
#define MNIST_DOUBLE
#include "mnist.h"
#include "layer.h"
#include <cuda.h>
#include <cstdio>
#include <time.h>
#include <iostream>
#include <string>
#include <chrono>
#include <vector>
#include <omp.h>
static mnist_data *train_set, *test_set;
static unsigned int train_cnt, test_cnt;
static... |
775d940d718521687fabd321fc5451a43004c458.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
/... | 775d940d718521687fabd321fc5451a43004c458.cu | /***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
////////////////////////////////////////////////////////////... |
675c76b931c9f8f931d2d29d8f7a8861fc756118.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
extern "C" {
#include "bmp.h"
}
__global__ void render(char *img, int width, int height) {
unsigned int x_dim = blockIdx.x*blockDim.x + threadIdx.x;
unsigned int y_dim = blockIdx.y*bloc... | 675c76b931c9f8f931d2d29d8f7a8861fc756118.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
extern "C" {
#include "bmp.h"
}
__global__ void render(char *img, int width, int height) {
unsigned int x_dim = blockIdx.x*blockDim.x + threadIdx.x;
unsigned int y_dim = blockIdx.y*blockDim.y + threadIdx.y;
int index = 3*width*y_dim + x_dim*3;
float x... |
ef3cade48f6bfc32c14355b30aa27174fa4f7585.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <iostream>
#include <time.h>
#define TILE_SIZE 4
#define WINDOW_SIZE (3)
template<class IMG_TYPE>
__global__ void kernelMedian( const IMG_TYPE * __restrict__ in, IMG_TYPE *output, int j_di... | ef3cade48f6bfc32c14355b30aa27174fa4f7585.cu | #include <cuda.h>
#include <cuda_runtime_api.h>
#include <iostream>
#include <time.h>
#define TILE_SIZE 4
#define WINDOW_SIZE (3)
template<class IMG_TYPE>
__global__ void kernelMedian( const IMG_TYPE * __restrict__ in, IMG_TYPE *output, int j_dim, int pitch)
{
int row = blockIdx.y * blockDim.y + threadIdx.y;
int co... |
9a2d28de7ef0ab008cf7b81d07ca0be27e591b62.hip | // !!! This is a file automatically generated by hipify!!!
#include <cusp/csr_matrix.h>
#include <cusp/monitor.h>
#include <cusp/krylov/gmres.h>
#include <cusp/io/matrix_market.h>
#include <cusp/precond/diagonal.h>
#include <fstream>
#include <iostream>
#include <sys/time.h>
void load_vector(const char* flname, cusp:... | 9a2d28de7ef0ab008cf7b81d07ca0be27e591b62.cu | #include <cusp/csr_matrix.h>
#include <cusp/monitor.h>
#include <cusp/krylov/gmres.h>
#include <cusp/io/matrix_market.h>
#include <cusp/precond/diagonal.h>
#include <fstream>
#include <iostream>
#include <sys/time.h>
void load_vector(const char* flname, cusp::array1d<float, cusp::host_memory> &v)
{
std::ifstream in... |
fpgeneric.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// Make generic operators for floating point types
/* Th... | fpgeneric.cu | //
// Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// Make generic operators for floating point types
/* This file contains:
Generalized library calls
kernels to be called for not supported... |
7528897301074c4d70e1408a673343570b388613.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <wb.h>
__global__ void vecAdd(int * in, int * out, int width) {
int index = threadIdx.x + blockIdx.x*blockDim.x;
if (index < width)
out[index] += in[index];
}
int main(void) {
int ii;
int * in, * out;
... | 7528897301074c4d70e1408a673343570b388613.cu |
#include <wb.h>
__global__ void vecAdd(int * in, int * out, int width) {
int index = threadIdx.x + blockIdx.x*blockDim.x;
if (index < width)
out[index] += in[index];
}
int main(void) {
int ii;
int * in, * out;
int * d_in, * d_out;
int width = 1<<10;
wbTime_start(Generic, "Creating memory... |
3d5a0b4ee24deb061eb90723bb0af885760e37a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* File: cuda_kmeans.cu (CUDA version) */
/* Description: Implementation of simple k-means clustering algorithm... | 3d5a0b4ee24deb061eb90723bb0af885760e37a4.cu | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* File: cuda_kmeans.cu (CUDA version) */
/* Description: Implementation of simple k-means clustering algorithm */
/* This program takes an array of N data objects, each with */
... |
aa4eef1266a757ef5ae1afdaf703708ba771b43f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "MyCuda.h"
/**
* GPU Interleaved Addressing
* Interleaved Addressing
* 1.warp2.
* globalInputData
* globalOutputData
*/
__global__ void reduce0(float *globalInputData, float *globalOutputData, unsigned int n)
{
__sha... | aa4eef1266a757ef5ae1afdaf703708ba771b43f.cu | #include "MyCuda.h"
/**
* 在GPU利用 Interleaved Addressing 法上计算数组的和
* Interleaved Addressing 的核心思想在于交错寻址,即典型的树状模型
* 问题:1.每个warp中都会出现分支,效率低;2.取余操作效率较低
* globalInputData 输入数据,位于全局内存
* globalOutputData 输出数据,位于全局内存
*/
__global__ void reduce0(float *globalInputData, float *globalOutputData, unsigned int n)
{
__shared__ floa... |
4c8244cb3a8b74b5af01779a6efcd999619636a8.hip | // !!! This is a file automatically generated by hipify!!!
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under ... | 4c8244cb3a8b74b5af01779a6efcd999619636a8.cu | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
bf1b4410ecfd4bc534a3b65ba819162fe7bcbf6a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void createVertices(float4* positions, float time, unsigned int width, unsigned int height)
{
unsigned int x = blockIdx.x * blockDim.x + threadIdx.x;
unsigned int y = blockIdx.y * blockDim.y + threadIdx.y;
// Calculat... | bf1b4410ecfd4bc534a3b65ba819162fe7bcbf6a.cu | __global__ void createVertices(float4* positions, float time, unsigned int width, unsigned int height)
{
unsigned int x = blockIdx.x * blockDim.x + threadIdx.x;
unsigned int y = blockIdx.y * blockDim.y + threadIdx.y;
// Calculate uv coordinates
float u = x / (float)width;
float v = y / (float)height;
u = u * 2.... |
91b7250ddceab1530d74f6c2ae6c731345b8b30e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
/*
* Refactor host function to run as CUDA kernel
*/
__global__
void initWith(float num, float *a, int N)
{
int index = threadIdx.x + blockIdx.x * blockDim.x;
int stride = blockDim.x * gridDim.x;
for(in... | 91b7250ddceab1530d74f6c2ae6c731345b8b30e.cu | #include <stdio.h>
/*
* Refactor host function to run as CUDA kernel
*/
__global__
void initWith(float num, float *a, int N)
{
int index = threadIdx.x + blockIdx.x * blockDim.x;
int stride = blockDim.x * gridDim.x;
for(int i = index; i < N; i += stride)
{
a[i] = num;
}
}
__global__
void addArraysInt... |
0564a8b5f8753f7b6563d1434014c827e83d1b8f.hip | // !!! This is a file automatically generated by hipify!!!
/*
@modifier : Nilanka Manoj
@compile : nvcc vecadd.cu -o build/vecadd
@run : ./build/vecadd <<n>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <hip/hip_runtime.h>
double *a, *b;
double *c, *c2;
__global__ void vecA... | 0564a8b5f8753f7b6563d1434014c827e83d1b8f.cu | /*
@modifier : Nilanka Manoj
@compile : nvcc vecadd.cu -o build/vecadd
@run : ./build/vecadd <<n>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <cuda.h>
double *a, *b;
double *c, *c2;
__global__ void vecAdd(double *A, double *B, double *C, int N)
{
int i = blockIdx.x * b... |
a3121c616c61daae6b01e0c0f8898c5c900ffa62.hip | // !!! This is a file automatically generated by hipify!!!
#define GLM_FORCE_CUDA
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <cmath>
#include <glm/glm.hpp>
#include "utilityCore.hpp"
#include "kernel.h"
// potentially useful for doing grid-based neighbor search
#ifndef imax
#define imax( a, b ) ( ((a) > ... | a3121c616c61daae6b01e0c0f8898c5c900ffa62.cu | #define GLM_FORCE_CUDA
#include <stdio.h>
#include <cuda.h>
#include <cmath>
#include <glm/glm.hpp>
#include "utilityCore.hpp"
#include "kernel.h"
// potentially useful for doing grid-based neighbor search
#ifndef imax
#define imax( a, b ) ( ((a) > (b)) ? (a) : (b) )
#endif
#ifndef imin
#define imin( a, b ) ( ((a) < ... |
3da2451d6f3489fd63f056f1e38066bb518691d0.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include "../src/cuspreadinterp.h"
#include "../contrib/utils.h"
using namespace std;
int main(int argc, char* argv[])
{
int nf1, nf2, nf3;
FLT sigma = 2.0;... | 3da2451d6f3489fd63f056f1e38066bb518691d0.cu | #include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include "../src/cuspreadinterp.h"
#include "../contrib/utils.h"
using namespace std;
int main(int argc, char* argv[])
{
int nf1, nf2, nf3;
FLT sigma = 2.0;
int N1, N2, N3, M;
if (argc<5) {
fprintf(stderr,
"U... |
d3077b8cb4146441e7032dce66cfbb7fedb0dc64.hip | // !!! This is a file automatically generated by hipify!!!
#include<stdio.h>
#include<stdlib.h>
#include<cuda_runtime.h>
#include<time.h>
#include<format.h>
int main(int argc, char** argv){
if(argc < 2) {
fprintf(stderr, "USAGE: %s filename.jpg ...\n", argv[0]);
return EXIT_FAILURE;
}
JPGReader* re... | d3077b8cb4146441e7032dce66cfbb7fedb0dc64.cu | #include<stdio.h>
#include<stdlib.h>
#include<cuda_runtime.h>
#include<time.h>
#include<format.h>
int main(int argc, char** argv){
if(argc < 2) {
fprintf(stderr, "USAGE: %s filename.jpg ...\n", argv[0]);
return EXIT_FAILURE;
}
JPGReader* reader = newJPGReader();
if (!reader) {
fprintf(stderr,... |
7509305acad7175e80d7267e123c7d8adf31562f.hip | // !!! This is a file automatically generated by hipify!!!
/**
* CUDA-implemented utility functions & kernels needed by the neural net
* @author Aadyot Bhatngar
* @date April 22, 2018
*/
#include "utils.cuh"
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <thrust/device_ptr.h>
#include ... | 7509305acad7175e80d7267e123c7d8adf31562f.cu | /**
* CUDA-implemented utility functions & kernels needed by the neural net
* @author Aadyot Bhatngar
* @date April 22, 2018
*/
#include "utils.cuh"
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <thrust/device_ptr.h>
#include <thrust/fill.h>
#include <algorithm>
#include "helper_cuda.h"
... |
8d643ba53922ef6680a4ce0cb9d765027c7817eb.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
// #include <hip/hip_runtime.h>
// #include <hip/hip_runtime.h>
#include "matrix_sizes.h"
#include "matrix_mult.h"
#if 0 // version 1
// CUDA Kernel
__global__ void
cudakernel_matrix_mul( real_t* C, re... | 8d643ba53922ef6680a4ce0cb9d765027c7817eb.cu | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
// #include <cuda.h>
// #include <cuda_runtime.h>
#include "matrix_sizes.h"
#include "matrix_mult.h"
#if 0 // version 1
// CUDA Kernel
__global__ void
cudakernel_matrix_mul( real_t* C, real_t* A, real_t* B, int wA, int wB)
{
// 2D Thread ID
int tx = thr... |
ed7ece41f044f928471c2f6760ec84556243caf3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//====================================================================================================100
// DEFINE / INCLUDE
//====================================================================================================100... | ed7ece41f044f928471c2f6760ec84556243caf3.cu | //====================================================================================================100
// DEFINE / INCLUDE
//====================================================================================================100
#include "kernel_fin_2.cu"
#include "kernel_ecc_2.cu"
#include "kernel_cam_2.cu"
#incl... |
c46e5e555e69eea31d747fb1838c1e1c1a66a4ca.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @file : main_smartCUB.cu
* @brief : Main file for Smart pointers for CUB (shared and unique ptrs) classes, in C++14,
* @details : A playground to try out things in smart pointers;
* especially abstracting our use of smart pointers with CUDA. ... | c46e5e555e69eea31d747fb1838c1e1c1a66a4ca.cu | /**
* @file : main_smartCUB.cu
* @brief : Main file for Smart pointers for CUB (shared and unique ptrs) classes, in C++14,
* @details : A playground to try out things in smart pointers;
* especially abstracting our use of smart pointers with CUDA.
* Notice that std::make_unique DOES NOT have a custo... |
86485401c05044174f9774c9d0c30dd8845c6802.hip | // !!! This is a file automatically generated by hipify!!!
// http://www.cl.cam.ac.uk/research/rainbow/projects/dcbgrid/DCBGrid-preprint.pdf
#include "GpuDepthMap.hpp"
#include "AmCudaHelper.cuh"
#include "helper_cuda.h"
//#include "CudaHelperCommon.cuh"
#if 0
template<typename T>
void GpuDepthMap<T>::Create( GpuDept... | 86485401c05044174f9774c9d0c30dd8845c6802.cu | // http://www.cl.cam.ac.uk/research/rainbow/projects/dcbgrid/DCBGrid-preprint.pdf
#include "GpuDepthMap.hpp"
#include "AmCudaHelper.cuh"
#include "helper_cuda.h"
//#include "CudaHelperCommon.cuh"
#if 0
template<typename T>
void GpuDepthMap<T>::Create( GpuDepthMapType type, int width, int height )
{
if ( type != m... |
680baf4972c738c5ce5ab86e6ef5d590e0f42ba2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "PolygonSideMapConstructing.hpp"
__device__ bool PolygonSideMapConstructing::isThereAnEdge(const Graph::byte& nodeEdges, GraphEdge direction)
{
return nodeEdges & static_cast<Graph::byte>(direction);
}
__device__ bool... | 680baf4972c738c5ce5ab86e6ef5d590e0f42ba2.cu | #include "PolygonSideMapConstructing.hpp"
__device__ bool PolygonSideMapConstructing::isThereAnEdge(const Graph::byte& nodeEdges, GraphEdge direction)
{
return nodeEdges & static_cast<Graph::byte>(direction);
}
__device__ bool
PolygonSideMapConstructing::isThisQuarterForwardSlash(int row, int col, int width, cons... |
dec10c41b2cf84889cbbd2770ac967a5689dd20b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* CUDAKernels.cu
* Copyright (C) 2009-2017 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "SombreroKernels.cuh"
using namespace megamol;
using namespace megamol::protein_cuda;
__constant__ float C_PI = 3.1415926535... | dec10c41b2cf84889cbbd2770ac967a5689dd20b.cu | /*
* CUDAKernels.cu
* Copyright (C) 2009-2017 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "SombreroKernels.cuh"
using namespace megamol;
using namespace megamol::protein_cuda;
__constant__ float C_PI = 3.141592653589f;
/**
* CUDA symbol for the face grouping will be false if no
* further changes wh... |
d5b86fa2e6d6da2d253a33b691566a9c2297ee59.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2014 Google Inc. 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 ... | d5b86fa2e6d6da2d253a33b691566a9c2297ee59.cu | /*
* Copyright 2014 Google Inc. 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 applicab... |
705db291669438be2ab2f92f37b7c7bf1c21f83e.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_t1;
int xdim0_update_halo_kernel1_t1_h = -1;
__constant__ int xdim1_update_halo_kernel1_t1;
int xdim1_update_halo_kernel1_t1_h = -1;
__constant__ int xdim2... | 705db291669438be2ab2f92f37b7c7bf1c21f83e.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel1_t1;
int xdim0_update_halo_kernel1_t1_h = -1;
__constant__ int xdim1_update_halo_kernel1_t1;
int xdim1_update_halo_kernel1_t1_h = -1;
__constant__ int xdim2_update_halo_kernel1_t1;
int xdim2_update_halo_kernel1_t1_h = -1;
__constant__ int xdim3... |
06c6b739357c78492f002aa7e734147c7cbe391c.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include "common.h"
#include "radix.h"
#include "efficient.h"
#include "device_launch_parameters.h"
#include <math.h>
#define checkCUDAErrorWithLine(msg) checkCUDAError(... | 06c6b739357c78492f002aa7e734147c7cbe391c.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include "common.h"
#include "radix.h"
#include "efficient.h"
#include "device_launch_parameters.h"
#include <math.h>
#define checkCUDAErrorWithLine(msg) checkCUDAError(msg, __LINE__)
#define MAX_BIT 6
#define blockSize 128
int* data;
int* outp... |
43a2d7e8c2bb25f8590d01134d874f5be6b69b85.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
// a contains the image, b contains the kernel filter, and r is the matrix where the answer will be returned
__global__ void kernelConvolution(double *a, double *b, double *r, int size_col, i... | 43a2d7e8c2bb25f8590d01134d874f5be6b69b85.cu | #include <stdio.h>
#include <stdlib.h>
// a contains the image, b contains the kernel filter, and r is the matrix where the answer will be returned
__global__ void kernelConvolution(double *a, double *b, double *r, int size_col, int size_row, int size, int kernel_size) {
int i = threadIdx.x+blockDim.x*blockIdx.x;... |
ae40536d3d2d536df016bd124763136d782ade65.hip | // !!! This is a file automatically generated by hipify!!!
#define LIMIT -999
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "needle.h"
#include <hip/hip_runtime.h>
#include <sys/time.h>
// includes, kernels
#include "needle_kernel.hip"
//////////////////////////////////////////... | ae40536d3d2d536df016bd124763136d782ade65.cu | #define LIMIT -999
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "needle.h"
#include <cuda.h>
#include <sys/time.h>
// includes, kernels
#include "needle_kernel.cu"
////////////////////////////////////////////////////////////////////////////////
// declaration, forward
void run... |
f2e83a06c69b59bc3eb794de82b25543e153e7c7.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
using namespace std;
void queryDeviceInformation(void) {
hipDeviceProp_t prop;
int count;
hipGetDeviceCount(&count);
for (int i=0; i< count; i++) {
hipGetDeviceProperties(&prop, i);
cout << "--- General Information for device "... | f2e83a06c69b59bc3eb794de82b25543e153e7c7.cu | #include <iostream>
using namespace std;
void queryDeviceInformation(void) {
cudaDeviceProp prop;
int count;
cudaGetDeviceCount(&count);
for (int i=0; i< count; i++) {
cudaGetDeviceProperties(&prop, i);
cout << "--- General Information for device " << i << endl << endl;
cout << "Name: " << prop.name <<... |
d7120f5b73c5ee98ba6243bfd134b092c2518044.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "layer_include/vision_layers.hpp"
// find a max class value from all examples
template <typename Dtype>
__global__ void MaxClassKernel(const int outer_num, const int classes, const int inner_num,
const Dtype* bottom_data,... | d7120f5b73c5ee98ba6243bfd134b092c2518044.cu | #include "layer_include/vision_layers.hpp"
// find a max class value from all examples
template <typename Dtype>
__global__ void MaxClassKernel(const int outer_num, const int classes, const int inner_num,
const Dtype* bottom_data, Dtype* scale_data){
CUDA_KERNEL_LOOP(idx, outer_num*inner_num){
int o_idx = idx / in... |
6824f215c5832b4b0650c02b06f9f630785e3c8b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct hipComplex {
float r;
float i;
__device__ hipComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
re... | 6824f215c5832b4b0650c02b06f9f630785e3c8b.cu | #include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct cuComplex {
float r;
float i;
__device__ cuComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
return r * r + i * i;
}
__device__ cuComplex operator*(const cuComplex& a) {
... |
bae5082d884b37aee6a421cd5e34617aae1fedad.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <unistd.h>
#include <hip/hip_runtime.h>
#include <stdint.h>
#include <memory>
#include "debug.h"
#include "hooklib.h"
#include "protocol.hpp"
#include "slimfast.hpp"
#include "consumer.hpp"
#include "impl.hpp"
#include "devlogger.hp... | bae5082d884b37aee6a421cd5e34617aae1fedad.cu | #include <iostream>
#include <unistd.h>
#include <cuda_runtime.h>
#include <stdint.h>
#include <memory>
#include "debug.h"
#include "hooklib.h"
#include "protocol.hpp"
#include "slimfast.hpp"
#include "consumer.hpp"
#include "impl.hpp"
#include "devlogger.hpp"
__global__ void benchmark_memwrite(const int num_repeats, ... |
7fb03110583bec5ffaf055fd9c55d0617b2c93e5.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2017 XGBoost contributors
*/
#include "./host_device_vector.h"
#include <thrust/fill.h>
#include <xgboost/data.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "device_helpers_hip.cuh"
namespace xgboost {
// the handler... | 7fb03110583bec5ffaf055fd9c55d0617b2c93e5.cu | /*!
* Copyright 2017 XGBoost contributors
*/
#include "./host_device_vector.h"
#include <thrust/fill.h>
#include <xgboost/data.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "./device_helpers.cuh"
namespace xgboost {
// the handler to call instead of cudaSetDevice; only used for testing
stat... |
caba75c125065fde26a23a1d02c5928318462116.hip | // !!! This is a file automatically generated by hipify!!!
#ifdef __cplusplus
extern "C" {
#endif
//===============================================================================================================================================================================================================200
// SET_D... | caba75c125065fde26a23a1d02c5928318462116.cu | #ifdef __cplusplus
extern "C" {
#endif
//===============================================================================================================================================================================================================200
// SET_DEVICE CODE
//==============================================... |
87d8c5a86208ee4a2068fe2fc20d5ed686cd3e61.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <algorithm>
#include <stdio.h>
#include "commonFunction.h"
#include "TestFunction.h"
#define ARRAY_SIZE 49
#include<cmath>
using namespace std;
__global__ void calculateSimilarity3(flo... | 87d8c5a86208ee4a2068fe2fc20d5ed686cd3e61.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <algorithm>
#include <stdio.h>
#include "commonFunction.h"
#include "TestFunction.h"
#define ARRAY_SIZE 49
#include<cmath>
using namespace std;
__global__ void calculateSimilarity3(float* c, const float *a, const int NA,
const int NB, const int... |
945bb067dec0f221b79eba8f3b0dab64d124896f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void g_countCellOcc(uint *_hash, uint *_cellOcc, uint _pixCount, uint _hashCellCount)
{
uint idx = blockIdx.x * blockDim.x + threadIdx.x;
if(idx < _pixCount && _hash[idx] < _hashCellCount)
atomicAdd(... | 945bb067dec0f221b79eba8f3b0dab64d124896f.cu | #include "includes.h"
__global__ void g_countCellOcc(uint *_hash, uint *_cellOcc, uint _pixCount, uint _hashCellCount)
{
uint idx = blockIdx.x * blockDim.x + threadIdx.x;
if(idx < _pixCount && _hash[idx] < _hashCellCount)
atomicAdd(&(_cellOcc[_hash[idx]]), 1);
} |
3761279f435ae89cc7640a75043359a59cfc534a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <string.h>
#include <stdio.h>
#include <thread>
#include "apex_api.hpp"
#define RUNTIME_API_CALL(apiFuncCall) \
do { ... | 3761279f435ae89cc7640a75043359a59cfc534a.cu | #include <string.h>
#include <stdio.h>
#include <thread>
#include "apex_api.hpp"
#define RUNTIME_API_CALL(apiFuncCall) \
do { \
cudaError_t _status = apiFuncCall; ... |
8ac6ef6ccb9740cb2790cde764b1af3e658045ac.hip | // !!! This is a file automatically generated by hipify!!!
//pass
//--blockDim=64 --gridDim=64 --no-inline
#include <hip/hip_runtime.h>
inline __device__ void f() __attribute__((always_inline));
inline __device__ void f() {
}
inline __device__ void g() __attribute__((always_inline));
inline __device__ void g() {
f(... | 8ac6ef6ccb9740cb2790cde764b1af3e658045ac.cu | //pass
//--blockDim=64 --gridDim=64 --no-inline
#include <cuda.h>
inline __device__ void f() __attribute__((always_inline));
inline __device__ void f() {
}
inline __device__ void g() __attribute__((always_inline));
inline __device__ void g() {
f();
}
__global__ void k() {
g();
}
|
6a7f04d04a6b8b8eeb3a0db2709812bd457be7cf.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019, 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/li... | 6a7f04d04a6b8b8eeb3a0db2709812bd457be7cf.cu | /*
* Copyright (c) 2019, 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 law ... |
f8acf8f9511486c0dde6a7627a1f41e5ecd93e6d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zlarfg-v2.cu normal z -> c, Wed Sep 17... | f8acf8f9511486c0dde6a7627a1f41e5ecd93e6d.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zlarfg-v2.cu normal z -> c, Wed Sep 17 15:08:23 2014
*/
#include "common_magma.h"
// 512 is maximum number of threads for CU... |
2a63059c8c9960b529ceaf774004acadfc6442ab.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction,... | 2a63059c8c9960b529ceaf774004acadfc6442ab.cu | /**
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and relate... |
00427ac3b310e16ceb3d502e88f50e7b0699d991.hip | // !!! This is a file automatically generated by hipify!!!
// ###
// ###
// ### Practical Course: GPU Programming in Computer Vision
// ###
// ###
// ### Technical University Munich, Computer Vision Group
// ### Winter Semester 2015/2016, March 15 - April 15
// ###
// ###
// ###
// ### THIS FILE IS SUPPOSED TO REMAIN U... | 00427ac3b310e16ceb3d502e88f50e7b0699d991.cu | // ###
// ###
// ### Practical Course: GPU Programming in Computer Vision
// ###
// ###
// ### Technical University Munich, Computer Vision Group
// ### Winter Semester 2015/2016, March 15 - April 15
// ###
// ###
// ###
// ### THIS FILE IS SUPPOSED TO REMAIN UNCHANGED
// ###
// ###
#include "helper.h"
#include <cstd... |
4128e68ef88fbe3998cb9fd15b2cf01b0696991c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2017 Sony Corporation. 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 L... | 4128e68ef88fbe3998cb9fd15b2cf01b0696991c.cu | // Copyright (c) 2017 Sony Corporation. 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 ... |
d705ba500d199386fbb8234ae6418c4c3c0eb004.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/hip/Loops.cuh>
#include <ATen/native/BinaryOps.h>
// NOTE: CUDA on Windows requires that the enclosing function
// of a __device__ lambda not have internal linkage.
namespa... | d705ba500d199386fbb8234ae6418c4c3c0eb004.cu | #include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/native/BinaryOps.h>
// NOTE: CUDA on Windows requires that the enclosing function
// of a __device__ lambda not have internal linkage.
namespace at { namespace native {
template<typename scalar_t>
st... |
029b7f09f8ba766e4517ab69358a8700728206f5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***************************************************************************
*cr
*cr (C) Copyright 2008-2010 The Board of Trustees of the
*cr University of Illinois
*cr A... | 029b7f09f8ba766e4517ab69358a8700728206f5.cu | /***************************************************************************
*cr
*cr (C) Copyright 2008-2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
***************************************************************... |
c3c1818c96189cba06f92b862890c04d0db72bf0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Created by marco on 22/05/20.
//
#include "K_means_Cuda.cuh"
#include <cmath>
#include <iostream>
__constant__ short constK;
__constant__ int constNumPoint;
__constant__ short constDimPoint;
void CheckCudaErrorAux(const ... | c3c1818c96189cba06f92b862890c04d0db72bf0.cu | //
// Created by marco on 22/05/20.
//
#include "K_means_Cuda.cuh"
#include <cmath>
#include <iostream>
__constant__ short constK;
__constant__ int constNumPoint;
__constant__ short constDimPoint;
void CheckCudaErrorAux(const char *file, unsigned line, const char *statement, cudaError_t err) {
if (err == cuda... |
09dff7ee194675350d9e5f27d818ae3f65ae12ef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <assert.h>
#include <vector>
using namespace std;
const int INF = 10000000;
const int V = 10010;
const int MAX_THREAD_DIM2 = 32;
void input(char *inFileName, int B... | 09dff7ee194675350d9e5f27d818ae3f65ae12ef.cu | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <assert.h>
#include <vector>
using namespace std;
const int INF = 10000000;
const int V = 10010;
const int MAX_THREAD_DIM2 = 32;
void input(char *inFileName, int B);
void output(char *outFileName);
void block_FW_2GPU(int B);
int ceil(int a, int b);
v... |
9cf03e03f33c009fb198773802499fc847edd3b8.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2021-2023, 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... | 9cf03e03f33c009fb198773802499fc847edd3b8.cu | /*
* Copyright (c) 2021-2023, 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... |
bfda8a1124aacfe851aa9211fdd09fae0031354a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void matrix_transpose_k1(float* input,float* output,const int nx, const int ny)
{
int gid = blockDim.x * blockIdx.x + threadIdx.x;
int offset = threadIdx.x*blockDim.x;
//printf("gid : %d , offset : %... | bfda8a1124aacfe851aa9211fdd09fae0031354a.cu | #include "includes.h"
__global__ void matrix_transpose_k1(float* input,float* output,const int nx, const int ny)
{
int gid = blockDim.x * blockIdx.x + threadIdx.x;
int offset = threadIdx.x*blockDim.x;
//printf("gid : %d , offset : %d , index : %d ,value : %f \n", gid, offset, offset + blockIdx.x,input[offset + blockIdx... |
0951de8afe1a8bdc900754f7daeb6485e7bb0907.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
//constants
#define n 0.0002
#define p 0.5
#define G 0.75
//parameters
#define SIZE 4
#define NUMBER_OF_ITERATIONS 3
#define ALGORITHM 4
... | 0951de8afe1a8bdc900754f7daeb6485e7bb0907.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
//constants
#define n 0.0002
#define p 0.5
#define G 0.75
//parameters
#define SIZE 4
#define NUMBER_OF_ITERATIONS 3
#define ALGORITHM 4
//1 = sequential
//2 = simple parallel
//3 = 1 block N threads... |
c6fd699bff316515d32eb4e3839d453273f8fc1a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include "utils.h"
#define SIZE 512
__global__ void add(int *a, int *b, int *c) {
c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x];
}
int main(int argc, char* argv[]) {
int *a, *b, *c;
int *... | c6fd699bff316515d32eb4e3839d453273f8fc1a.cu | #include <stdio.h>
#include <stdlib.h>
#include "utils.h"
#define SIZE 512
__global__ void add(int *a, int *b, int *c) {
c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x];
}
int main(int argc, char* argv[]) {
int *a, *b, *c;
int *d_a, *d_b, *d_c;
a = (int*) malloc(SIZE * sizeof(int));
fill_array(a, SIZE);
display... |
86a1b763c1260e3316b5208c67a4ee4f5c5135b9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<cuda.h>
#include <sys/time.h>
// Device code
__global__ void kernel(int* d_A, int pitch,int height,int width)
{
for (int c = 0; c < height; ++c) {
for (int r = 0; r < width; ++r) {
... | 86a1b763c1260e3316b5208c67a4ee4f5c5135b9.cu | #include<stdio.h>
#include<cuda.h>
#include <sys/time.h>
// Device code
__global__ void kernel(int* d_A, int pitch,int height,int width)
{
for (int c = 0; c < height; ++c) {
for (int r = 0; r < width; ++r) {
int* row = (int*)((char*)d_A + r * pitch);
row[c] = row[c]*row[c];
... |
9f2a4050acb759f2c9a0e964c33a231ea3c40413.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/inq_conv_layer.hpp"
#include <cmath>
namespace caffe {
template <typename Dtype>
__global__ void TPCalc(const int n, Dtype *param, Dtype *mask,
... | 9f2a4050acb759f2c9a0e964c33a231ea3c40413.cu | #include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/inq_conv_layer.hpp"
#include <cmath>
namespace caffe {
template <typename Dtype>
__global__ void TPCalc(const int n, Dtype *param, Dtype *mask,
const Dtype threshold_, const int max_quantum_exp_,
const ... |
1884809d8466e7b574a8c80e13fa2cd7c5beff55.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (C) 2009-2010, NVIDIA Corporation, all rights reserved.
* Third party copyrights are property of their respective owners.
*
* All rights res... | 1884809d8466e7b574a8c80e13fa2cd7c5beff55.cu | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (C) 2009-2010, NVIDIA Corporation, all rights reserved.
* Third party copyrights are property of their respective owners.
*
* All rights reserved.
*
* Redistribution and use in source and binary f... |
fc10df464d956fdff9862fbbfc68fb37a2c8dee2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "hip/device_functions.h"
#include <cstdlib>
#include <sys/time.h>
#include <iostream>
using namespace std;
__global__ void T_binary(int*bin_dev, int *_del) {
int bli = blockIdx.x *... | fc10df464d956fdff9862fbbfc68fb37a2c8dee2.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "device_functions.h"
#include <cstdlib>
#include <sys/time.h>
#include <iostream>
using namespace std;
__global__ void T_binary(int*bin_dev, int *_del) {
int bli = blockIdx.x * blockDim.x;
int idx = threadIdx.x;
bin_dev[bli + idx] = blockId... |
a97e9f0cbab15bdad6ac003a39955c03f475106b.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef __GDD_GQD_INLINE_CU__
#define __GDD_GQD_INLINE_CU__
#define _QD_SPLITTER (134217729.0) // = 2^27 + 1
#define _QD_SPLIT_THRESH (6.6969287949141707e+299) // = 2^996
// For translate
union trans {
unsigned __i... | a97e9f0cbab15bdad6ac003a39955c03f475106b.cu | #ifndef __GDD_GQD_INLINE_CU__
#define __GDD_GQD_INLINE_CU__
#define _QD_SPLITTER (134217729.0) // = 2^27 + 1
#define _QD_SPLIT_THRESH (6.6969287949141707e+299) // = 2^996
// For translate
union trans {
unsigned __int64 asInt64;
double asDouble;
};
// Basic functions ==... |
35910eee957e32424bae731997fab5d4522234ef.hip | // !!! This is a file automatically generated by hipify!!!
/*
device.cu
Contains the __device__ functions and __constant__s for CUDASieve
by Curtis Seizert <cseizert@gmail.com>
*/
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <math_functions.h>
#include "CUDASieve/device.cuh"
/*
###... | 35910eee957e32424bae731997fab5d4522234ef.cu | /*
device.cu
Contains the __device__ functions and __constant__s for CUDASieve
by Curtis Seizert <cseizert@gmail.com>
*/
#include <cuda.h>
#include <cuda_runtime.h>
#include <math_functions.h>
#include "CUDASieve/device.cuh"
/*
############################################
###### Bitmask arrays... |
1008bc1299e4820a5992c873f33dcb61942e4a84.hip | // !!! This is a file automatically generated by hipify!!!
//THIS PROGRAM GENERATES MONTECARLO DATA GIVEN AN AMPLITUDE MODEL
//ROOT
#include <TFile.h>
#include <TTree.h>
#include <iostream>
#include <string>
// GooFit stuff
#include "goofit/Variable.h"
#include "goofit/PDFs/basic/PolynomialPdf.h"
#include "goofit/... | 1008bc1299e4820a5992c873f33dcb61942e4a84.cu | //THIS PROGRAM GENERATES MONTECARLO DATA GIVEN AN AMPLITUDE MODEL
//ROOT
#include <TFile.h>
#include <TTree.h>
#include <iostream>
#include <string>
// GooFit stuff
#include "goofit/Variable.h"
#include "goofit/PDFs/basic/PolynomialPdf.h"
#include "goofit/UnbinnedDataSet.h"
#include "goofit/PDFs/physics/DP4Pdf.h"
... |
f9a5bf3605d919ea68317c1a282e93d2847af099.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// cudamatrix/cu-kernels.cu
// Copyright 2009-2012 Karel Vesely
// 2013 Ehsan Variani
// 2013 Johns Hopkins University (author: Daniel Povey)
// 2013 Hainan Xu
// 2013... | f9a5bf3605d919ea68317c1a282e93d2847af099.cu | // cudamatrix/cu-kernels.cu
// Copyright 2009-2012 Karel Vesely
// 2013 Ehsan Variani
// 2013 Johns Hopkins University (author: Daniel Povey)
// 2013 Hainan Xu
// 2013 Xiaohui Zhang
// 2013-2015 Guoguo Chen
// 2016-2017 Shiyin Kang
... |
a1abe0feae695fcd09d7068a8e822f65af90e5fe.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C" {
__global__ void Run(int n, float* __restrict left, float* __restrict right, float* __restrict output) {
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) output[i] = left[i] / right[i];
}
} | a1abe0feae695fcd09d7068a8e822f65af90e5fe.cu | extern "C" {
__global__ void Run(int n, float* __restrict left, float* __restrict right, float* __restrict output) {
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) output[i] = left[i] / right[i];
}
} |
d018648d24b84a99c9523509fd747a572f7a1532.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2020, 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... | d018648d24b84a99c9523509fd747a572f7a1532.cu | /*
* Copyright (c) 2019-2020, 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... |
0f4114a6b16ed053960bdf03b48e5d8f3aa96d1c.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 "LeftRightBound2D.cu"
#include<chrono>
#include<iostream>
using n... | 0f4114a6b16ed053960bdf03b48e5d8f3aa96d1c.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 "LeftRightBound2D.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.