hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
bb0c30e5eb1b49c0422d1d8dd358a7d8cedf6d72.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuda_arrays.h"
template <int N>
__device__ float read_surface(hipSurfaceObject_t s, int x, int y, int z);
template <>
__device__ float read_surface<1>(hipSurfaceObject_t s, int x, int y, int z)
{
return surf1Dread<floa... | bb0c30e5eb1b49c0422d1d8dd358a7d8cedf6d72.cu | #include "cuda_arrays.h"
template <int N>
__device__ float read_surface(cudaSurfaceObject_t s, int x, int y, int z);
template <>
__device__ float read_surface<1>(cudaSurfaceObject_t s, int x, int y, int z)
{
return surf1Dread<float>(s, x * (int)sizeof(float), cudaBoundaryModeClamp);
}
template <>
__device__ float ... |
b620ba372d43c8c0c3f51eef77192b98d77390ac.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/*
============================================================================
Name :
Author : Peter Whidden
Version :
Copyright :
Description :
==============================================... | b620ba372d43c8c0c3f51eef77192b98d77390ac.cu | #include "includes.h"
/*
============================================================================
Name :
Author : Peter Whidden
Version :
Copyright :
Description :
============================================================================
*/
static void CheckCudaErrorAux (const char *, unsig... |
4ba6471d4ea8dc3186f4fe2d9a765162889e91c6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void __floatToInt(float *A, int *B, int N) {
int ip = threadIdx.x + blockDim.x * (blockIdx.x + gridDim.x * blockIdx.y);
for (int i = ip; i < N; i += blockDim.x * gridDim.x * gridDim.y) {
B[i] = (int)... | 4ba6471d4ea8dc3186f4fe2d9a765162889e91c6.cu | #include "includes.h"
__global__ void __floatToInt(float *A, int *B, int N) {
int ip = threadIdx.x + blockDim.x * (blockIdx.x + gridDim.x * blockIdx.y);
for (int i = ip; i < N; i += blockDim.x * gridDim.x * gridDim.y) {
B[i] = (int)(A[i]);
}
} |
76acff2ce9bfdcb5c59660d559bea09bbb748961.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License,... | 76acff2ce9bfdcb5c59660d559bea09bbb748961.cu | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* 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.
*
*... |
737292eab9613e9d6d076883314f6fa24712787b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All... | 737292eab9613e9d6d076883314f6fa24712787b.cu | /******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*****************************************************************... |
56561fef939094802d54182450ce6fa2d4cf39f4.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 "kShuffleColumns.cu"
#include<chrono>
#include<iostream>
using na... | 56561fef939094802d54182450ce6fa2d4cf39f4.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 "kShuffleColumns.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{... |
a1c0122fabef28c2d2e81ab3740cc41d44bc48aa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// #include <stdio.h>
// #include <hiprand/hiprand.h>
// #include <hiprand/hiprand_kernel.h>
// #include <hipfft.h>
// #include <iostream>
// using namespace std;
//
// #define ELECTRON_MASS 9.10938356e-31
// #define PROTON_MASS 1.6... | a1c0122fabef28c2d2e81ab3740cc41d44bc48aa.cu | // #include <stdio.h>
// #include <curand.h>
// #include <curand_kernel.h>
// #include <cufft.h>
// #include <iostream>
// using namespace std;
//
// #define ELECTRON_MASS 9.10938356e-31
// #define PROTON_MASS 1.6726219e-27
// #define ELECTRON_CHARGE 1
// // NOTE: setting electron charge to the default SI 1.6e-19 value... |
290b39355a4f1580d173b6db9b3d01559434dae4.hip | // !!! This is a file automatically generated by hipify!!!
#include "memBenchmark.h"
#include "termcolor.hpp"
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
// NVTX Dir: C:\Program Files\NVIDIA GPU Computing Toolkit\nvToolsExt
#include <roctracer/roctx.h>
#include <cmath>
#include <cstdio>
#inclu... | 290b39355a4f1580d173b6db9b3d01559434dae4.cu | #include "memBenchmark.h"
#include "termcolor.hpp"
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
// NVTX Dir: C:\Program Files\NVIDIA GPU Computing Toolkit\nvToolsExt
#include <nvToolsExt.h>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <rando... |
3c517226af1a84a9bacd37e50be16d3af369d70a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* 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 ... | 3c517226af1a84a9bacd37e50be16d3af369d70a.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... |
2a6a99a5b8e10b8582bba4c683e4af922a115f7b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMath.cu"
#else
void THCTensor_(fill)(THCState* state, THCTensor *self_, scalar_t value)
{
THCAssertSameGPU(THCTensor_(checkGPU)(state, 1, self_));
if (!THC_po... | 2a6a99a5b8e10b8582bba4c683e4af922a115f7b.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMath.cu"
#else
void THCTensor_(fill)(THCState* state, THCTensor *self_, scalar_t value)
{
THCAssertSameGPU(THCTensor_(checkGPU)(state, 1, self_));
if (!THC_pointwiseApply1<scalar_t>(
state, self_, TensorFillOp<scalar_t>(value))) {
THA... |
3fcd5f9aa31da0042edfc1e4d67adcb8289f03bc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <petsc/private/cudavecimpl.h>
#include <../src/vec/is/sf/impls/basic/sfpack.h>
#include <mpi.h>
#include <nvshmem.h>
#include <nvshmemx.h>
PetscErrorCode PetscNvshmemInitializeCheck(void)
{
PetscErrorCode ierr;
Pets... | 3fcd5f9aa31da0042edfc1e4d67adcb8289f03bc.cu | #include <petsc/private/cudavecimpl.h>
#include <../src/vec/is/sf/impls/basic/sfpack.h>
#include <mpi.h>
#include <nvshmem.h>
#include <nvshmemx.h>
PetscErrorCode PetscNvshmemInitializeCheck(void)
{
PetscErrorCode ierr;
PetscFunctionBegin;
if (!PetscNvshmemInitialized) { /* Note NVSHMEM does not provide a rou... |
86a97e91f0716711439a0720c664b8c77254b1ea.hip | // !!! This is a file automatically generated by hipify!!!
#include "..\common\book.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#define N 1024*1024
#define FULL_SIZE (N*20)
__global__ void kernel(int *a,int *b,int *c)
{
int i=threadIdx.x+blockIdx.x*blockDim.x;
if (i<N)
{
int id1=(... | 86a97e91f0716711439a0720c664b8c77254b1ea.cu | #include "..\common\book.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#define N 1024*1024
#define FULL_SIZE (N*20)
__global__ void kernel(int *a,int *b,int *c)
{
int i=threadIdx.x+blockIdx.x*blockDim.x;
if (i<N)
{
int id1=(i+1)%256;
int id2=(i-1)%256;
a[i]=(a[id1]+a[id2]+a[i])... |
963731bab370ab87eda13dddc633e5bfc670ea6b.hip | // !!! This is a file automatically generated by hipify!!!
#include "edge_overlay.h"
#include <hip/hip_runtime.h>
#define BPP 4
texture<unsigned char, 2> tex;
static __device__ float getXY(int x, int y){
//return (float)input[y*1920+x];
return (float)tex2D(tex,x,y);
}
__global__ void _edge_overlay(Pixel *outpu... | 963731bab370ab87eda13dddc633e5bfc670ea6b.cu | #include "edge_overlay.h"
#include <cuda_runtime.h>
#define BPP 4
texture<unsigned char, 2> tex;
static __device__ float getXY(int x, int y){
//return (float)input[y*1920+x];
return (float)tex2D(tex,x,y);
}
__global__ void _edge_overlay(Pixel *output, Pixel threshold){
int x = blockIdx.x*blockDim.x+threadIdx... |
d6120dfdd0cbaaec7576c7efc75f2423925f1078.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* *
* Copyright 1993-2012 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 so... | d6120dfdd0cbaaec7576c7efc75f2423925f1078.cu | /* *
* Copyright 1993-2012 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 relat... |
3c096bb8913b67a3163983b2fd67e7b1fe031c69.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weigh... | 3c096bb8913b67a3163983b2fd67e7b1fe031c69.cu | // Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the image such that the center
// of the weight array is aligned with the c... |
1ade806f8f7de24764c10b5a2e3614d103fb4e04.hip | // !!! This is a file automatically generated by hipify!!!
#include "GPUExpEvaluator.h"
/** A boolean whether to use linear interpolation to compute exponentials */
__constant__ bool interpolate[1];
/** The maximum allowable optical length represented in the table */
__constant__ FP_PRECISION max_optical_length[1];
... | 1ade806f8f7de24764c10b5a2e3614d103fb4e04.cu | #include "GPUExpEvaluator.h"
/** A boolean whether to use linear interpolation to compute exponentials */
__constant__ bool interpolate[1];
/** The maximum allowable optical length represented in the table */
__constant__ FP_PRECISION max_optical_length[1];
/** The inverse spacing for the exponential linear interpo... |
d5d74f443bcba7297adcc85335fa97918aafd769.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Sample Program for CUDA 2.3
* written by M.Saito (saito@math.sci.hiroshima-u.ac.jp)
*
* This sample uses texture reference.
* The generation speed of PRNG using texture is faster than using
* constant table on Geforce GTX 260.
*
* MTGP32-11213
* ... | d5d74f443bcba7297adcc85335fa97918aafd769.cu | /**
* Sample Program for CUDA 2.3
* written by M.Saito (saito@math.sci.hiroshima-u.ac.jp)
*
* This sample uses texture reference.
* The generation speed of PRNG using texture is faster than using
* constant table on Geforce GTX 260.
*
* MTGP32-11213
* This program generates 32-bit unsigned integers.
* The per... |
1534ec03c538d3181c439cfec049aad85db2a890.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "utils.h"
#include "common.h"
#include "THHDeviceTensor.cuh"
#include "THHDeviceTensorUtils.cuh"
#include "THHDeviceUtils.cuh"
template <typename Dtype>
__global__ void ReArrangeBackForward(int threads, const Dtype* inpu... | 1534ec03c538d3181c439cfec049aad85db2a890.cu | #include "utils.h"
#include "common.h"
#include "THCDeviceTensor.cuh"
#include "THCDeviceTensorUtils.cuh"
#include "THCDeviceUtils.cuh"
template <typename Dtype>
__global__ void ReArrangeBackForward(int threads, const Dtype* input_data, Dtype* output_data, int samplenum, int channels, int height, int width ) {
//... |
47ff83fa009cd661e80b6d5cbbf183b0fe021979.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <chrono>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <stdexcept>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string>
do... | 47ff83fa009cd661e80b6d5cbbf183b0fe021979.cu | #include <algorithm>
#include <cfloat>
#include <chrono>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <stdexcept>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string>
double std_time_used;
struct Data {
Data(int size) : size(size), bytes(size * sizeof(flo... |
a50b8ec94c2226994c12bd94288711e4dc1b1d8e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
GPU Kernels for the mesh to particles functions
@author: Stefan Hegglin, Adrian Oeftiger
*/
extern "C" {
__global__ void mesh_to_particles_2d(
int nparticles,
double* particles_quantity, double *mesh_quantity,
... | a50b8ec94c2226994c12bd94288711e4dc1b1d8e.cu | /*
GPU Kernels for the mesh to particles functions
@author: Stefan Hegglin, Adrian Oeftiger
*/
extern "C" {
__global__ void mesh_to_particles_2d(
int nparticles,
double* particles_quantity, double *mesh_quantity,
const int nx, const int ny,
double *wij, double *wi1j, double *wij1, double *wi1j1,... |
ff85812893d64722d4336d92ac85c3d11f0e9c8f.hip | // !!! This is a file automatically generated by hipify!!!
/*!
\file Preconditioner.cu
\brief Implementation of member functions of classes JacobiPreconditioner, RichardsonPreconditioner and other functions and kernels related to preconditioners
*/
#include <stdio.h>
#include <iostream>
#include <cassert>
#include ... | ff85812893d64722d4336d92ac85c3d11f0e9c8f.cu | /*!
\file Preconditioner.cu
\brief Implementation of member functions of classes JacobiPreconditioner, RichardsonPreconditioner and other functions and kernels related to preconditioners
*/
#include <stdio.h>
#include <iostream>
#include <cassert>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#in... |
50a39972f6d2a0425580e0c598b9ef145d828404.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "cudakernel.h"
#include "triangle.cpp"
#include "tetrahedron.cpp"
//__device__ static const float divider[] = {1.0, 0.5, 0.25};
__host... | 50a39972f6d2a0425580e0c598b9ef145d828404.cu | #include <stdio.h>
#include <cuda.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "cudakernel.h"
#include "triangle.cpp"
#include "tetrahedron.cpp"
//__device__ static const float divider[] = {1.0, 0.5, 0.25};
__host__ cudaError_t drawTriangleOnGPU(Triangle triangle, float invVolum, Canva... |
d52ece9fbc0bbd71c4b9b90ee283f359f01e9fb7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <cmath>
#include "sortcu.h"
using namespace std;
#define THREADS_PER_BLOCK 8
#include <stdlib.h>
#include <math.h>
#include "sortcu.h"
#include <stdio.h>
__global__ void Egpu_merge(int *ndata)
{
//inver... | d52ece9fbc0bbd71c4b9b90ee283f359f01e9fb7.cu | #include <iostream>
#include <cmath>
#include "sortcu.h"
using namespace std;
#define THREADS_PER_BLOCK 8
#include <stdlib.h>
#include <math.h>
#include "sortcu.h"
#include <stdio.h>
__global__ void Egpu_merge(int *ndata)
{
//invert elements of second sublist
//printf("%d\n", blockDim.x);
int swap_pos;
//int temp;
//i... |
0164cb3cd56f855a3474674a4df19c0f43af0cf8.hip | // !!! This is a file automatically generated by hipify!!!
// includes, cuda
#include <cstdint>
#include <climits>
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <cudaDefs.h>
#include <imageManager.h>
#include "arrayUtils.cuh"
#define BENCHMARK_NUM_REPS 100 // number of repetitions for benchmarking... | 0164cb3cd56f855a3474674a4df19c0f43af0cf8.cu | // includes, cuda
#include <cstdint>
#include <climits>
#include <cuda_runtime.h>
#include <helper_cuda.h>
#include <cudaDefs.h>
#include <imageManager.h>
#include "arrayUtils.cuh"
#define BENCHMARK_NUM_REPS 100 // number of repetitions for benchmarking
#define TPB_1D 32 // ThreadsPerBlock in one dimension
#d... |
b2916dda1ff63b2346af0dff90f2c090e3c271fb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Version 20180514-01: Fixed bug in flaton initial conditions.
#include <fstream>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include <hipfft.h>
#include <hipfftXt.h>
#include <common/select_GPU.cu>
#includ... | b2916dda1ff63b2346af0dff90f2c090e3c271fb.cu | // Version 20180514-01: Fixed bug in flaton initial conditions.
#include <fstream>
#include <curand.h>
#include <curand_kernel.h>
#include <cufft.h>
#include <cufftXt.h>
#include <common/select_GPU.cu>
#include <common/complex.cu>
#include <1D/parameters.hpp>
using namespace std;
////////////////////////////
//Ini... |
a314bedbe5305a00853bd0abb77d3c9834f97517.hip | // !!! This is a file automatically generated by hipify!!!
#include "match.h"
#include "nan.h"
#include <algorithm>
#include <limits>
#include <iostream>
const int Match::OCCLUDED = std::numeric_limits<int>::max();
Match::Match(cv::Mat left, cv::Mat right, bool color)
{
originalHeightL = imGetYSize(left);
int heigh... | a314bedbe5305a00853bd0abb77d3c9834f97517.cu | #include "match.h"
#include "nan.h"
#include <algorithm>
#include <limits>
#include <iostream>
const int Match::OCCLUDED = std::numeric_limits<int>::max();
Match::Match(cv::Mat left, cv::Mat right, bool color)
{
originalHeightL = imGetYSize(left);
int height = std::min(imGetYSize(left), imGetYSize(right));
imSizeL... |
b8f65c50cf03dd33288da6992c7ef3fc555d16b6.hip | // !!! This is a file automatically generated by hipify!!!
#include <torch/types.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <vector>
#include <stdint-gcc.h>
#include "stdio.h"
#define SIGN(val) ((0 < val) - (val < 0))
__global__ void __varfloat_cuda__(const float* in, const int N, float* ... | b8f65c50cf03dd33288da6992c7ef3fc555d16b6.cu | #include <torch/types.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>
#include <stdint-gcc.h>
#include "stdio.h"
#define SIGN(val) ((0 < val) - (val < 0))
__global__ void __varfloat_cuda__(const float* in, const int N, float* out, int fraction_bits,
float max_sat, ... |
5c90b92337740e4630d6138542595aa77e595bfb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ---------------------------------------------------------------------... | 5c90b92337740e4630d6138542595aa77e595bfb.cu | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// Copyright (c) 2018-2023 www.open3d.org
// SPDX-License-Identifier: MIT
// ---... |
50b82815c6439357d1c62703ec20b4004736e604.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#define SIZE 1024
/* must use .cu otherwise .c and .cpp will send to host compiler and global would have issues */
__global__ void VectorAdd(int *a, int *b, int *c, int n) {
int i = threadIdx.x;
// no loop for (i = 0;... | 50b82815c6439357d1c62703ec20b4004736e604.cu | #include <stdio.h>
#include <stdlib.h>
#define SIZE 1024
/* must use .cu otherwise .c and .cpp will send to host compiler and global would have issues */
__global__ void VectorAdd(int *a, int *b, int *c, int n) {
int i = threadIdx.x;
// no loop for (i = 0; i < n; ++i)
if (i < n)
c[i] = a[i] + b[i];
}
int main... |
37ea565d6e5f6a4cad19a8ccd875ea84bedc20ef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
__global__ void square(float* d_out, float* d_in){
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f*f;
}
int main(int argc, char** argv){
const int ARRAY_SIZE = 64;
const int ARRAY_BYTES = ARRAY_SI... | 37ea565d6e5f6a4cad19a8ccd875ea84bedc20ef.cu | #include<stdio.h>
__global__ void square(float* d_out, float* d_in){
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f*f;
}
int main(int argc, char** argv){
const int ARRAY_SIZE = 64;
const int ARRAY_BYTES = ARRAY_SIZE * sizeof(float);
float h_in[ARRAY_SIZE];
for(int i=0;i<ARRAY_SIZE;i++){
h_in[i] ... |
a27c8a5146716694cfcfb9f5c1085a2d9eb61a0a.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THH/generic/THHTensorMathPointwise.hip"
#else
#include <ATen/MemoryOverlap.h>
#include <ATen/NamedTensorUtils.h>
#if !defined(THC_REAL_IS_BOOL)
static void propagate_names_if_named_tensor_enabled(THCTensor* ... | a27c8a5146716694cfcfb9f5c1085a2d9eb61a0a.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THC/generic/THCTensorMathPointwise.cu"
#else
#include <ATen/MemoryOverlap.h>
#include <ATen/NamedTensorUtils.h>
#if !defined(THC_REAL_IS_BOOL)
static void propagate_names_if_named_tensor_enabled(THCTensor* result, THCTensor* src) {
at::namedinference::propagate_na... |
29e77f19d37b1676832ca59e3182fb762c7c5642.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/B... | 29e77f19d37b1676832ca59e3182fb762c7c5642.cu | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
72d4ba877a940afad8142db25e462e198c223280.hip | // !!! This is a file automatically generated by hipify!!!
/*
Inverse PFB following Richard Shaw's original python/LAPACK routine: https://github.com/jrs65/pfb-inverse
Beware: This implementation runs ~4x slower than the python version on hamster!
@author Katherine Rosenfeld
@date 8/2015
To compile:
nvcc pfb_inverse... | 72d4ba877a940afad8142db25e462e198c223280.cu | /*
Inverse PFB following Richard Shaw's original python/LAPACK routine: https://github.com/jrs65/pfb-inverse
Beware: This implementation runs ~4x slower than the python version on hamster!
@author Katherine Rosenfeld
@date 8/2015
To compile:
nvcc pfb_inverse.cu -o pfb_inverse.out -lcublas -lcurand -lcufft -llapack
*... |
ac24816bcf28b61a8f014e7d4798e35489b86bba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void one_vector_int(int *vec, const int n)
{
unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x;
if ( xIndex < n )
vec[xIndex]=1;
} | ac24816bcf28b61a8f014e7d4798e35489b86bba.cu | #include "includes.h"
__global__ void one_vector_int(int *vec, const int n)
{
unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x;
if ( xIndex < n )
vec[xIndex]=1;
} |
d780d2660d95ebc872c04963c87464b1c9605f11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void _bcnn_forward_softmax_layer_kernel(int n, int batch, float *input, float *output)
{
int i;
float sum = 0;
float largest = -INFINITY;
int b = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + th... | d780d2660d95ebc872c04963c87464b1c9605f11.cu | #include "includes.h"
__global__ void _bcnn_forward_softmax_layer_kernel(int n, int batch, float *input, float *output)
{
int i;
float sum = 0;
float largest = -INFINITY;
int b = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + threadIdx.x;
if (b >= batch) {
return;
}
for (i = 0; i < n; ++i) {
int val = input[i+b*n... |
edc64d3d5c71dd5dc1deb38b83e4b5f643700a54.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
/... | edc64d3d5c71dd5dc1deb38b83e4b5f643700a54.cu | /***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
////////////////////////////////////////////////////////////... |
6c0567def82f877c3127bb151971797de60abc0e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <Eigen/Dense>
#include "DataFormats/CaloRecHit/interface/MultifitComputations.h"
// needed to compile with USER_CXXFLAGS="-DCOMPUTE_TDC_TIME"
#include "DataFormats/HcalRecHit/interface/HcalSpecialTimes.h"
#include "FWCore/... | 6c0567def82f877c3127bb151971797de60abc0e.cu | #include <Eigen/Dense>
#include "DataFormats/CaloRecHit/interface/MultifitComputations.h"
// needed to compile with USER_CXXFLAGS="-DCOMPUTE_TDC_TIME"
#include "DataFormats/HcalRecHit/interface/HcalSpecialTimes.h"
#include "FWCore/Utilities/interface/CMSUnrollLoop.h"
// TODO reuse some of the HCAL constats from
//#in... |
1c2f7d48a2f83b2a942589c092be168b8a88af6c.hip | // !!! This is a file automatically generated by hipify!!!
#include "JitteredSampler.h"
#include "hiprand/hiprand.h"
#include "hiprand/hiprand_kernel.h"
/* JitteredSampler */
__device__
void JitteredSampler::GenerateSamples(int l_num_of_samples, int l_num_of_sets) {
hiprandState_t curand_state;
hiprand_init(23041996... | 1c2f7d48a2f83b2a942589c092be168b8a88af6c.cu | #include "JitteredSampler.h"
#include "curand.h"
#include "curand_kernel.h"
/* JitteredSampler */
__device__
void JitteredSampler::GenerateSamples(int l_num_of_samples, int l_num_of_sets) {
curandState_t curand_state;
curand_init(23041996,0,0,&curand_state);
square_samples = (float2*)malloc(sizeof(float2) * l_num_... |
9b571089e94b85b49fdd3d0addf7a69b8f11c27d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
... | 9b571089e94b85b49fdd3d0addf7a69b8f11c27d.cu | /*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
98581f25b1ee0a54e79a76726321b1e872e33c0c.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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.o... | 98581f25b1ee0a54e79a76726321b1e872e33c0c.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... |
dc3380789ed9a8b8558592e37bb5d7f964d85540.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----------------------------------------------------------------------------------------------------
// Copyrighted by Marko Rakita.
// Author: Marko Rakita
// File contains: Neural network softmax layer.
// Created: 02/20/2016.
... | dc3380789ed9a8b8558592e37bb5d7f964d85540.cu | // ----------------------------------------------------------------------------------------------------
// Copyrighted by Marko Rakita.
// Author: Marko Rakita
// File contains: Neural network softmax layer.
// Created: 02/20/2016.
// -------------------------------------------------------------------------------------... |
9368061449bbc3a4ed1018d25c34d127f7bc141a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-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... | 9368061449bbc3a4ed1018d25c34d127f7bc141a.cu | /*
* Copyright (c) 2018-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... |
b940e34b57c7ac7f11f3d114afd5714563f85b82.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 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/li... | b940e34b57c7ac7f11f3d114afd5714563f85b82.cu | /*
* Copyright (c) 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 law ... |
584be07df2c00aa9bc456c47dbe1b232c9480f97.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Cuda accelerated motion estimation for VP8 libvpx encoder
by Pietro Paglierani, Giuliano Grossi, Federico Pedersini and Alessandro Petrini
for Italtel and Universita' degli Studi di Milano
2015-2016, Milano
*/
#... | 584be07df2c00aa9bc456c47dbe1b232c9480f97.cu | /*
Cuda accelerated motion estimation for VP8 libvpx encoder
by Pietro Paglierani, Giuliano Grossi, Federico Pedersini and Alessandro Petrini
for Italtel and Universita' degli Studi di Milano
2015-2016, Milano
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <l... |
1997a49b5ffc8477f241875ab6f443cb7b17440b.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 <hip/hip_fp16.h>
#include "core/providers/cuda/cu_inc/common.cuh"
#include "contrib_ops/cuda/math/isfinite.cuh"
namespace onn... | 1997a49b5ffc8477f241875ab6f443cb7b17440b.cu | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <cuda_fp16.h>
#include "core/providers/cuda/cu_inc/common.cuh"
#include "contrib_ops/cuda/math/isfinite.cuh"
namespace onnxruntime {
namespace cuda {
template <typename TSrc>
__global__ void _IsFinite(const TSrc*... |
b8387fca2ecb44b237c1031ca23732132828ac64.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <string.h>
#include "devicedefine.h"
#define Rol(word,bits) (((word) << (bits)) | ((word) >> (32-(bits))))
#define Ror(word,bits) (((word) >> (bits)) | ((word) << (32-(bits))))
__device__ inline
unsigned long f(unsign... | b8387fca2ecb44b237c1031ca23732132828ac64.cu | #include <string.h>
#include "devicedefine.h"
#define Rol(word,bits) (((word) << (bits)) | ((word) >> (32-(bits))))
#define Ror(word,bits) (((word) >> (bits)) | ((word) << (32-(bits))))
__device__ inline
unsigned long f(unsigned long B,unsigned long C,unsigned long D, int t)
{
if (t < 20)
{
return... |
0efb26a552df65731e0900c5a05ea26e6c10b964.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// You need to write a simple program to perform computation with 1D array in CPU and GPU, then compare the result.
// includes, system
#include <stdio.h>
#include <assert.h>
// Simple utility function to check for CUDA runtime er... | 0efb26a552df65731e0900c5a05ea26e6c10b964.cu | // You need to write a simple program to perform computation with 1D array in CPU and GPU, then compare the result.
// includes, system
#include <stdio.h>
#include <assert.h>
// Simple utility function to check for CUDA runtime errors
void checkCUDAError(const char *msg);
// Part 3 of 5: implement the kernel
__globa... |
42fc4026004dbc53fe6dbc79e6b3e6c0de66aa20.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "saber/funcs/impl/cuda/saber_argmax.h"
#include "hip/hip_fp16.h"
#include <cfloat>
namespace anakin {
namespace saber {
template <typename Dtype, unsigned int blockSize>
__global__ void top1(const Dtype* in_data,
... | 42fc4026004dbc53fe6dbc79e6b3e6c0de66aa20.cu | #include "saber/funcs/impl/cuda/saber_argmax.h"
#include "cuda_fp16.h"
#include <cfloat>
namespace anakin {
namespace saber {
template <typename Dtype, unsigned int blockSize>
__global__ void top1(const Dtype* in_data,
const int height,
const int width,
bo... |
9a6c266641e16c0dee76e9625e7cba378505a9db.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 9a6c266641e16c0dee76e9625e7cba378505a9db.cu | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
c64f03025b1ce1a74168e7fb591cb4999cbfea3e.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code ... | c64f03025b1ce1a74168e7fb591cb4999cbfea3e.cu | /* Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
c277895f63570761823c0057ea02d87ebf4b321d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void vector_add(int *a, int *b, int *c)
{
/* insert code to calculate the index properly using blockIdx.x, blockDim.x, threadIdx.x */
int index = blockIdx.x * blockDim.x + threadIdx.x;
c[index] =... | c277895f63570761823c0057ea02d87ebf4b321d.cu | #include <stdio.h>
__global__ void vector_add(int *a, int *b, int *c)
{
/* insert code to calculate the index properly using blockIdx.x, blockDim.x, threadIdx.x */
int index = blockIdx.x * blockDim.x + threadIdx.x;
c[index] = a[index] + b[index];
}
/* experiment with N */
/* how large can it be? */
#define N (2... |
9845da13a474e9c7400e420d939a651fa5f48728.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2021 by Contributors
* @file array/cuda/rowwise_sampling.cu
* @brief uniform rowwise sampling
*/
#include <hiprand/hiprand_kernel.h>
#include <dgl/random.h>
#include <dgl/runtime/device_api.h>
#include <nu... | 9845da13a474e9c7400e420d939a651fa5f48728.cu | /**
* Copyright (c) 2021 by Contributors
* @file array/cuda/rowwise_sampling.cu
* @brief uniform rowwise sampling
*/
#include <curand_kernel.h>
#include <dgl/random.h>
#include <dgl/runtime/device_api.h>
#include <numeric>
#include "../../array/cuda/atomic.cuh"
#include "../../runtime/cuda/cuda_common.h"
#inclu... |
58b1263cde63a533b64072c3a0197f0ebaefdf7f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "lodepng.h"
#include "gputimer.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define POOL_BLOCK_SIZE 2
#define BYTES_PER_PIXEL 4
#define MAX_THREADS_PER_BLOCK 1024
__device__ unsigned get_block_offset(unsign... | 58b1263cde63a533b64072c3a0197f0ebaefdf7f.cu | #include "lodepng.h"
#include "gputimer.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define POOL_BLOCK_SIZE 2
#define BYTES_PER_PIXEL 4
#define MAX_THREADS_PER_BLOCK 1024
__device__ unsigned get_block_offset(unsigned k, unsigned image_width){
return BYTES_PER_PIXEL * POOL_BLOCK_SIZE * ( image_width *... |
aee2a8967580be4e2ed6ea687686a870786ffe08.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "common.h"
#include "common_cuda.h"
#include "chemistry.h"
#include "equilibrium_solver/minimizer_options.h"
#include "equilibrium_solver/equilibrium_state.h"
#include "equilibrium_solver/equilibrium_solver.h"
namespace eq... | aee2a8967580be4e2ed6ea687686a870786ffe08.cu | #include "common.h"
#include "common_cuda.h"
#include "chemistry.h"
#include "equilibrium_solver/minimizer_options.h"
#include "equilibrium_solver/equilibrium_state.h"
#include "equilibrium_solver/equilibrium_solver.h"
namespace equilibrium_solver {
// make variables on the device visible
#ifdef __CUDA_ARCH__
usi... |
4d67c2529bb384219e00ce82ef39de568065428a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Module : Twine
* Copyright : [2016] Trevor L. McDonell
* License : BSD3
*
* Maintainer : Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
* Stability : experimental
* Portability : non-portable (GHC extensions)
*
* Convert between Acce... | 4d67c2529bb384219e00ce82ef39de568065428a.cu | /*
* Module : Twine
* Copyright : [2016] Trevor L. McDonell
* License : BSD3
*
* Maintainer : Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
* Stability : experimental
* Portability : non-portable (GHC extensions)
*
* Convert between Accelerate's Struct-of-Array representation of complex
* numbe... |
4f05e08bc98de082d50881dd8b95f01d339a3593.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda.h>
#include<nvvm.h>
#include<unistd.h>
#include<malloc.h>
#include<iostream>
#include<iomanip>
#include"PreprocessSW.h"
#include"Data.h"
#include"Preprocess.h"
#include"Gain.h"
// Lenght of each data
__constant__ in... | 4f05e08bc98de082d50881dd8b95f01d339a3593.cu | #include<cuda.h>
#include<nvvm.h>
#include<unistd.h>
#include<malloc.h>
#include<iostream>
#include<iomanip>
#include"PreprocessSW.h"
#include"Data.h"
#include"Preprocess.h"
#include"Gain.h"
// Lenght of each data
__constant__ int gcT_size;
__constant__ int gcP_size;
// Threshold of the SW algorithm
__constant__ in... |
40955f3d6c593e067ea59519ceff0fe9a2c8a88f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2015, Andrew Delong and Babak Alipanahi All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
/... | 40955f3d6c593e067ea59519ceff0fe9a2c8a88f.cu | // Copyright (c) 2015, Andrew Delong and Babak Alipanahi 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 copyright notice, this
// ... |
e54bf9885f6201f4c08deb6fa24851cb402859d7.hip | // !!! This is a file automatically generated by hipify!!!
/*!/------------------------------------------------------------------------------
* cuSparseMultiply.cu
*
* ac-SpGEMM
*
* Authors: Daniel Mlakar, Markus Steinberger, Martin Winter
*------------------------------------------------------------------------------
... | e54bf9885f6201f4c08deb6fa24851cb402859d7.cu | /*!/------------------------------------------------------------------------------
* cuSparseMultiply.cu
*
* ac-SpGEMM
*
* Authors: Daniel Mlakar, Markus Steinberger, Martin Winter
*------------------------------------------------------------------------------
*/
#include "cusparse/include/cuSparseMultiply.h"
#include... |
9194085517a62f148f006b81ca8f00220cfa15c7.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(... | 9194085517a62f148f006b81ca8f00220cfa15c7.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)) ... |
079c5b18383ee063b0b6fea02c08718644f6f264.hip | // !!! This is a file automatically generated by hipify!!!
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// I... | 079c5b18383ee063b0b6fea02c08718644f6f264.cu | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
d7469950e1ebed38b628cff28712bded06718bdc.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#include "SyncedMemory.h"
#include "lab2.h"
using namespace std;
#define CHECK {\
auto e = hipDeviceSynchronize();\
if (e != hipSuccess) {\
printf("At " __FILE__ ":%d, %s\n", __LINE__, hipGetErrorStri... | d7469950e1ebed38b628cff28712bded06718bdc.cu | #include <cstdio>
#include <cstdint>
#include <cstdlib>
#include "SyncedMemory.h"
#include "lab2.h"
using namespace std;
#define CHECK {\
auto e = cudaDeviceSynchronize();\
if (e != cudaSuccess) {\
printf("At " __FILE__ ":%d, %s\n", __LINE__, cudaGetErrorString(e));\
abort();\
}\
}
int main(int argc, char **ar... |
c7ba98f33fa2e98d10b773243771fc8b7bb2cea5.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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.o... | c7ba98f33fa2e98d10b773243771fc8b7bb2cea5.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... |
0a68bd483beab107a06d328e5084de5061246e42.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Re... | 0a68bd483beab107a06d328e5084de5061246e42.cu | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
63282317eada3600e846074a02a5df9440a4de5b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Fermat
*
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... | 63282317eada3600e846074a02a5df9440a4de5b.cu | /*
* Fermat
*
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* not... |
4e9a996cb521ec113b2fcd1bdff868faa558171d.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 SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 5660800
// #define GLOBAL_MEM_ELEMENTS 566080
// #define GL... | 4e9a996cb521ec113b2fcd1bdff868faa558171d.cu | #include <stdio.h>
#include <iostream>
#include <cuda_profiler_api.h>
//#include <cutil.h>
#include <cuda_runtime.h>
#include <string>
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 5660800
// #define GLOBAL_MEM_ELEMENTS 566080
// #define GLOBAL_MEM_ELEMENTS 19660800
int num_blocks;
int num_threads_per_... |
3d2649f79009eb6682b484b5221dd3fe24e32ad3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* \file main.cu
* \brief Kernels to study the effects of coalescing on misaligned and strided
* memory operations.
*
* Invocation:
* ./coalescing <operation> <size>
*
* Parameters:
* - operation: 'offset' ... | 3d2649f79009eb6682b484b5221dd3fe24e32ad3.cu | /**
* \file main.cu
* \brief Kernels to study the effects of coalescing on misaligned and strided
* memory operations.
*
* Invocation:
* ./coalescing <operation> <size>
*
* Parameters:
* - operation: 'offset' or 'strided'.
* - size: size of the vector in megabytes
*/
#include <iostream>
#i... |
04b23965299c273cf69fec3327c77fbf84e252ef.hip | // !!! This is a file automatically generated by hipify!!!
#if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/in... | 04b23965299c273cf69fec3327c77fbf84e252ef.cu | #if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl"
usi... |
375fac79a672849991ffb75424db16058a23e6e0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include "cuda_utils.h"
#include "timer.c"
#define TILE_SIZE (32 * 32)
typedef float dtype;
__global__
void matTrans(dtype* AT, dtype* A, int N)
{
/* Fill your code here */
int tile_di... | 375fac79a672849991ffb75424db16058a23e6e0.cu | #include <stdlib.h>
#include <stdio.h>
#include "cuda_utils.h"
#include "timer.c"
#define TILE_SIZE (32 * 32)
typedef float dtype;
__global__
void matTrans(dtype* AT, dtype* A, int N)
{
/* Fill your code here */
int tile_dim = 32;
int block_row = 8;
int x = blockIdx.x * tile_dim + threadIdx.x;
int y = blo... |
5a3d5d35cad8f030029615ec79abbfb3b0b24578.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 "sub0.cu"
#include<chrono>
#include<iostream>
using namespace std... | 5a3d5d35cad8f030029615ec79abbfb3b0b24578.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 "sub0.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,... |
09b04dcb458aa9f78b5e73f7d071fd4ac87f3199.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "HSwish.hpp"
#include <cuda_fp16.hpp>
static __global__ void hswish_kernel_fp32(float* input, float* output, int edge) {
KernelPositionBlock;
float x = input[position];
float a = x + 3;
a = a < 0 ? 0 : (... | 09b04dcb458aa9f78b5e73f7d071fd4ac87f3199.cu |
#include "HSwish.hpp"
#include <cuda_fp16.hpp>
static __global__ void hswish_kernel_fp32(float* input, float* output, int edge) {
KernelPositionBlock;
float x = input[position];
float a = x + 3;
a = a < 0 ? 0 : (a >= 6 ? 6 : a);
output[position] = x * a / 6;
}
static __global__ void hswish_kernel_... |
7863b872d81801568d0cedc1b8bb459dfa0e3861.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <errno.h>
#include <omp.h>
#include <semaphore.h>
#ifdef MPI_ON
#include <mpi.h>
#endif
#include "chooseV.h"
#include "signal.h"
#ifdef MPI_ON
MPI_Datatype MPI_DMDRAGTYPE;
MPI_Datatype MPI_RAGPMLTYPE;
MPI... | 7863b872d81801568d0cedc1b8bb459dfa0e3861.cu | #include <stdio.h>
#include <errno.h>
#include <omp.h>
#include <semaphore.h>
#ifdef MPI_ON
#include <mpi.h>
#endif
#include "chooseV.h"
#include "signal.h"
#ifdef MPI_ON
MPI_Datatype MPI_DMDRAGTYPE;
MPI_Datatype MPI_RAGPMLTYPE;
MPI_Datatype MPI_HLFRAGTYPE;
#endif
int* mapNodeSize;
//==================================... |
aa0b327ca55bb2d816dd2f6d58e04390b0beb64e.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <thrust/complex.h>
#include <algorithm>
//#include <thrust>
using namespace thrust;
#include "ragridder_plan.h"
#include "conv_interp_invoker.h"
#include "cuft.h"
#inc... | aa0b327ca55bb2d816dd2f6d58e04390b0beb64e.cu | #include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <thrust/complex.h>
#include <algorithm>
//#include <thrust>
using namespace thrust;
#include "ragridder_plan.h"
#include "conv_interp_invoker.h"
#include "cuft.h"
#include "cugridder.h"
#include "precomp.h"
#include "utils.h"
... |
068ca8bd2388eee778e331b2e5a4befd5518c314.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
//device functions
__device__ int getGlobalIdx_1D_1D()
{
return blockIdx.x *blockDim.x + threadIdx.x;
}
__device__ int getGlobalIdx_1D_2D()
{
return blockIdx.x * blockDim.... | 068ca8bd2388eee778e331b2e5a4befd5518c314.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
//device functions
__device__ int getGlobalIdx_1D_1D()
{
return blockIdx.x *blockDim.x + threadIdx.x;
}
__device__ int getGlobalIdx_1D_2D()
{
return blockIdx.x * blockDim.x * blockDim.y + threadIdx.y * blockDim.x + threadIdx.x;
}
__... |
ea59a37ecb6c65153698f71a0c44c8d49fbb51e4.hip | // !!! This is a file automatically generated by hipify!!!
#include "utils.cuh"
__host__
void readMatrixFromFile(char* input_filename,
// First row of file
int* rows, int* columns, int* num_of_non_zero_entries,
// Return variables
... | ea59a37ecb6c65153698f71a0c44c8d49fbb51e4.cu | #include "utils.cuh"
__host__
void readMatrixFromFile(char* input_filename,
// First row of file
int* rows, int* columns, int* num_of_non_zero_entries,
// Return variables
int** row_ptr_array, int** row_ptr_array_init,
... |
0e8d5c8a06d77806e4a21bd816504fa581a6e750.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/hip/HIPContext.h>
#include "open3d/ml/PyTorch/TorchHelper.h"
#include "open3d/ml/impl/misc/ReduceSubarraysSum.cuh"
#include "torch/script.h"
template <class T>
torch::Tensor ReduceSubarraysSumCUDA(torch::Tensor values,
... | 0e8d5c8a06d77806e4a21bd816504fa581a6e750.cu | #include <ATen/cuda/CUDAContext.h>
#include "open3d/ml/PyTorch/TorchHelper.h"
#include "open3d/ml/impl/misc/ReduceSubarraysSum.cuh"
#include "torch/script.h"
template <class T>
torch::Tensor ReduceSubarraysSumCUDA(torch::Tensor values,
torch::Tensor row_splits) {
auto device = ... |
2e8300c9dfcca8302bc74038e4f2685bec66e224.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <sys/time.h>
#define P (1 << 4)
__global__ void addmat_x(int m, int n, int* A, int *B)
{
int idx, ix;
int iy = threadIdx.y + blockIdx.y*blockDim.y;
if (iy < n)
if (threadIdx.y ... | 2e8300c9dfcca8302bc74038e4f2685bec66e224.cu | #include <stdio.h>
#include <sys/time.h>
#define P (1 << 4)
__global__ void addmat_x(int m, int n, int* A, int *B)
{
int idx, ix;
int iy = threadIdx.y + blockIdx.y*blockDim.y;
if (iy < n)
if (threadIdx.y % 2 == 0)
{
for(ix = 0; ix < P; ix++)
{
... |
819ab5d178953dbde06718782991792fcdc4b2fa.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, ... | 819ab5d178953dbde06718782991792fcdc4b2fa.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... |
aba345df4d0f471f7d7ed2e8d07690f2024a8779.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 1.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
August 2013
@precisions normal z -> z
*/
#include "common_magma.h"
#define magmablas_zgemv_tesl... | aba345df4d0f471f7d7ed2e8d07690f2024a8779.cu | /*
-- MAGMA (version 1.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
August 2013
@precisions normal z -> z
*/
#include "common_magma.h"
#define magmablas_zgemv_tesla magmablas_zgemv
extern "C" void
magmablas_zgemv_tesla(ch... |
f28fb6809b4882ea949c28914115a1f6df9796b1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018-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
... | f28fb6809b4882ea949c28914115a1f6df9796b1.cu | /*
* Copyright (c) 2018-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... |
903714c80517c12328c4525f1517f3343b6aad45.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/common.h"
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
/**
* This example illustrates implementation of custom atomic operations using
* CUDA's built-in atomicCAS function to implement atomic signed 32-bit integer
*... | 903714c80517c12328c4525f1517f3343b6aad45.cu | #include "../common/common.h"
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
/**
* This example illustrates implementation of custom atomic operations using
* CUDA's built-in atomicCAS function to implement atomic signed 32-bit integer
* addition.
**/
__device__ int sqrt1(int *address)
{
// Create an... |
0079fd58212bef0430380bd529f34dfc3fc93a69.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cutf/thread.hpp>
#include <iostream>
__global__ void get_lane_id_kernel() {
const unsigned thread_id = threadIdx.x;
const unsigned lane_id = cutf::thread::get_lane_id();
const unsigned warp_id = cutf::thread::get_warp_... | 0079fd58212bef0430380bd529f34dfc3fc93a69.cu | #include <cutf/thread.hpp>
#include <iostream>
__global__ void get_lane_id_kernel() {
const unsigned thread_id = threadIdx.x;
const unsigned lane_id = cutf::thread::get_lane_id();
const unsigned warp_id = cutf::thread::get_warp_id();
std::printf("threadIdx.x = %u, lane_id = %u, warp_id = %u, warp_size_cont = %u\n"... |
99247c28866d81b68c2ed320f1532ec9e5ce8241.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "dofrays.h"
#include <librta/basic_types.h>
#include <librta/cuda-kernels.h>
#include <librta/cuda-vec.h>
namespace rta {
namespace cuda {
namespace k {
__global__ void setup_shirley_lens_rays(float *dirs, float *or... | 99247c28866d81b68c2ed320f1532ec9e5ce8241.cu | #include "dofrays.h"
#include <librta/basic_types.h>
#include <librta/cuda-kernels.h>
#include <librta/cuda-vec.h>
namespace rta {
namespace cuda {
namespace k {
__global__ void setup_shirley_lens_rays(float *dirs, float *orgs, float *maxts,
float fovy, float aspect, int w, int h, float3 view_dir,... |
1c1bf7d55cb3b47e31db704654c8cff512cfaf4b.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <crypt.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
#include <hip/hip_runtime_api.h>
//__global__ --> GPU function which can be launched by many blocks and threads
//__device__... | 1c1bf7d55cb3b47e31db704654c8cff512cfaf4b.cu | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <crypt.h>
#include <math.h>
#include <time.h>
#include <pthread.h>
#include <cuda_runtime_api.h>
//__global__ --> GPU function which can be launched by many blocks and threads
//__device__ --> GPU function or variables
//__host__ --> CPU function or ... |
405f11b2d0a64d26989122e286167e64c1dc3c0f.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2007-2012 Computational Electromagnetic Group (CEM), Dept. ECE, UC San Diego. All rights reserved.
* Author: Shaojing Li, March 2012
*/
/*
* gpu.cu: class definition of Class Gpu
*/
#include "nbodyfast.h"
#include "gpu.h"
#include "memory.h"
... | 405f11b2d0a64d26989122e286167e64c1dc3c0f.cu | /*
* Copyright 2007-2012 Computational Electromagnetic Group (CEM), Dept. ECE, UC San Diego. All rights reserved.
* Author: Shaojing Li, March 2012
*/
/*
* gpu.cu: class definition of Class Gpu
*/
#include "nbodyfast.h"
#include "gpu.h"
#include "memory.h"
#include "memory_gpu.h"
namespace NBODYFAST_NS{
Gpu :: Gpu(... |
77c03c43364533b28a72cad1315dfe2879b9cfbf.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <hip/hip_runtime.h>
//CUDA RunTime API
#include <hip/hip_runtime.h>
#define DATA_SIZE 1048576
int data[DATA_SIZE];
//0-9
void GenerateNumbers(int *number, int size)
{
... | 77c03c43364533b28a72cad1315dfe2879b9cfbf.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <cuda_runtime.h>
//CUDA RunTime API
#include <cuda_runtime.h>
#define DATA_SIZE 1048576
int data[DATA_SIZE];
//产生大量0-9之间的随机数
void GenerateNumbers(int *number, int size)
{
for (int i = 0; i < size; i++) {
number[i] = ra... |
61b88fe8f8ff5686b35154c02dbe906d000c9733.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/detail/IndexUtils.cuh>
#include <ATen/hip/detail/TensorInfo.cuh>
#include "atomics.cuh"
#define THREADS 1024
#define BLOCKS(N) (N + THREADS - 1) / THREADS
template <typename scalar_t>
__g... | 61b88fe8f8ff5686b35154c02dbe906d000c9733.cu | #include <ATen/ATen.h>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/cuda/detail/TensorInfo.cuh>
#include "atomics.cuh"
#define THREADS 1024
#define BLOCKS(N) (N + THREADS - 1) / THREADS
template <typename scalar_t>
__global__ void
weighting_fw_kernel(at::cuda::detail::TensorInfo<scalar_t, int64_t> out,
... |
e07586f41e03488b58dbbfb16d4a04701582f20b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../common.h"
// Referenced the blog https://developer.nvidia.com/blog/efficient-matrix-transpose-cuda-cc/
const int TILE_DIM = 32;
const int BLOCK_ROWS = 8;
// We will launch blocks of [TILE_DIM=32, BLOCK_ROWS=8] thread... | e07586f41e03488b58dbbfb16d4a04701582f20b.cu | #include "../common.h"
// Referenced the blog https://developer.nvidia.com/blog/efficient-matrix-transpose-cuda-cc/
const int TILE_DIM = 32;
const int BLOCK_ROWS = 8;
// We will launch blocks of [TILE_DIM=32, BLOCK_ROWS=8] threads.
// Each processes TILE_DIM x TILE_DIM elements each time, each thread processes (TILE... |
500539c84a281f13d0796297a10a67f51ad76924.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <thrust/device_vector.h>
#include <thrust/transform_reduce.h>
#include <thrust/reduce.h>
#include <thrust/tuple.h>
#include "BBComplex.h"
#include "InputOutput.cuh"
#include "Utilities.cuh"
#in... | 500539c84a281f13d0796297a10a67f51ad76924.cu | #include <stdio.h>
#include <math.h>
#include <iostream>
#include <thrust/device_vector.h>
#include <thrust/transform_reduce.h>
#include <thrust/reduce.h>
#include <thrust/tuple.h>
#include "BBComplex.h"
#include "InputOutput.cuh"
#include "Utilities.cuh"
#include "Matlab_like.cuh"
#include "Polynomials.cuh"
#include... |
88754ec04e1c0d730699ee16ba284bfd6dee4e89.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "World.h"
#include <cstdio>
__global__
void ClearMaterials(Material **ptr) {
int idx = threadIdx.x;
delete ptr[idx];
}
__global__
void ClearObjects(GObject **ptr) {
int idx = threadIdx.x;
delete ptr[idx];
}
__global_... | 88754ec04e1c0d730699ee16ba284bfd6dee4e89.cu | #include "World.h"
#include <cstdio>
__global__
void ClearMaterials(Material **ptr) {
int idx = threadIdx.x;
delete ptr[idx];
}
__global__
void ClearObjects(GObject **ptr) {
int idx = threadIdx.x;
delete ptr[idx];
}
__global__
void ClearLights(Light **ptr) {
int idx = threadIdx.x;
delete ptr[idx];
}
__global_... |
54c135a105a93578c9278dfb4be85c5defc28a1a.hip | // !!! This is a file automatically generated by hipify!!!
#include "debug.h"
#include "ray.cuh"
#include "sphere_hip.cuh"
#include "scene.cuh"
#include "importer.cuh"
#define GLM_FORCE_CUDA
#include <glm/glm.hpp>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STBI_MSC_SECURE_CRT
#include <stb/stb_image_write.h>
#in... | 54c135a105a93578c9278dfb4be85c5defc28a1a.cu | #include "debug.h"
#include "ray.cuh"
#include "sphere.cuh"
#include "scene.cuh"
#include "importer.cuh"
#define GLM_FORCE_CUDA
#include <glm/glm.hpp>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STBI_MSC_SECURE_CRT
#include <stb/stb_image_write.h>
#include <curand_kernel.h>
#include <cuda_runtime.h>
#include <dev... |
92810193c4ceed63ec20717c08cf356948f72276.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
int main(int argc, char **argv) {
printf("%s Starting...\n", argv[0]);
int deviceCount = 0;
hipError_t error_id = hipGetDeviceCount(&deviceCount);
if (error_id != hipSuccess){
printf("h... | 92810193c4ceed63ec20717c08cf356948f72276.cu | #include <stdio.h>
#include <cuda_runtime.h>
int main(int argc, char **argv) {
printf("%s Starting...\n", argv[0]);
int deviceCount = 0;
cudaError_t error_id = cudaGetDeviceCount(&deviceCount);
if (error_id != cudaSuccess){
printf("cudaGetDeviceCount returned %d\n -> %s\n",
(i... |
ea6541d5933c124a086bc34592e549f4a9cd5923.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Program to perform ADI time-marching on a regular 3D grid
//
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cutil_inline.h>
///////////////////////////////////////////////////////////... | ea6541d5933c124a086bc34592e549f4a9cd5923.cu | //
// Program to perform ADI time-marching on a regular 3D grid
//
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cutil_inline.h>
////////////////////////////////////////////////////////////////////////
// define kernel block size for
/////////////////////////////////////////... |
986b4152c7b636da46bd93bbee5de26c76999d6d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is govern... | 986b4152c7b636da46bd93bbee5de26c76999d6d.cu | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
3f4a928aff4c50dec796371c694d347a22e50b6c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2012 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 soft... | 3f4a928aff4c50dec796371c694d347a22e50b6c.cu | /*
* Copyright 1993-2012 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... |
7be92ae588b43c520a482bf9e208bc3f63a23845.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pa... | 7be92ae588b43c520a482bf9e208bc3f63a23845.cu | /*
This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pasca
Licensed under the Apache License, Version 2.0 (the "License");
you may not use thi... |
fd5ea73f6f620c2fafdc6879169daf42563f1bf6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "counting.h"
#include <cstdio>
#include <cassert>
#include <thrust/scan.h>
#include <thrust/transform.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
#define max(a, b)((... | fd5ea73f6f620c2fafdc6879169daf42563f1bf6.cu | #include "counting.h"
#include <cstdio>
#include <cassert>
#include <thrust/scan.h>
#include <thrust/transform.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
#define max(a, b)((a)>(b)?(a):(b))
__device__ __host__ int CeilDiv(int a, int b) { return (a-1)/b + 1; }
__... |
1568a3ac985c8face7d891c415ddc7f9ecbffd00.hip | // !!! This is a file automatically generated by hipify!!!
#include "THHUNN.h"
#include "TH/THHalf.h"
#include "THHHalfAutoNumerics.cuh"
#include <THH/THHApply.cuh>
template <typename T>
struct ELUupdateOutput_functor
{
const T negcoef_;
const T poscoef_;
const T negiptcoef_;
ELUupdateOutput_functor(T negcoef... | 1568a3ac985c8face7d891c415ddc7f9ecbffd00.cu | #include "THCUNN.h"
#include "TH/THHalf.h"
#include "THCHalfAutoNumerics.cuh"
#include <THC/THCApply.cuh>
template <typename T>
struct ELUupdateOutput_functor
{
const T negcoef_;
const T poscoef_;
const T negiptcoef_;
ELUupdateOutput_functor(T negcoef, T poscoef, T negiptcoef)
: negcoef_(negcoef)
, po... |
ecd217e28dfe5518cb6b5847fb08164f92d0da58.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<sys/time.h>
#define MIMAX 129
#define MJMAX 65
#define MKMAX 65
#define NN 200
#define THREAD_NUM 127
/*static float p[MIMAX][MJMAX][MKMAX];
static float a[MIMAX][MJMAX][MKMAX][4];
static float b[MIMAX... | ecd217e28dfe5518cb6b5847fb08164f92d0da58.cu | #include<stdio.h>
#include<sys/time.h>
#define MIMAX 129
#define MJMAX 65
#define MKMAX 65
#define NN 200
#define THREAD_NUM 127
/*static float p[MIMAX][MJMAX][MKMAX];
static float a[MIMAX][MJMAX][MKMAX][4];
static float b[MIMAX][MJMAX][MKMAX][3];
static float c[MIMAX][MJMAX][MKMAX][3];
static float bnd[MIMAX][MJM... |
abc686c67dc5d3f42430fdfbe2ece46814bab34e.hip | // !!! This is a file automatically generated by hipify!!!
/*
* kmeans_gpu.cu
*/
#include <hip/hip_runtime_api.h>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include "util.h"
using namespace std;
// declarations
static int ThreadsPerBlock = 512;
static inline int nextPowerOfTwo(int n);
__device_... | abc686c67dc5d3f42430fdfbe2ece46814bab34e.cu | /*
* kmeans_gpu.cu
*/
#include <cuda_runtime_api.h>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include "util.h"
using namespace std;
// declarations
static int ThreadsPerBlock = 512;
static inline int nextPowerOfTwo(int n);
__device__ inline static float euclid_dist_2(const unsigned int size, c... |
540d71f4940926dbbd4750d19cc031acccd5e314.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//Device funtion to compute a thread block's accumulated matrix product
__device__ void block_matrix_product(int K_dim){
//Fragmemnts used to store data fetched from SMEM
value_t frag_a[ThreadItemsY];
value_t frag_b[Thre... | 540d71f4940926dbbd4750d19cc031acccd5e314.cu | //Device funtion to compute a thread block's accumulated matrix product
__device__ void block_matrix_product(int K_dim){
//Fragmemnts used to store data fetched from SMEM
value_t frag_a[ThreadItemsY];
value_t frag_b[ThreadItemsX];
//Accumulator storage
accum_t accumulator[ThreadItemsX][ThreadItemsY... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.