hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
188cf0f08589dd1ea31dd189d0ad3d618b357efc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ---------------------------------------------------------------------... | 188cf0f08589dd1ea31dd189d0ad3d618b357efc.cu | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2019 www.open3d.org
//
// Permissio... |
24908f394d8ea0dcbc769494a6754c7e4ddac2ea.hip | // !!! This is a file automatically generated by hipify!!!
#include "Utils.h"
hipError_t handleCudaErrors(hipError_t error_code) {
if(error_code != hipSuccess) {
std::cout << "CUDA-related error: " << hipGetErrorString(error_code) << std::endl;
exit(EXIT_FAILURE);
}
return error_code;
}
u... | 24908f394d8ea0dcbc769494a6754c7e4ddac2ea.cu | #include "Utils.h"
cudaError_t handleCudaErrors(cudaError_t error_code) {
if(error_code != cudaSuccess) {
std::cout << "CUDA-related error: " << cudaGetErrorString(error_code) << std::endl;
exit(EXIT_FAILURE);
}
return error_code;
}
unsigned getNumberOfStreamingMultiprocessors() {
int... |
b12983d5366ae7efb55e59b0d73909467459cd3d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// GpuSim_CUDA.cu
// by Sean McCallum, 2010
#include "global.h"
#include "DynamicSpikingSynapse_struct.h"
#include "LifNeuron_struct.h"
#include <iostream>
#include <fstream>
using namespace std;
//Forward Declarations
extern "C... | b12983d5366ae7efb55e59b0d73909467459cd3d.cu | // GpuSim_CUDA.cu
// by Sean McCallum, 2010
#include "global.h"
#include "DynamicSpikingSynapse_struct.h"
#include "LifNeuron_struct.h"
#include <iostream>
#include <fstream>
using namespace std;
//Forward Declarations
extern "C" void advanceGPU( LifNeuron_struct* neuronArrays,
int neuron_count,
... |
473a0d5245c5db027cb89eab49732ceb409d4977.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
============================================================================
Name : GScuda.cu
Author : caleb
Version :
Copyright : Your copyright notice
Description : CUDA compute reciprocals
============... | 473a0d5245c5db027cb89eab49732ceb409d4977.cu | /*
============================================================================
Name : GScuda.cu
Author : caleb
Version :
Copyright : Your copyright notice
Description : CUDA compute reciprocals
============================================================================
*/
#include <iostream... |
051c9bd7f0aea77d1e555ddf4089f762ca2008a5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include "qcd.h"
//#define REDUCE_PRECISION float
#define REDUCE_PRECISION double
#define REDUCE_THREADS 128
#define REDUCE_MAX_BLOCKS 128
void zeroCuda(float* dst, int len) {
// cuda'... | 051c9bd7f0aea77d1e555ddf4089f762ca2008a5.cu | #include <stdlib.h>
#include <stdio.h>
#include "qcd.h"
//#define REDUCE_PRECISION float
#define REDUCE_PRECISION double
#define REDUCE_THREADS 128
#define REDUCE_MAX_BLOCKS 128
void zeroCuda(float* dst, int len) {
// cuda's floating point format, IEEE-754, represents the floating point
// zero as 4 zero b... |
71401e1ba1eec2dd5c64f2c169bac1a104b44656.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2020 by Contributors
* \file rank_metric.cc
* \brief prediction rank based metrics.
* \author Kailong Chen, Tianqi Chen
*/
#include <cmath>
#include <vector>
#include <rabit/rabit.h>
#include <dmlc/registry.h>
#include <xgboost/metric.h>
... | 71401e1ba1eec2dd5c64f2c169bac1a104b44656.cu | /*!
* Copyright 2020 by Contributors
* \file rank_metric.cc
* \brief prediction rank based metrics.
* \author Kailong Chen, Tianqi Chen
*/
#include <cmath>
#include <vector>
#include <rabit/rabit.h>
#include <dmlc/registry.h>
#include <xgboost/metric.h>
#include <xgboost/host_device_vector.h>
#include <thrust/it... |
d6a1c651e4653fe3988e5b207a68b0fe07f7268a.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@author Tingxing Dong
@author Azzam Haidar
*/
#include "magma_internal.h"
#inclu... | d6a1c651e4653fe3988e5b207a68b0fe07f7268a.cu | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@author Tingxing Dong
@author Azzam Haidar
*/
#include "magma_internal.h"
#include "magma_templates.h"
#define PRECISION_d
#include "gemv... |
77cc1800f2802554051ceb503eb27d23fba87fce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, ... | 77cc1800f2802554051ceb503eb27d23fba87fce.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, it will be
//ignored in this homework.
//Each channel Red, Blue, Green and Alpha is rep... |
7b926266b22654fd1721bd365ea32dead5bca9ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <math.h>
// Kernel function to add the elements of two arrays
__global__
void add(int n, float *x, float *y)
{
for (int i = 0; i < n; i++)
y[i] = x[i] + y[i];
}
int main(void)
{
int N = 1<<20;
... | 7b926266b22654fd1721bd365ea32dead5bca9ba.cu | #include <iostream>
#include <math.h>
// Kernel function to add the elements of two arrays
__global__
void add(int n, float *x, float *y)
{
for (int i = 0; i < n; i++)
y[i] = x[i] + y[i];
}
int main(void)
{
int N = 1<<20;
float *x, *y;
// Allocate Unified Memory – accessible from CPU or GPU
cudaMallocM... |
7c9d3ad0a65c7e2adc4bda5a610467f14775659d.hip | // !!! This is a file automatically generated by hipify!!!
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
extern "C" {
#include "lab4.h"
}
#define COEFFS(Cu,Cv,u,v) {\
if (u==0) Cu = 1/sqrt... | 7c9d3ad0a65c7e2adc4bda5a610467f14775659d.cu | #include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <cuda.h>
#include <cuda_runtime.h>
extern "C" {
#include "lab4.h"
}
#define COEFFS(Cu,Cv,u,v) {\
if (u==0) Cu = 1/sqrt(2); else Cu = 1.0;\
if (v==0) Cv = 1/sqrt(2); else Cv = 1.0;}
//Func... |
e1642b3068c42e6d6e2a2067026a83f30ddbc965.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Project
//
#include "CUDA_Conductivity_matching.h"
#include "CUDA_Conductivity_matching_functions.h"
//
//
//
Domains::CUDA_Conductivity_matching::CUDA_Conductivity_matching():
positions_array_x_(NULL), positions_array_y_(NU... | e1642b3068c42e6d6e2a2067026a83f30ddbc965.cu | //
// Project
//
#include "CUDA_Conductivity_matching.h"
#include "CUDA_Conductivity_matching_functions.h"
//
//
//
Domains::CUDA_Conductivity_matching::CUDA_Conductivity_matching():
positions_array_x_(NULL), positions_array_y_(NULL), positions_array_z_(NULL)
{
}
//
//
//
Domains::CUDA_Conductivity_matching::CUDA_Con... |
ad28e772bbe0950658f355f66910f3f2788ebb87.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__device__ int getTid()
{
int bid = blockIdx.y * gridDim.x + blockIdx.x;
int tid = threadIdx.y * blockDim.x + threadIdx.x;
int tPB = ... | ad28e772bbe0950658f355f66910f3f2788ebb87.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__device__ int getTid()
{
int bid = blockIdx.y * gridDim.x + blockIdx.x;
int tid = threadIdx.y * blockDim.x + threadIdx.x;
int tPB = blockDim.x * blockDim.y ;
int fin = bid*tPB+tid;
}
__global_... |
e8ffd6b07da935082baef19959cd39eeb24acda8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/// @file fdwt53.cu
/// @brief CUDA implementation of forward 5/3 2D DWT.
/// @author Martin Jirman (207962@mail.muni.cz)
/// @date 2011-02-04 13:23
///
///
/// Copyright (c) 2011 Martin Jirman
/// All rights reserved.
/// ... | e8ffd6b07da935082baef19959cd39eeb24acda8.cu | /// @file fdwt53.cu
/// @brief CUDA implementation of forward 5/3 2D DWT.
/// @author Martin Jirman (207962@mail.muni.cz)
/// @date 2011-02-04 13:23
///
///
/// Copyright (c) 2011 Martin Jirman
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or without
/// modification... |
92a3e755c8882577381280b8d6800e490921e4ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/book.h"
int main(void) {
hipDeviceProp_t prop;
int dev;
HANDLE_ERROR(hipGetDevice(&dev));
printf("ID of current CUDA device: %d\n", dev);
memset(&prop, 0, sizeof(hipDeviceProp_t));
prop.major = 7;
prop.minor = 5;
HANDLE_E... | 92a3e755c8882577381280b8d6800e490921e4ba.cu | #include "../common/book.h"
int main(void) {
cudaDeviceProp prop;
int dev;
HANDLE_ERROR(cudaGetDevice(&dev));
printf("ID of current CUDA device: %d\n", dev);
memset(&prop, 0, sizeof(cudaDeviceProp));
prop.major = 7;
prop.minor = 5;
HANDLE_ERROR(cudaChooseDevice(&dev, &prop));
printf("ID of CUDA de... |
448f421c6dae993f8c8031840f571ef3109e6bd1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* CUDA Kernel functions.
*
* Notes:
*
* * use `-1` as *null pointer*
* * last-level cell and then attempts to lock the appropriate child pointer (an array index) by writing an
otherwise unused value (2) to it using an atom... | 448f421c6dae993f8c8031840f571ef3109e6bd1.cu | /**
* CUDA Kernel functions.
*
* Notes:
*
* * use `-1` as *null pointer*
* * last-level cell and then attempts to lock the appropriate child pointer (an array index) by writing an
otherwise unused value (−2) to it using an atomic operation
*/
#include "../include/Kernels.cuh"
//__device__ const int blockSize... |
4b90dd6dfe8f4ded4313afef7b295df6bec2220b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
#include <chrono>
#include <cassert>
#include <vector>
#include "lodepng.h"
hipError_t status;
#define CudaCall(x) \
status = x; \
if (status != hipSuccess) \
std::cou... | 4b90dd6dfe8f4ded4313afef7b295df6bec2220b.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
#include <chrono>
#include <cassert>
#include <vector>
#include "lodepng.h"
cudaError_t status;
#define CudaCall(x) \
status = x; \
if (status != cudaSuccess) \
std::cout << "Error [" << status << "]: " << cudaGetErrorString(stat... |
2f29c0a292c92bc7027d7bdacb1a058636068b75.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 "computeGradientCentralDiff.cu"
#include<chrono>
#include<iostrea... | 2f29c0a292c92bc7027d7bdacb1a058636068b75.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 "computeGradientCentralDiff.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8... |
32c0070d6068a82e890bd1ed7325491e89765fcb.hip | // !!! This is a file automatically generated by hipify!!!
#include "book.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include<iostream>
#include<stdio.h>
int main(void){
hipDeviceProp_t prop;
int count;
HANDLE_ERROR(hipGetDeviceCount(&count));
for(int i=0; i<count; i++){
HANDLE_ERROR(hip... | 32c0070d6068a82e890bd1ed7325491e89765fcb.cu | #include "book.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include<iostream>
#include<stdio.h>
int main(void){
cudaDeviceProp prop;
int count;
HANDLE_ERROR(cudaGetDeviceCount(&count));
for(int i=0; i<count; i++){
HANDLE_ERROR(cudaGetDeviceProperties(&prop, i));
printf("Name: %s \n", prop.n... |
e5071f8725345ed178fc69a335096d16939aac6c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "collision.h"
__managed__ BodyType **d_bodies;
// Helper variables for rendering and checksum computation.
__device__ int r_draw_counter = 0;
__device__ float r_Body_pos_x[kNumBodies];
__device__ float r_Body_pos_y[kNumBo... | e5071f8725345ed178fc69a335096d16939aac6c.cu |
#include "collision.h"
__managed__ BodyType **d_bodies;
// Helper variables for rendering and checksum computation.
__device__ int r_draw_counter = 0;
__device__ float r_Body_pos_x[kNumBodies];
__device__ float r_Body_pos_y[kNumBodies];
__device__ float r_Body_vel_x[kNumBodies];
__device__ float r_Body_vel_y[kNumBodi... |
cdbbe81200f56dc488b921416ccdfb8dbed1c924.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
nvcc StarContinueRun.cu -o StarContinueRun.exe -lglut -lGL -lGLU -lm
nvcc StarContinueRun.cu -o StarContinueRun.exe -lglut -lGL -lGLU -lm --use_fast_math
*/
#include "../CommonCompileFiles/binaryStarCommonIncludes.h"
#include ".... | cdbbe81200f56dc488b921416ccdfb8dbed1c924.cu | /*
nvcc StarContinueRun.cu -o StarContinueRun.exe -lglut -lGL -lGLU -lm
nvcc StarContinueRun.cu -o StarContinueRun.exe -lglut -lGL -lGLU -lm --use_fast_math
*/
#include "../CommonCompileFiles/binaryStarCommonIncludes.h"
#include "../CommonCompileFiles/binaryStarCommonDefines.h"
#include "../CommonCompileFiles/binarySt... |
11673b022b5e837b5ae57fede811b20f41e8bfa8.hip | // !!! This is a file automatically generated by hipify!!!
// Utilities and system includes
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#define DATA_TYPE 1 // 0-SP, 1-INT, 2-DP
#define SIZE 60000000
#define TILE_DIM 1024
#define INNER_REPS 4
template <class T>... | 11673b022b5e837b5ae57fede811b20f41e8bfa8.cu | // Utilities and system includes
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_profiler_api.h>
#define DATA_TYPE 1 // 0-SP, 1-INT, 2-DP
#define SIZE 60000000
#define TILE_DIM 1024
#define INNER_REPS 4
template <class T> __global__ void simpleKernel(T *A, T *C1, T *C2, T *C3, T *C4)
{
in... |
75437c17ad069b3f68e373f1ca4232c43cff5548.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* PolynomialCalulater.cu
*
* Created on: 28/05/2013
* Author: Zeyi Wen
* Copyright @DBGroup University of Melbourne
**/
#include "kernelCalculater.h"
#include "kernelCalGPUHelper.h"
#include "../my_assert.h"
/*
* @brief:... | 75437c17ad069b3f68e373f1ca4232c43cff5548.cu | /*
* PolynomialCalulater.cu
*
* Created on: 28/05/2013
* Author: Zeyi Wen
* Copyright @DBGroup University of Melbourne
**/
#include "kernelCalculater.h"
#include "kernelCalGPUHelper.h"
#include "../my_assert.h"
/*
* @brief: compute a certain # of rows of the Hessian Matrix by Polynomial function
* @param: pfD... |
5c185cf9a9623649af901f96e5a7c425463af80d.hip | // !!! This is a file automatically generated by hipify!!!
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include <algorithm>
#include <mirheo/core/logger.h>
#include <mirheo/core/task_scheduler.h>
#include "../timer.h"
#define private public
using namespace mirheo;
void verifyDep(const std::string&... | 5c185cf9a9623649af901f96e5a7c425463af80d.cu | #include <gtest/gtest.h>
#include <string>
#include <vector>
#include <algorithm>
#include <mirheo/core/logger.h>
#include <mirheo/core/task_scheduler.h>
#include "../timer.h"
#define private public
using namespace mirheo;
void verifyDep(const std::string& before, const std::string& after,
const std... |
7568bb4f8481d5b667184758936fe86c0bc83af0.hip | // !!! This is a file automatically generated by hipify!!!
/*
* nn.cu
* Nearest Neighbor
*
*/
#include <stdio.h>
#include <sys/time.h>
#include <float.h>
#include <vector>
#include "hip/hip_runtime.h"
#ifdef TIMING
#include "timing.h"
struct timeval tv;
struct timeval tv_total_start, tv_total_end;
struct timeval... | 7568bb4f8481d5b667184758936fe86c0bc83af0.cu | /*
* nn.cu
* Nearest Neighbor
*
*/
#include <stdio.h>
#include <sys/time.h>
#include <float.h>
#include <vector>
#include "cuda.h"
#ifdef TIMING
#include "timing.h"
struct timeval tv;
struct timeval tv_total_start, tv_total_end;
struct timeval tv_h2d_start, tv_h2d_end;
struct timeval tv_d2h_start, tv_d2h_end;
st... |
1fe6a9791bc9b7437cf110dbfd9cb441344e9f38.hip | // !!! This is a file automatically generated by hipify!!!
/* Assignment 2 Program
Building upon the code written for assignment 1, this program implements GPU code for N-body simulation and visualization.
In total, we implement a serial CPU version, an OpenMP version for multicore processors, and a CUDA version for Nv... | 1fe6a9791bc9b7437cf110dbfd9cb441344e9f38.cu | /* Assignment 2 Program
Building upon the code written for assignment 1, this program implements GPU code for N-body simulation and visualization.
In total, we implement a serial CPU version, an OpenMP version for multicore processors, and a CUDA version for Nvidia GPUs.
Timing code is also included for benchmarking pe... |
dfb1f96125c12fba43f3edb5321506a885937afd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void dotproduct_precompiled_MapKernel_mult(float* skepu_output, float *a, float *b, size_t w2, size_t w3, size_t w4, size_t n, size_t base)
{
size_t i = blockIdx.x * blockDim.x + threadIdx.x;
size_t gridSize = blockDi... | dfb1f96125c12fba43f3edb5321506a885937afd.cu |
__global__ void dotproduct_precompiled_MapKernel_mult(float* skepu_output, float *a, float *b, size_t w2, size_t w3, size_t w4, size_t n, size_t base)
{
size_t i = blockIdx.x * blockDim.x + threadIdx.x;
size_t gridSize = blockDim.x * gridDim.x;
while (i < n)
{
auto res = skepu_userfunction_skepu_skel_2tmp_m... |
9d622e2cea7c69291887a6c08f0751509fe7752d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include "CudaDevInfo.h"
#include "cuda_sub_sqr.h"
#include "cc_sub_sqr.h"
#include "fast_heap.h"
template <class T>
T max_abs_vec_diff(size_t n_vec, //!< no of elements
const... | 9d622e2cea7c69291887a6c08f0751509fe7752d.cu | #include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include "CudaDevInfo.h"
#include "cuda_sub_sqr.h"
#include "cc_sub_sqr.h"
#include "fast_heap.h"
template <class T>
T max_abs_vec_diff(size_t n_vec, //!< no of elements
const T *vec1, //!< The vector
const T *vec2 //!< The vecto... |
e3cf3e43d0f028ec73f341b894af8ade7dcac4e9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "precomp.cuh"
#include "bitboard.h"
#include "gpuminimax.h"
namespace Checkers
{
namespace GPUMinimax
{
__device__ utility_type explore_black_frontier(GPUBitBoard board, utility_type alpha, utility_type beta, NodeType ... | e3cf3e43d0f028ec73f341b894af8ade7dcac4e9.cu | #include "precomp.cuh"
#include "bitboard.h"
#include "gpuminimax.h"
namespace Checkers
{
namespace GPUMinimax
{
__device__ utility_type explore_black_frontier(GPUBitBoard board, utility_type alpha, utility_type beta, NodeType node_type, int depth, int turns)
{
GPUBitBoard frontier[32];
int frontier_size =... |
b744fb1cc035247bffa99fddac7e506e7bc74f86.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018, 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
*
*... | b744fb1cc035247bffa99fddac7e506e7bc74f86.cu | /*
* Copyright (c) 2018, 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 ... |
a35662f6791a34df6c8ab5d2f8c3eed3ed34a5b2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
// File: fog_rectification.cu... | a35662f6791a34df6c8ab5d2f8c3eed3ed34a5b2.cu | //
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
// File: fog_rectification.cu
//
// GPU Coder version : 1.0
// CUDA/C/C++ source code generated on... |
998a432d4f9c0b06d6bc2ba16c56caed525533d4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
///
/// \file logistic.cu
///
#include "logistic.hpp"
using namespace std;
template <typename Dtype>
Logistic<Dtype>::Logistic<Dtype>(FullConnectParam* fcp) {
this->_fcp = fcp;
}
template <typename Dtype>
Logistic<Dtype>::~Lo... | 998a432d4f9c0b06d6bc2ba16c56caed525533d4.cu | ///
/// \file logistic.cu
///
#include "logistic.hpp"
using namespace std;
template <typename Dtype>
Logistic<Dtype>::Logistic<Dtype>(FullConnectParam* fcp) {
this->_fcp = fcp;
}
template <typename Dtype>
Logistic<Dtype>::~Logistic<Dtype>() {
delete this->_y;
delete[] h_labels;
delete[] y_CPU;
delete[] corr... |
d527d6d0ef013fecbc2154e2c1e1fb1659f5138c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define NXPROB 20480 /* x dimension of problem grid */
#define NYPROB 32768 /* y dimension of problem grid */
#define STEPS 50... | d527d6d0ef013fecbc2154e2c1e1fb1659f5138c.cu | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define NXPROB 20480 /* x dimension of problem grid */
#define NYPROB 32768 /* y dimension of problem grid */
#define STEPS 500 /* number of time steps */
#define MAXWORKER 8 /* ma... |
3c70475ef1038c9be0a06df3f735c5d25a5b932b.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <ctime>
#include <hip/hip_runtime.h>
#include <math_constants.h>
using namespace std;
__constant__ int ROWS;
/*check error*/
void checkError(hipError_t err, char* message)... | 3c70475ef1038c9be0a06df3f735c5d25a5b932b.cu | #include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <ctime>
#include <cuda_runtime.h>
#include <math_constants.h>
using namespace std;
__constant__ int ROWS;
/*check error*/
void checkError(cudaError_t err, char* message) {
if (err != cudaSuccess)
{
fprintf(stderr, message, cud... |
ac25adda2e6be75fc59a447fd22159b991a953fc.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <malloc.h>
#include <iostream>
#include <string>
#include <time.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
/*
* This example demonstrates a simple... | ac25adda2e6be75fc59a447fd22159b991a953fc.cu | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <malloc.h>
#include <iostream>
#include <string>
#include <time.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
/*
* This example demonstrates a simple vector sum on the GPU and on the host.
* sumArraysOnGPU split... |
f1a95e9974ffc837739172738052c57dbae74b0b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <math.h>
// CUDA Kernel function to add the elements of two arrays on the GPU
__global__
void add(int n, float* x, float* y)
{
for (int i = 0; i < n; i++)
y[i] = x[i] + y[i];
}
int main(voi... | f1a95e9974ffc837739172738052c57dbae74b0b.cu | #include <iostream>
#include <math.h>
// CUDA Kernel function to add the elements of two arrays on the GPU
__global__
void add(int n, float* x, float* y)
{
for (int i = 0; i < n; i++)
y[i] = x[i] + y[i];
}
int main(void)
{
int N = 1 << 20;
float *x, *y;
// Allocate Unified Memory – accessible... |
dd5f2a6418c76d90e51a2b96eb90fd7235006253.hip | // !!! This is a file automatically generated by hipify!!!
// Andrew Gloster
// May 2018
// Copyright 2018 Andrew Gloster
// 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
// ... | dd5f2a6418c76d90e51a2b96eb90fd7235006253.cu | // Andrew Gloster
// May 2018
// Copyright 2018 Andrew Gloster
// 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 req... |
556945a8ef0e317660ae3d9e87fa5e198636f554.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
// kernel menambahkan vector
__global__
void tambahVector(
const float *cVectorA,
const float *cVectorB,
float *cVectorC,
const int cJumlahElemen)
{
// cari indeks ... | 556945a8ef0e317660ae3d9e87fa5e198636f554.cu | #include <iostream>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
// kernel menambahkan vector
__global__
void tambahVector(
const float *cVectorA,
const float *cVectorB,
float *cVectorC,
const int cJumlahElemen)
{
// cari indeks saya
int idx_ = 0;
}
// fungsi main untuk panggil kernel
int... |
34a88467efc76278e7a58183290efab5c6b9971c.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 "kernGaussianBlur.cu"
#include<chrono>
#include<iostream>
using n... | 34a88467efc76278e7a58183290efab5c6b9971c.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 "kernGaussianBlur.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
ea8b3194136e9d5a73850cc3407dd862a2a3b67c.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 ... | ea8b3194136e9d5a73850cc3407dd862a2a3b67c.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... |
b1b4bca7604230fd3fd5d976736b1fb5bc8249e9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void add(int a, int b, int *c) {
*c = a + b;
}
int main() {
int c;
int *dev_c;
hipMalloc((void **)&dev_c, sizeof(int));
hipLaunchKernelGGL(( add), dim3(1), dim3(1), 0, 0, 1, 1, dev_c);
hipMemcpy(... | b1b4bca7604230fd3fd5d976736b1fb5bc8249e9.cu | #include <stdio.h>
__global__ void add(int a, int b, int *c) {
*c = a + b;
}
int main() {
int c;
int *dev_c;
cudaMalloc((void **)&dev_c, sizeof(int));
add<<<1, 1>>>(1, 1, dev_c);
cudaMemcpy(&c, dev_c, sizeof(int), cudaMemcpyDeviceToHost);
cudaFree(dev_c);
printf("%d\n", c);
return 0;
}
|
97a7f6cd2dd874a4cfae0a5cd9dfd9ff37bedc4b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | 97a7f6cd2dd874a4cfae0a5cd9dfd9ff37bedc4b.cu | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* 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... |
eb6a396791a33c9ad63dcf64d5487cab35441d8b.hip | // !!! This is a file automatically generated by hipify!!!
/**********************************************************************
Copyright 2013 Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follow... | eb6a396791a33c9ad63dcf64d5487cab35441d8b.cu | /**********************************************************************
Copyright ©2013 Advanced Micro Devices, Inc. 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 c... |
cubicFilter3D_kernel.hip | // !!! This is a file automatically generated by hipify!!!
/*--------------------------------------------------------------------------*\
Copyright (c) 2008-2009, Danny Ruijters. All rights reserved.
http://www.dannyruijters.nl/cubicinterpolation/
This file is part of CUDA Cubic B-Spline Interpolation (CI).
Redistribu... | cubicFilter3D_kernel.cu | /*--------------------------------------------------------------------------*\
Copyright (c) 2008-2009, Danny Ruijters. All rights reserved.
http://www.dannyruijters.nl/cubicinterpolation/
This file is part of CUDA Cubic B-Spline Interpolation (CI).
Redistribution and use in source and binary forms, with or without
mo... |
20d9c4ec9f583de8d1686f69a179d8d136cd3042.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "layers/conv.h"
#include "layers/dense.h"
#include "layers/pooling.h"
void test_dense(float *input, int input_channel, int output_channel) {
printf("****** Testing dense layer ******\n");
... | 20d9c4ec9f583de8d1686f69a179d8d136cd3042.cu | #include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "layers/conv.h"
#include "layers/dense.h"
#include "layers/pooling.h"
void test_dense(float *input, int input_channel, int output_channel) {
printf("****** Testing dense layer ******\n");
printf("*** Step 1: init dense layer ***\n");
Dense... |
9f60816543162f428e1524b6f1dc1f5e8d8e4ab3.hip | // !!! This is a file automatically generated by hipify!!!
#include <vector>
#include "caffe/layers/image_dim_prefetching_data_layer.hpp"
namespace caffe {
template <typename Dtype>
void ImageDimPrefetchingDataLayer<Dtype>::Forward_gpu(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
Bat... | 9f60816543162f428e1524b6f1dc1f5e8d8e4ab3.cu | #include <vector>
#include "caffe/layers/image_dim_prefetching_data_layer.hpp"
namespace caffe {
template <typename Dtype>
void ImageDimPrefetchingDataLayer<Dtype>::Forward_gpu(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
Batch<Dtype>* batch =
BasePrefetchingDataLayer<Dtype>::pre... |
529722fd700c3e03700090bda6de05af509e82d0.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "stdio.h"
#define TILE_SIZE 64
#define WARP_SIZE 32
extern "C" void CSR_matvec(int N, int nnz, int* start, int* indices, float* data, float* x, float *y, bool bVectorized);
extern "C" void CSR... | 529722fd700c3e03700090bda6de05af509e82d0.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include "stdio.h"
#define TILE_SIZE 64
#define WARP_SIZE 32
extern "C" void CSR_matvec(int N, int nnz, int* start, int* indices, float* data, float* x, float *y, bool bVectorized);
extern "C" void CSR_create(int N, int nnz, int* start, int * indices, float * data , float *... |
8e0e887fa398599a76b4955b9214a5281daea86b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (C) 2016 Gernot Riegler
// Institute for Computer Graphics and Vision (ICG)
// Graz University of Technology (TU GRAZ)
// Redistribution and use in source and binary forms, with or without
// modification, are permitte... | 8e0e887fa398599a76b4955b9214a5281daea86b.cu | // Copyright (C) 2016 Gernot Riegler
// Institute for Computer Graphics and Vision (ICG)
// Graz University of Technology (TU GRAZ)
// 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 m... |
2721652a3655f1ba5b319ac38c012842d8ca1279.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 "threshold_one.cu"
#include<chrono>
#include<iostream>
using name... | 2721652a3655f1ba5b319ac38c012842d8ca1279.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 "threshold_one.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24... |
7a61152d310f2a626aa646daef29471af517b301.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(... | 7a61152d310f2a626aa646daef29471af517b301.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)) ... |
86a45419e54adc04b6e64f9f2c99cc41a0d14874.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* 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... | 86a45419e54adc04b6e64f9f2c99cc41a0d14874.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 docu... |
57a1d7c777aab264b302a1221ffc77affbb69308.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// FILE: ising3d.c
#include <string>
#include <stdio.h>
#include <math.h>
#include <stdlib.h> // Provides rand(), RAND_MAX
#include <assert.h>
#include <time.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
usi... | 57a1d7c777aab264b302a1221ffc77affbb69308.cu | // FILE: ising3d.c
#include <string>
#include <stdio.h>
#include <math.h>
#include <stdlib.h> // Provides rand(), RAND_MAX
#include <assert.h>
#include <time.h>
#include <curand.h>
#include <curand_kernel.h>
using std::string;
#define BLOCKLx 4
#define BLOCKLy 4
#define BLOCKLz 4
#define MyBit 1ULL
#define N64bit 6... |
a1fe23bc71a33442a92e8b80da85735d563e779d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
============================================================================
Name : sorting_segments.cu
Author : Rafael Schmid
Version :
Copyright : Your copyright notice
Description : Compute sum of recip... | a1fe23bc71a33442a92e8b80da85735d563e779d.cu | /*
============================================================================
Name : sorting_segments.cu
Author : Rafael Schmid
Version :
Copyright : Your copyright notice
Description : Compute sum of reciprocals using STL on CPU and Thrust on GPU
=============================================... |
38381387e58c49ac1502e551aa9047ac435a9ce0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h> // exp
/* Data structures */
struct YieldCurveData {
double P; // Discount Factor Function
double t; // Time [days]
};
struct OptionData {
double strike;
double maturity;
int number_of_terms;
double ... | 38381387e58c49ac1502e551aa9047ac435a9ce0.cu | #include <math.h> // exp
/* Data structures */
struct YieldCurveData {
double P; // Discount Factor Function
double t; // Time [days]
};
struct OptionData {
double strike;
double maturity;
int number_of_terms;
double reversion_rate;
double volatility;
};
/* Probability measures for tree construction *... |
f84496785de2caf8345e6f9ed8cac6e3b6c5c767.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
** Reduce noise by using Mean Filter with equal weights
*/
__global__ void MeanFilter ( uint *dst, int imageW, int imageH, int radius, float brightness, float contrast)
{
const int ix = __umul24(blockIdx.x, blockDim.x) + th... | f84496785de2caf8345e6f9ed8cac6e3b6c5c767.cu | /*
** Reduce noise by using Mean Filter with equal weights
*/
__global__ void MeanFilter ( uint *dst, int imageW, int imageH, int radius, float brightness, float contrast)
{
const int ix = __umul24(blockIdx.x, blockDim.x) + threadIdx.x;
const int iy = __umul24(blockIdx.y, blockDim.y) + threadIdx.y;
//Add ... |
c3df78c3a04a4df422a0f6ca5b97a57457979022.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2020, NVIDIA 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:/... | c3df78c3a04a4df422a0f6ca5b97a57457979022.cu | // Copyright (c) 2020, NVIDIA 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 ... |
d9e13b8956a97ee781858dba5b601d77b83a5bcb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_NUM_BLOCKS 70
//#include "global_sync.cu"
#define WARP_SIZE 32
#define NUM_THREADS 512
#define NUM_WARPS (NUM_THREADS / WARP_SIZE)
#define... | d9e13b8956a97ee781858dba5b601d77b83a5bcb.cu | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_NUM_BLOCKS 70
//#include "global_sync.cu"
#define WARP_SIZE 32
#define NUM_THREADS 512
#define NUM_WARPS (NUM_THREADS / WARP_SIZE)
#define LOG_NUM_THREADS 9
#define LOG_NUM_WARPS (LOG_NUM_THREADS - 5)
#define SCAN_STRIDE (WAR... |
61b62419cbd4e560650e9a8422df90d272a9e5ab.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "CUDAKernels.h"
#include <cstdio>
const size_t convolutionSize = 7;
__constant__ float convolutionKernel[convolutionSize]{ 2, -27, 270, -490, 270, -27, 2 };
__global__ void convolveArrayHorizontal(float* input, float* out... | 61b62419cbd4e560650e9a8422df90d272a9e5ab.cu | #include "CUDAKernels.h"
#include <cstdio>
const size_t convolutionSize = 7;
__constant__ float convolutionKernel[convolutionSize]{ 2, -27, 270, -490, 270, -27, 2 };
__global__ void convolveArrayHorizontal(float* input, float* output, size_t dataPitch, int XX, int YY, float scale)
{
int tidx = blockIdx.x*blockDim.x ... |
a3857a5c6e7027590d6c162dc89b567f020612ae.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void tovalue_kernal(float* data, const float value, const int totaltc)
{
const uint idx = threadIdx.x + (blockIdx.x + blockIdx.y*gridDim.x)*MAX_THREADS;
if(idx < totaltc){
data[idx] = value;
}
} | a3857a5c6e7027590d6c162dc89b567f020612ae.cu | #include "includes.h"
__global__ void tovalue_kernal(float* data, const float value, const int totaltc)
{
const uint idx = threadIdx.x + (blockIdx.x + blockIdx.y*gridDim.x)*MAX_THREADS;
if(idx < totaltc){
data[idx] = value;
}
} |
90cd4a05cf96378ae7cc7ed223a53efee17d7462.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"
// LOOK-2.1 potentially useful for doing grid-based neighbor search
#ifndef imax
#define imax( a, b ) ... | 90cd4a05cf96378ae7cc7ed223a53efee17d7462.cu | #define GLM_FORCE_CUDA
#include <stdio.h>
#include <cuda.h>
#include <cmath>
#include <glm/glm.hpp>
#include "utilityCore.hpp"
#include "kernel.h"
// LOOK-2.1 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 ) ... |
a648b465fd37fad44bff469021ef6f7a45f0a046.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// @file normalize_gpu.c
// @brief Normalize block implementation (GPU)
// @author Andrea Vedaldi
/*
Copyright (C) 2014-16 Andrea Vedaldi.
All rights reserved.
This file is part of the VLFeat library and is made available under
th... | a648b465fd37fad44bff469021ef6f7a45f0a046.cu | // @file normalize_gpu.c
// @brief Normalize block implementation (GPU)
// @author Andrea Vedaldi
/*
Copyright (C) 2014-16 Andrea Vedaldi.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#include "normalize.hpp"
#include... |
751891f22712ba8ee13ad7ba21db4167dfb68fda.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <hip/hip_runtime.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include <thrust/device_ptr.h>
#include "sceneStructs.h"
#include "scene.h"
#include "glm/glm.hpp"
#inclu... | 751891f22712ba8ee13ad7ba21db4167dfb68fda.cu | #include <cstdio>
#include <cuda.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include <thrust/device_ptr.h>
#include "sceneStructs.h"
#include "scene.h"
#include "glm/glm.hpp"
#include "glm/gtx/norm.hpp"
#include "utilities.h"
#include "pathtrace.h"
#i... |
ccaa59a5ff679dc59a3db5d014402bb9cce24fb1.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime_api.h>
#include <time.h>
/****************************************************************************
* An experiment with cuda kernel invocation parameters. 2x3x4 threads on
* one block should yield 24 kernel ... | ccaa59a5ff679dc59a3db5d014402bb9cce24fb1.cu | #include <stdio.h>
#include <cuda_runtime_api.h>
#include <time.h>
/****************************************************************************
* An experiment with cuda kernel invocation parameters. 2x3x4 threads on
* one block should yield 24 kernel invocations.
*
* Compile with:
* nvcc -o 2_1_a 2_1_a.cu
... |
94df576efae1cefc723f25957ccc67413be41328.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*Unrolled version of kernel that computes everything working with shared and constant memory*/
/*Worked in taking arguments*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
__constant__ float INP1[128... | 94df576efae1cefc723f25957ccc67413be41328.cu | /*Unrolled version of kernel that computes everything working with shared and constant memory*/
/*Worked in taking arguments*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
__constant__ float INP1[128];
bool relativelyEqual(float a, float b, float maxreldiff = FLT_EPSILON){
const floa... |
7813f72158c1ea40092abc48947428e4f9a8d875.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
//=== Vector arithmetic ======================================================
extern "C"
extern "C"
exte... | 7813f72158c1ea40092abc48947428e4f9a8d875.cu | #include "includes.h"
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
//=== Vector arithmetic ======================================================
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
//=== Vector-and-scalar arithmetic ==... |
e5d97d191072e63e06530f53d3da960251fcaa7b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define NDIM 2
template <int8_t kNdim>
class IndexIterator {
public:
__host__ __device__ void Set(int64_t i) {
int8_t j = kNdim;
for (; --j >= 1;) {
index_[j] = i % shape_[j];
... | e5d97d191072e63e06530f53d3da960251fcaa7b.cu | #include <stdio.h>
#define NDIM 2
template <int8_t kNdim>
class IndexIterator {
public:
__host__ __device__ void Set(int64_t i) {
int8_t j = kNdim;
for (; --j >= 1;) {
index_[j] = i % shape_[j];
i /= shape_[j];
}
index_[j] = i % shape_[j];
}
__host_... |
54668bc6a88f329552667ee49d47e9afcc3c545b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2017-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... | 54668bc6a88f329552667ee49d47e9afcc3c545b.cu | // Copyright (c) 2017-2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... |
3b8ff51c51f7973b33a742e19ecf67b8b8a6e2c1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 3b8ff51c51f7973b33a742e19ecf67b8b8a6e2c1.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
fbe5e23e40f294e1e979b31ce7a5b0db665c649e.hip | // !!! This is a file automatically generated by hipify!!!
#define ONLY_IMPORTANT
#include"my_functions.h"
#include "./CUCCL_LE/CUCCL_LE.cuh"
#include "./CUCCL_NP/CUCCL_NP.cuh"
#include "./CUCCL_DPL/CUCCL_DPL.cuh"
#include <iomanip>
#include <iostream>
#include <vector>
#include <stdlib.h>
using namespace std;
u... | fbe5e23e40f294e1e979b31ce7a5b0db665c649e.cu |
#define ONLY_IMPORTANT
#include"my_functions.h"
#include "./CUCCL_LE/CUCCL_LE.cuh"
#include "./CUCCL_NP/CUCCL_NP.cuh"
#include "./CUCCL_DPL/CUCCL_DPL.cuh"
#include <iomanip>
#include <iostream>
#include <vector>
#include <stdlib.h>
using namespace std;
using namespace CUCCL;
void testCCL(char const* flag, int... |
5e5d3861ac4c1af8a127bc4157b05177cb3d34e7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* 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 lic... | 5e5d3861ac4c1af8a127bc4157b05177cb3d34e7.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 ... |
7ed56cfddd0d82c5886cb3311f8c288f0647fd9a.hip | // !!! This is a file automatically generated by hipify!!!
#include "kernels/tensor_operators.h"
#include "training/graph_group_sync.h"
namespace marian {
void SyncGraphGroup::setScheduler(Ptr<Scheduler> scheduler) {
scheduler_ = scheduler;
// optimizer has to be registered last to see changes of learning rate
... | 7ed56cfddd0d82c5886cb3311f8c288f0647fd9a.cu | #include "kernels/tensor_operators.h"
#include "training/graph_group_sync.h"
namespace marian {
void SyncGraphGroup::setScheduler(Ptr<Scheduler> scheduler) {
scheduler_ = scheduler;
// optimizer has to be registered last to see changes of learning rate
scheduler_->registerTrainingObserver(scheduler_);
for(au... |
48460b143f8aca0761a26de6e4c638235ff07f4d.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2020 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... | 48460b143f8aca0761a26de6e4c638235ff07f4d.cu | /* Copyright (c) 2020 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... |
29eac2d21a4633447835079e1f526d3d46ee1269.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// TODO: add copyright
/*
Compute unnormalized attractive force for barnes-hut approximation of t-SNE.
Attractive force is given by pij*qij.
*/
#include "kernels/attr_forces.h"
__global__
void ComputePijxQijKernel(
... | 29eac2d21a4633447835079e1f526d3d46ee1269.cu | // TODO: add copyright
/*
Compute unnormalized attractive force for barnes-hut approximation of t-SNE.
Attractive force is given by pij*qij.
*/
#include "kernels/attr_forces.h"
__global__
void ComputePijxQijKernel(
float * __restrict__ attr_forces,
con... |
08dc4c61fd1c33b05a438f48f324dfed91633b7d.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 "matrixKernel.cu"
#include<chrono>
#include<iostream>
using names... | 08dc4c61fd1c33b05a438f48f324dfed91633b7d.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 "matrixKernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,... |
CopyConnectionsCoordinatesKernel.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void CopyConnectionsCoordinatesKernel( int *connectionMatrix, float *pointsCoordinates, float *vertexData, int *connectionCount, int maxCells )
{
int threadId = blockDim.x*blockIdx.y*gridDim.x //r... | CopyConnectionsCoordinatesKernel.cu | #include "includes.h"
__global__ void CopyConnectionsCoordinatesKernel( int *connectionMatrix, float *pointsCoordinates, float *vertexData, int *connectionCount, int maxCells )
{
int threadId = blockDim.x*blockIdx.y*gridDim.x //rows preceeding current row in grid
+ blockDim.x*blockIdx.x //blocks preceeding curren... |
1bb734d3e183ae0bd7e1e857253e315b219f4a81.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
const int MAX_THREAD_NUMBER = 1000000;
extern "C" __devic... | 1bb734d3e183ae0bd7e1e857253e315b219f4a81.cu | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <device_launch_parameters.h>
const int MAX_THREAD_NUMBER = 1000000;
extern "C" __device__ long long counterArray[MAX_THREAD_NUMBER];
long long dynamicKernelIndex = 0;
v... |
b43b2063186f5ca2b591a58e6b51aa944bd853f7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include <math.h>
#include <stdio.h>
#include <s... | b43b2063186f5ca2b591a58e6b51aa944bd853f7.cu | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "cuda_utils.h"
#include "cutil_math.h" // required for float3 vector... |
375d4bc21eee1022fbe5abca23f0ff59304023d4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, ... | 375d4bc21eee1022fbe5abca23f0ff59304023d4.cu | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
8ba73eea34db0e1dc851390e7cb4195ab5b4d9bd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <cstdlib>
#include <stdio.h>
#include "template.hu"
#define BLOCK_SIZE 512
#define TILE_SIZE 2048
#define BLOCK_SIZE_CIRCULAR 512
#define TILE_SIZE_CIRCULAR 2048
// Ceiling funciton for X / Y.
__host__ ... | 8ba73eea34db0e1dc851390e7cb4195ab5b4d9bd.cu | #include <cstdio>
#include <cstdlib>
#include <stdio.h>
#include "template.hu"
#define BLOCK_SIZE 512
#define TILE_SIZE 2048
#define BLOCK_SIZE_CIRCULAR 512
#define TILE_SIZE_CIRCULAR 2048
// Ceiling funciton for X / Y.
__host__ __device__ static inline int ceil_div(int x, int y) {
return (x - 1) / y + 1;
}
/**... |
1779e352c79b160eadf2441476f414aec1568074.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2013 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, ... | 1779e352c79b160eadf2441476f414aec1568074.cu | /*
* Copyright 1993-2013 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... |
7834bbe363c3782073d93405432f404a36aa573d.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 "vec_sinpi.cu"
#include<chrono>
#include<iostream>
using namespac... | 7834bbe363c3782073d93405432f404a36aa573d.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 "vec_sinpi.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24}... |
4590db5f6c2a2e74c3a50226a7304a5fae82ce58.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in sour... | 4590db5f6c2a2e74c3a50226a7304a5fae82ce58.cu | /***************************************************************************************************
* Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
b909fbacc2f445911eb98324328d57b463263c27.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright 2019 ETH Zrich, Thomas Schps
//
// 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 copyr... | b909fbacc2f445911eb98324328d57b463263c27.cu | // Copyright 2019 ETH Zürich, Thomas Schöps
//
// 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 list of conditions and the follow... |
7d7c8fd559cc10d4c26c6c1b051ebe412361e2a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define N 64
__global__ void matrixMulGPU( int * a, int * b, int * c )
{
/*
* Build out this kernel.
*/
int val = 0;
int row = blockIdx.x * blockDim.x + threadIdx.x;
int col = blockIdx.y * block... | 7d7c8fd559cc10d4c26c6c1b051ebe412361e2a4.cu | #include <stdio.h>
#define N 64
__global__ void matrixMulGPU( int * a, int * b, int * c )
{
/*
* Build out this kernel.
*/
int val = 0;
int row = blockIdx.x * blockDim.x + threadIdx.x;
int col = blockIdx.y * blockDim.y + threadIdx.y;
if (row < N && col < N)
{
for ( int k = 0; k < N; ++k )
... |
68d587cacad3da5a9c93d39a70d43bbdd3de639b.hip | // !!! This is a file automatically generated by hipify!!!
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "helper_cuda.h"
#include "helper_timer.h"
#include <iostream>... | 68d587cacad3da5a9c93d39a70d43bbdd3de639b.cu | #ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "helper_cuda.h"
#include "helper_timer.h"
#include <iostream>
#include <sys/time.h>
#include "bucketsort.cuh"
#include "... |
07042cf9f424e04f0fed7853b86b9918ca767766.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#define N_samp 8
#define N_col 64
double my_timer()
{
struct timeval time;
double _ret_val_0;
gettimeofday(( & time), 0);
_re... | 07042cf9f424e04f0fed7853b86b9918ca767766.cu | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>
#define N_samp 8
#define N_col 64
double my_timer()
{
struct timeval time;
double _ret_val_0;
gettimeofday(( & time), 0);
_ret_val_0=(time.tv_sec+(time.tv_usec/1000000.0));
return _ret_va... |
dfa34622014e2239cc1522e849cd53d401b6ba26.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef USE_ROCM
#include "dragon/core/context_cuda.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernel {
namespace {
template <typename T, int D>
__global__ void _RowwiseLinSpace(
const int nthreads,... | dfa34622014e2239cc1522e849cd53d401b6ba26.cu | #ifdef USE_CUDA
#include "dragon/core/context_cuda.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernel {
namespace {
template <typename T, int D>
__global__ void _RowwiseLinSpace(
const int nthreads,
const int rows,
const int cols,
const SimpleArray<double, D> start,
con... |
1e265b063d2c22f093d566513ecc95d323ef3d20.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "my_grid.cu"
#include "my_outs.cu"
#include "transfer.cu"
#include <cutil_inline.h>
#include <time.h>
#include <sys/times.h>
#include "my_kernel.cu"
#include "my_analytic.cu"
// #include "memload_kernels... | 1e265b063d2c22f093d566513ecc95d323ef3d20.cu | #include <stdio.h>
#include "my_grid.cu"
#include "my_outs.cu"
#include "transfer.cu"
#include <cutil_inline.h>
#include <time.h>
#include <sys/times.h>
#include "my_kernel.cu"
#include "my_analytic.cu"
// #include "memload_kernels.cu"
/* This is the main function that runs the simulation. It takes the following par... |
cac27025792a97ec8f9f78f1070abeccde9c1d4d.hip | // !!! This is a file automatically generated by hipify!!!
#include <sys/time.h>
#include <stdio.h>
//TODO for writing to file, will be deleted
#include <stdlib.h>
//TODO: could include later
//#include <device_launch_parameters.h>
#include <hip/hip_runtime.h>
//#include "../inc/helper_cuda.h"
// time stamp function ... | cac27025792a97ec8f9f78f1070abeccde9c1d4d.cu | #include <sys/time.h>
#include <stdio.h>
//TODO for writing to file, will be deleted
#include <stdlib.h>
//TODO: could include later
//#include <device_launch_parameters.h>
#include <cuda_runtime.h>
//#include "../inc/helper_cuda.h"
// time stamp function in seconds
double getTimeStamp() {
struct timeval tv ;
getti... |
9b9376e76bc2d8819099f243a21a5eb67463b82d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/********
* This code integrate the functions performing both CBCT and multi-layer FBCT.
* The flag "FBCT" will automatically select the CBCT/FBCT branches.
*/
__global__ void forward_ray_driven_3d_kernel_correction(float *d_f ... | 9b9376e76bc2d8819099f243a21a5eb67463b82d.cu | /********
* This code integrate the functions performing both CBCT and multi-layer FBCT.
* The flag "FBCT" will automatically select the CBCT/FBCT branches.
*/
__global__ void forward_ray_driven_3d_kernel_correction(float *d_f , float *d_proj_correction, float *d_proj_data, float sin_theta, float cos_theta, int co... |
fa12277945fe97a7c2e1201b7b12390aaf0df0cc.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
int main(int argc, char *argv[]) {
int iDev = 0;
hipDeviceProp_t iProp;
hipGetDeviceProperties(&iProp, iDev);
printf("Device %d: %s\n", iDev, iProp.name);
printf("Number of multiprocessors: %d\n", iPro... | fa12277945fe97a7c2e1201b7b12390aaf0df0cc.cu | #include <stdio.h>
#include <cuda_runtime.h>
int main(int argc, char *argv[]) {
int iDev = 0;
cudaDeviceProp iProp;
cudaGetDeviceProperties(&iProp, iDev);
printf("Device %d: %s\n", iDev, iProp.name);
printf("Number of multiprocessors: %d\n", iProp.multiProcessorCount);
printf("Total amount of constant mem... |
e1a0630de4b91b727c7aac2c4807caf7d08321c6.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/SparseLinear.cu"
#else
static bool THNN_(checkInput)(THCTensor* t)
{
return !t->is_empty() && t->_dim() == 2 && t->size[1] == 3;
}
static bool THNN_(checkSize2D)(THCTensor* t, int64_t size0, int64_t... | e1a0630de4b91b727c7aac2c4807caf7d08321c6.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/SparseLinear.cu"
#else
static bool THNN_(checkInput)(THCTensor* t)
{
return !t->is_empty() && t->_dim() == 2 && t->size[1] == 3;
}
static bool THNN_(checkSize2D)(THCTensor* t, int64_t size0, int64_t size1)
{
return !t->is_empty() && t->_dim() == 2 && t->s... |
78125d01c7d25fcf23b4a0900899f14bd420997d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hipfft.h>
#include <hip/hip_runtime.h>
#include <ctime>
#include <hip/hip_runtime.h>
#include <driver_functions.h>
#include "BeatCalculatorParallel.h"
#ifndef LIBINC
#define LIBINC
#include <mpg123.h>
#include <... | 78125d01c7d25fcf23b4a0900899f14bd420997d.cu | #include <stdio.h>
#include <stdlib.h>
#include <cufft.h>
#include <cuda.h>
#include <ctime>
#include <cuda_runtime.h>
#include <driver_functions.h>
#include "BeatCalculatorParallel.h"
#ifndef LIBINC
#define LIBINC
#include <mpg123.h>
#include <kiss_fftr.h>
#endif
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, _... |
faa5f84883af3c954e5ff5bb5a6c496e619c86be.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/operators/arg_ops.h"
#include <limits>
#include <hipcub/hipcub.hpp>
#include <hipcub/hipcub.hpp>
#include "caffe2/core/common_gpu.h"
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
namespace {
template... | faa5f84883af3c954e5ff5bb5a6c496e619c86be.cu | #include "caffe2/operators/arg_ops.h"
#include <limits>
#include <cub/block/block_reduce.cuh>
#include <cub/cub.cuh>
#include "caffe2/core/common_gpu.h"
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
namespace {
template <typename T>
using KeyValuePair = cub::KeyValuePair<TIndex, T>;
template <typename ... |
519bd9928fb1891ba465314afa2288310134cd9b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... | 519bd9928fb1891ba465314afa2288310134cd9b.cu | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* 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 ... |
e8fd369680a42a507fb65c65e28deefe7c2f5356.hip | // !!! This is a file automatically generated by hipify!!!
#include "virtual_memory.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "stdlib.h"
#include "stdio.h"
// extern int pagefault_num;
__device__ void init_invert_page_table(VirtualMemory *vm) {
for (int i = 0; i < 1024; i++) {
... | e8fd369680a42a507fb65c65e28deefe7c2f5356.cu | #include "virtual_memory.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include "stdlib.h"
#include "stdio.h"
// extern int pagefault_num;
__device__ void init_invert_page_table(VirtualMemory *vm) {
for (int i = 0; i < 1024; i++) {
vm->invert_page_table[i] = -1; // invalid := MSB is 1
vm->inver... |
bfe08121305ceab27080494aa8dd67215e4816b4.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <omp.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#ifdef USE_MPI
#include <mpi.h>
#endif
#include "../utils/common.h"
static size_t N = 1000;
static size_t iter = 200;
void init(int *p, size_t size) {
for (size_... | bfe08121305ceab27080494aa8dd67215e4816b4.cu | #include <cstdio>
#include <omp.h>
#include <cuda.h>
#include <cuda_runtime.h>
#ifdef USE_MPI
#include <mpi.h>
#endif
#include "../utils/common.h"
static size_t N = 1000;
static size_t iter = 200;
void init(int *p, size_t size) {
for (size_t i = 0; i < size; ++i) {
p[i] = i;
}
}
void output(int *p, size_... |
f564a6f442d1a0f29d45158eab454d0a9da27153.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include "tiffio.h"
#define THREAD_DIM 20
#define MAX_FILTER_DIM 7
// saves TIFF file from data in `raster`
void sav... | f564a6f442d1a0f29d45158eab454d0a9da27153.cu | #include <cmath>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include "tiffio.h"
#define THREAD_DIM 20
#define MAX_FILTER_DIM 7
// saves TIFF file from data in `raster`
void save_tiff(const char *fname, uint32 *raster, uint32 w, uint32 h) {
TIFF *tif = TIFFOpen... |
ba82e13b716c8d56deabf947e7cebe314e1b735a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***************************************************************************************************
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with... | ba82e13b716c8d56deabf947e7cebe314e1b735a.cu | /***************************************************************************************************
* Copyright (c) 2017-2019, 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 me... |
52703a36826d76f72881c34d7b299dbc6b182c25.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 "RBMCopyFilterKernel.cu"
#include<chrono>
#include<iostream>
usin... | 52703a36826d76f72881c34d7b299dbc6b182c25.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 "RBMCopyFilterKernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,1... |
0a9fd009dc47fad97f73f005debbbc0ff1a4b73d.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... | 0a9fd009dc47fad97f73f005debbbc0ff1a4b73d.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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.