hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
10cc48fa3629eefe114c8a81a0a93ce466c5ec69.hip | // !!! This is a file automatically generated by hipify!!!
#include "cudaSplitEncsegs.h"
#include "cudaFlipFlop.h"
#include "cudaMesh.h"
void splitEncsegs(
Real2D &t_pointlist,
PStatusD &t_PStatus,
IntD &t_trianglelist,
IntD &t_neighborlist,
IntD &t_tri2subseg,
TStatusD &t_TStatus,
IntD &t_segmentlist,
In... | 10cc48fa3629eefe114c8a81a0a93ce466c5ec69.cu | #include "cudaSplitEncsegs.h"
#include "cudaFlipFlop.h"
#include "cudaMesh.h"
void splitEncsegs(
Real2D &t_pointlist,
PStatusD &t_PStatus,
IntD &t_trianglelist,
IntD &t_neighborlist,
IntD &t_tri2subseg,
TStatusD &t_TStatus,
IntD &t_segmentlist,
IntD &t_subseg2tri,
IntD &t_subseg2seg,
IntD &t_encmarke... |
3fa942207f43965f9c9c3bfd9332683e9db35c14.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* 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
*
*... | 3fa942207f43965f9c9c3bfd9332683e9db35c14.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 ... |
3860fcc8bb79f2163a4ccd830b28b192745c2570.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cavs/backend/functor_elementwise.h"
#include "cavs/backend/cuda_common.h"
#include "cavs/backend/op_impl.h"
#include "cavs/midend/tensor.h"
#include "cavs/midend/op_context.h"
#include "cavs/proto/tensor_shape.pb.h"
#inclu... | 3860fcc8bb79f2163a4ccd830b28b192745c2570.cu | #include "cavs/backend/functor_elementwise.h"
#include "cavs/backend/cuda_common.h"
#include "cavs/backend/op_impl.h"
#include "cavs/midend/tensor.h"
#include "cavs/midend/op_context.h"
#include "cavs/proto/tensor_shape.pb.h"
#include "cavs/util/macros_gpu.h"
namespace backend {
using ::midend::OpContext;
using ::mid... |
26fc7aab36c533d379ced734aa5c5a52c92201c9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*author: Shikun Wang*/
#include <stdio.h>
#include "timerc.h"
__global__ void hello(int size, int depth)
{ printf("block: %d thread: %d depth: %d\n",blockIdx.x,threadIdx.x,depth);
if(size==1)
return;
if(threadIdx.x==0&&block... | 26fc7aab36c533d379ced734aa5c5a52c92201c9.cu |
/*author: Shikun Wang*/
#include <stdio.h>
#include "timerc.h"
__global__ void hello(int size, int depth)
{ printf("block: %d thread: %d depth: %d\n",blockIdx.x,threadIdx.x,depth);
if(size==1)
return;
if(threadIdx.x==0&&blockIdx.x==0)
{printf("callling from depth %d\n", depth);
hello<<<2,size/2>>>(size/2,depth+1... |
aaa93a31ae92926824b0149b4e13d81a17d477af.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 "mandelbrot.hip"
#include<chrono>
#include<iostream>
using namesp... | aaa93a31ae92926824b0149b4e13d81a17d477af.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 "mandelbrot.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24... |
c62427b20a184111adba95840b282c85f7a02aa6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "png_util.h"
#define min(X,Y) ((X) < (Y) ? (X) : (Y))
#define max(X,Y) ((X) > (Y) ? (X) : (Y))
#define CUDA_CALL(x) {hipError_t cuda_error__ = (x); if (cuda_error__) ... | c62427b20a184111adba95840b282c85f7a02aa6.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "png_util.h"
#define min(X,Y) ((X) < (Y) ? (X) : (Y))
#define max(X,Y) ((X) > (Y) ? (X) : (Y))
#define CUDA_CALL(x) {cudaError_t cuda_error__ = (x); if (cuda_error__) printf("CUDA error: " #x " returned \"%s\"\n", cudaGetErrorString(cuda_error__));}
#de... |
a1f1e5cec6a7ba7ab7e2a4019ee829c8675c34ce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* reduces.cu
* Ernest Yeung
* ernestyalumni@gmail.com
* Demonstrates reduce with parallel and serial implementations
* with CUDA C/C++ and global memory
*
* */
#include "reduces.h"
// parallel implementations
__global__ vo... | a1f1e5cec6a7ba7ab7e2a4019ee829c8675c34ce.cu | /* reduces.cu
* Ernest Yeung
* ernestyalumni@gmail.com
* Demonstrates reduce with parallel and serial implementations
* with CUDA C/C++ and global memory
*
* */
#include "reduces.h"
// parallel implementations
__global__ void global_reduce_kernel( float * d_in, float * d_out, const int L )
{
int k_x = thread... |
cd4e8c80b3fcd79ba72a8d54c5d89c5c20d084f8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
dsymv_upper.cu is nearly identical to dsymv_uppe... | cd4e8c80b3fcd79ba72a8d54c5d89c5c20d084f8.cu | /*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
dsymv_upper.cu is nearly identical to dsymv_upper.cu, just change names and drop MAGMA_D_CONJ.
dsymv_kernel_U (upper) in ... |
60c1093a6ea36373603634640e59b99442b5ab8d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// https://web.stanford.edu/class/cs277/resources/papers/Moller1997b.pdf
// ideas for further work - precompute all robot mesh norms
#include "MeshParser.h"
#include <chrono>
__device__ float dot(float3 a, float3 b){
return ( a... | 60c1093a6ea36373603634640e59b99442b5ab8d.cu | // https://web.stanford.edu/class/cs277/resources/papers/Moller1997b.pdf
// ideas for further work - precompute all robot mesh norms
#include "MeshParser.h"
#include <chrono>
__device__ float dot(float3 a, float3 b){
return ( a.x * b.x
+a.y * b.y
+a.z * b.z);
}
__device__ float3 vecMinus(... |
90e77e1f3b220384001a5bc601aaa7b7a6888819.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include "star2d1r-512-16-256_kernel.hu"
#define BENCH_DIM 2
#define BENCH_FPP 9
#define BENCH_RAD 1
#include "common.h"
double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool sc... | 90e77e1f3b220384001a5bc601aaa7b7a6888819.cu | #include <assert.h>
#include <stdio.h>
#include "star2d1r-512-16-256_kernel.hu"
#define BENCH_DIM 2
#define BENCH_FPP 9
#define BENCH_RAD 1
#include "common.h"
double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool scop)
{
double start_time = sb_time(), end_time = 0.0;
int dimsize = compsize + BENCH_... |
00172895edced511de4b3d25ba303bc22e16aa34.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hip_runtime.h"
// statistical kernel
__global__ void prepare(hipLaunchParm lp, long d_Ne,
fp *d_I, // pointer to output image (DEVICE GLOBAL MEMORY)
fp *d_sums, // pointer to input im... | 00172895edced511de4b3d25ba303bc22e16aa34.cu | #include "hip_runtime.h"
// statistical kernel
__global__ void prepare(hipLaunchParm lp, long d_Ne,
fp *d_I, // pointer to output image (DEVICE GLOBAL MEMORY)
fp *d_sums, // pointer to input image (DEVICE GLOBAL MEMORY)
fp *d_sums2){
// indexes
int bx = hipBlockIdx_x... |
aae10e804b6309ef01a6506c261f17c0da8be383.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../ops.cuh"
template <typename T>
__global__ void scatter(const int num_nodes, const int feat_dim,
const T *features, const int *pointers,
const int *indices, T *__restrict_... | aae10e804b6309ef01a6506c261f17c0da8be383.cu | #include "../ops.cuh"
template <typename T>
__global__ void scatter(const int num_nodes, const int feat_dim,
const T *features, const int *pointers,
const int *indices, T *__restrict__ next_layer) {
int node_id = blockDim.y * blockIdx.x + threadIdx.y;
int feat_id = t... |
216919e7acfc9fb4a77e8b1f99617ca23cf7ec81.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from sparse/blas/zbajac_csr_overlap.cu, normal z... | 216919e7acfc9fb4a77e8b1f99617ca23cf7ec81.cu | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from sparse/blas/zbajac_csr_overlap.cu, normal z -> d, Mon Jun 25 18:24:27 2018
*/
#include "magmasparse_internal.h"
#define PRECISION... |
c34777340a44a13e2b297d7a567b125e8a25d355.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zmgeelltmv.cu normal z -> c, Tue Sep ... | c34777340a44a13e2b297d7a567b125e8a25d355.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zmgeelltmv.cu normal z -> c, Tue Sep 2 12:38:33 2014
*/
#include "common_magma.h"
#if (GPUSHMEM < 200)
#define BLOCK_SI... |
7d1053132fc2e381a577a622dab6a715b68be6d1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
__global__ void cuAdd(int n, float *a, float *b, float *result)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i<n)
{
result[i] = a[i] + b[i];
}
}
extern "C"
__global__ void cuMult(int n, f... | 7d1053132fc2e381a577a622dab6a715b68be6d1.cu | extern "C"
__global__ void cuAdd(int n, float *a, float *b, float *result)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i<n)
{
result[i] = a[i] + b[i];
}
}
extern "C"
__global__ void cuMult(int n, float *a, float *b, float *result)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
... |
66a7f1d9c2b459f0399b150c65b4c00d0007feac.hip | // !!! This is a file automatically generated by hipify!!!
/*
Matrix Multiplication w/GPU (cuda)
Vctor Rendn Surez
A01022462
*/
#include <hip/hip_runtime.h>
#include <chrono>
#include "common.h"
using namespace std;
#define SIZE 4000
void initialize_matrix(int *matrix, int n)
{
for (int i = 0; i < n * n; i++)... | 66a7f1d9c2b459f0399b150c65b4c00d0007feac.cu | /*
Matrix Multiplication w/GPU (cuda)
Víctor Rendón Suárez
A01022462
*/
#include <cuda_runtime.h>
#include <chrono>
#include "common.h"
using namespace std;
#define SIZE 4000
void initialize_matrix(int *matrix, int n)
{
for (int i = 0; i < n * n; i++)
matrix[i] = i;
}
__global__ void multiply_matrix_cuda... |
ba395602e1bc34ef1f3a3210ec159fc7ab124c68.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@generated from ziteric.cu normal z -> s, Fri Sep 11 1... | ba395602e1bc34ef1f3a3210ec159fc7ab124c68.cu | /*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@generated from ziteric.cu normal z -> s, Fri Sep 11 18:29:42 2015
*/
#include "common_magmasparse.h"
#define PRECISION_s
__global__ void ... |
d187dfb486d28285fd6d16585c91c100d4986e03.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: mphoward
/*! \file LoadBalancerGPU.cu
\brief Impleme... | d187dfb486d28285fd6d16585c91c100d4986e03.cu | // Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: mphoward
/*! \file LoadBalancerGPU.cu
\brief Implementation the GPU functions for load balancing
*/
#ifdef ENABLE_MPI
#include "LoadBalanc... |
a5ec48dda333e300c971bf5258d32afa56def808.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Universit Pierre et Marie Curie
* Calcul de transport de neutrons
* Version squentielle
*/
#include <hip/hip_runtime.h>
#include "neutron.h"
#include <utility>
#include <chrono>
#include <iostream>
#include "neutron_cuda_kernel.h"
using namespace ... | a5ec48dda333e300c971bf5258d32afa56def808.cu | /*
* Université Pierre et Marie Curie
* Calcul de transport de neutrons
* Version séquentielle
*/
#include <cuda.h>
#include "neutron.h"
#include <utility>
#include <chrono>
#include <iostream>
#include "neutron_cuda_kernel.h"
using namespace std::chrono;
/**
* Retourne le quotient entier superieur ou egal a... |
8de4765213dbf489739cd4f62c835ab546345fdb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this sou... | 8de4765213dbf489739cd4f62c835ab546345fdb.cu | /*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
908269a67af6779bc5445a54fa9de2e94def8350.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void RadixHistogram_device( int *dptrHistogram, const int *in, size_t N, int shift, int mask )
{
for ( int i = blockIdx.x*blockDim.x+threadIdx.x;
i < N;
i += blockDim.x*gridDim.x ) {
int index = (in[... | 908269a67af6779bc5445a54fa9de2e94def8350.cu | #include "includes.h"
__global__ void RadixHistogram_device( int *dptrHistogram, const int *in, size_t N, int shift, int mask )
{
for ( int i = blockIdx.x*blockDim.x+threadIdx.x;
i < N;
i += blockDim.x*gridDim.x ) {
int index = (in[i] & mask) >> shift;
atomicAdd( dptrHistogram+index, 1 );
}
#if 0
const int cBuckets = 1... |
f7bbaae56b33c3d79f64adb370840dd9af481711.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Samson Wang. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHAtomics.cuh>
#include <THH/THHDeviceUtils.cuh>
// For small input computation
templat... | f7bbaae56b33c3d79f64adb370840dd9af481711.cu | // Copyright (c) Samson Wang. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
// For small input computation
template <typename T, int FixedKernelSize>
__global__ void DepthWiseConv2dSmallFForward(const... |
c076bd1be83fcbef930856c48dc5f797909e9ae0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ------------------------------------------------------------------
// Project: Mask R-CNN
// File: ROIAlignLayer
// Adopted from roi_pooling_layer.cu (written by Ross Grischik)
// Author: Jasjeet Dhaliwal
// --------------------... | c076bd1be83fcbef930856c48dc5f797909e9ae0.cu | // ------------------------------------------------------------------
// Project: Mask R-CNN
// File: ROIAlignLayer
// Adopted from roi_pooling_layer.cu (written by Ross Grischik)
// Author: Jasjeet Dhaliwal
// ------------------------------------------------------------------
#include <cfloat>
#include <iostream>
#i... |
901e34769b6ba70ba555ca5e9c791b1dcacf0d1a.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... | 901e34769b6ba70ba555ca5e9c791b1dcacf0d1a.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... |
38e8648869fef8ec23e95e86471fd0ec88adc2d9.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, ... | 38e8648869fef8ec23e95e86471fd0ec88adc2d9.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
... |
1d8ea1514c538c64d4a604f408f6fc51f8b7072b.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <iomanip>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include "hip/hip_runtime.h"
using namespace std;
#define TPB 1024
#define min(a,b) ((a < b) ? a : b)
__global__
void scat_part_sum(double * array, ... | 1d8ea1514c538c64d4a604f408f6fc51f8b7072b.cu | #include <iostream>
#include <iomanip>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include "cuda_runtime.h"
using namespace std;
#define TPB 1024
#define min(a,b) ((a < b) ? a : b)
__global__
void scat_part_sum(double * array, double * array_psums) {
// Distributes the values fro... |
777f29daba576d5cdf8ded1bca5477f762e0cc13.hip | // !!! This is a file automatically generated by hipify!!!
#include <primitiv/config.h>
#include <primitiv/devices/cuda/device.h>
#include <primitiv/devices/cuda/ops/common.h>
#include <primitiv/internal/cuda/utils.h>
namespace primitiv {
namespace devices {
void CUDA::random_normal_impl(float mean, float sd, Tensor... | 777f29daba576d5cdf8ded1bca5477f762e0cc13.cu | #include <primitiv/config.h>
#include <primitiv/devices/cuda/device.h>
#include <primitiv/devices/cuda/ops/common.h>
#include <primitiv/internal/cuda/utils.h>
namespace primitiv {
namespace devices {
void CUDA::random_normal_impl(float mean, float sd, Tensor &y) {
CUDA_CALL(::cudaSetDevice(dev_id_));
CURAND_CALL... |
1fb197bf408b4392de11c8de8ce73fa1768abd21.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/////////////////////////////////////////////////////////////////////////////
/// Copyright 2020 Google LLC
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance w... | 1fb197bf408b4392de11c8de8ce73fa1768abd21.cu | /////////////////////////////////////////////////////////////////////////////
/// Copyright 2020 Google LLC
///
/// 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
///
/// https://www.apac... |
b70785ffb107c91fd0ecbdf2249b9220d740e7b1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cassert>
#include <cstdio>
#include <cfloat>
#include <cinttypes>
#include <algorithm>
#include <memory>
#include <hiprand/hiprand_kernel.h>
#include "private.h"
#include "metric_abstraction.h"
#include "tricks.cuh"
#de... | b70785ffb107c91fd0ecbdf2249b9220d740e7b1.cu | #include <cassert>
#include <cstdio>
#include <cfloat>
#include <cinttypes>
#include <algorithm>
#include <memory>
#include <curand_kernel.h>
#include "private.h"
#include "metric_abstraction.h"
#include "tricks.cuh"
#define BS_KMPP 1024
#define BS_AFKMC2_Q 512
#define BS_AFKMC2_R 512
#define BS_AFKMC2_MDT 512
#defi... |
1e7ea52f86b6f1393531973949c34c6ec231b691.hip | // !!! This is a file automatically generated by hipify!!!
/**
* gesummv.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
... | 1e7ea52f86b6f1393531973949c34c6ec231b691.cu | /**
* gesummv.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <unistd.h>
#include <stdio.h>
#include <time.h... |
9c3db743327a0fda1819a88c052bf58a29777393.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "mj-draw.h"
#include <jetson-utils/cudaFont.h>
extern int blink_state;
imu_info_t imu_data;
tele_cam_info_t cam_data;
stream_info_t stream_data;
g_distance_info_t g_distance_data;
osd_ctl_info_t osd_c... | 9c3db743327a0fda1819a88c052bf58a29777393.cu | #include "mj-draw.h"
#include <jetson-utils/cudaFont.h>
extern int blink_state;
imu_info_t imu_data;
tele_cam_info_t cam_data;
stream_info_t stream_data;
g_distance_info_t g_distance_data;
osd_ctl_info_t osd_ctl_switch;
std::string temp_str_c;
int min_of_them(int a, int b){
return a < ... |
3da3e812486f190ce7b44aab04a710c07b81d4a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "kernel.hip"
#include <time.h>
#include "cuda_mpz.h"
int main (int argc, char *argv[]) {
///////input control
if (argc < 2){
exit(EXIT_FAILURE);
}
long x = ... | 3da3e812486f190ce7b44aab04a710c07b81d4a4.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "kernel.cu"
#include <time.h>
#include "cuda_mpz.h"
int main (int argc, char *argv[]) {
///////input control
if (argc < 2){
exit(EXIT_FAILURE);
}
long x = strtol(argv[2], NULL, 10);
long long unsigned pairs = x;
unsigned thread_num = 2;
long... |
455410bb50cf8ad5a92d4eca614c88309ddf9628.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<iostream>
#include<stdio.h>
#include<helper_cuda.h>
using namespace std;
//kernel
__device__ int g_uids = 0;
__device__ void
print_info(int depth, int thread, int uid, int parent_uid){
// 0 DP
if(threadIdx.x == 0){
... | 455410bb50cf8ad5a92d4eca614c88309ddf9628.cu | #include<iostream>
#include<stdio.h>
#include<helper_cuda.h>
using namespace std;
//所有kernel都能访问到
__device__ int g_uids = 0;
__device__ void
print_info(int depth, int thread, int uid, int parent_uid){
// 第0号线程 发起DP
if(threadIdx.x == 0){
if(depth == 0)
printf("BLOCK %d launched by the host\n",uid);
... |
e765234d855d95a66cdff31e46bbfde8d84c2823.hip | // !!! This is a file automatically generated by hipify!!!
#include "cuda_defines.h"
#include "cuda_stuff.h"
#include "../zTileSize.h"
static size_t sxsy=0;
void CUDA_Initialize(const int sx, const int sy, const int sz, const int bord,
float dx, float dy, float dz, float dt,
float * restrict ch1dxx, f... | e765234d855d95a66cdff31e46bbfde8d84c2823.cu | #include "cuda_defines.h"
#include "cuda_stuff.h"
#include "../zTileSize.h"
static size_t sxsy=0;
void CUDA_Initialize(const int sx, const int sy, const int sz, const int bord,
float dx, float dy, float dz, float dt,
float * restrict ch1dxx, float * restrict ch1dyy, float * restrict ch1dzz,
f... |
c90427d1d19417de9c1be67e529eab11fbee0aa2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*********************************************************************
*** ***
*** Source code generated by kernel2cu.pl ***
*** ... | c90427d1d19417de9c1be67e529eab11fbee0aa2.cu |
/*********************************************************************
*** ***
*** Source code generated by kernel2cu.pl ***
*** ***
*** Please do not edit ... |
92c4b1148f98f131d14f591425c995981bafb22d.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <ATen/AccumulateType.h>
#include <ATe... | 92c4b1148f98f131d14f591425c995981bafb22d.cu | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <ATen/AccumulateType.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/Exceptions.h>
#in... |
79e7af324c096ec0559c1fd591a42ec589fcbe3c.hip | // !!! This is a file automatically generated by hipify!!!
#include "monolithic.h"
long int SH_MEM_SZ;
// prints error number and exits if error is detected
void cu_error_check(hipError_t error) {
if (error) {
printf("Error #%d occured. Exiting. \n", error);
exit(error);
}
}
// stringfy the... | 79e7af324c096ec0559c1fd591a42ec589fcbe3c.cu | #include "monolithic.h"
long int SH_MEM_SZ;
// prints error number and exits if error is detected
void cu_error_check(CUresult error) {
if (error) {
printf("Error #%d occured. Exiting. \n", error);
exit(error);
}
}
// stringfy the dim3 value
string str_dim3(int *dim_3) {
string first =... |
365e3e10d014eaae4c8d346a74d844914d1bef7e.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... | 365e3e10d014eaae4c8d346a74d844914d1bef7e.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 ... |
65b7682130e2d55a0a15e2bf35e67ffaf6d411e2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// This file is modified from https://github.com/pytorch/pytorch/blob/master/modules/detectron/sigmoid_focal_loss_op.cu
// Cheng-Yang Fu
// cyfu@cs.unc.edu
#i... | 65b7682130e2d55a0a15e2bf35e67ffaf6d411e2.cu | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// This file is modified from https://github.com/pytorch/pytorch/blob/master/modules/detectron/sigmoid_focal_loss_op.cu
// Cheng-Yang Fu
// cyfu@cs.unc.edu
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <... |
ceaa6328b0c600a6846555adcd938912927944cc.hip | // !!! This is a file automatically generated by hipify!!!
// ----------------------------------------------------------------
// Gunrock -- Fast and Efficient GPU Graph Library
// ----------------------------------------------------------------
// This source code is distributed under the terms of LICENSE.TXT
// in th... | ceaa6328b0c600a6846555adcd938912927944cc.cu | // ----------------------------------------------------------------
// Gunrock -- Fast and Efficient GPU Graph Library
// ----------------------------------------------------------------
// This source code is distributed under the terms of LICENSE.TXT
// in the root directory of this source distribution.
// ----------... |
sumArrayOnGPU-time.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <sys/time.h>
void initialData(float* ip, int size){
time_t t;
srand((unsigned int)time(&t));
for(int i = 0; i<size; i++){
ip[i] = (float)(rand() & 0xFF)/10.0f;
}
}
void checkResult(float *ho... | sumArrayOnGPU-time.cu | #include <cuda_runtime.h>
#include <stdio.h>
#include <sys/time.h>
void initialData(float* ip, int size){
time_t t;
srand((unsigned int)time(&t));
for(int i = 0; i<size; i++){
ip[i] = (float)(rand() & 0xFF)/10.0f;
}
}
void checkResult(float *hostRef, float *gpuRef, const int N){
double epsilon = 1.0E-8;... |
9f3d24768d0181dd2d1095f22f001f2f9a35b8c8.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstring>
#include <stdexcept>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <vector>
#include "utils.h"
#include "cuda_error_check.cuh"
#include "initial_graph.hpp"
#include "parse_graph.hpp"
#include "opt.cu"
#include "impl2.cu... | 9f3d24768d0181dd2d1095f22f001f2f9a35b8c8.cu | #include <cstring>
#include <stdexcept>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <vector>
#include "utils.h"
#include "cuda_error_check.cuh"
#include "initial_graph.hpp"
#include "parse_graph.hpp"
#include "opt.cu"
#include "impl2.cu"
#include "impl1.cu"
#define SSSP_INF 1073741824
enum cl... |
23f11ac1f80b3f68e379d35af81e074b915566ce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
/*
* Host function to initialize vector elements. This function
* simply initializes each element to equal its index in the
* vector.
*/
__global__
void initWith(float num, float *a, int N)
{
int idx = bl... | 23f11ac1f80b3f68e379d35af81e074b915566ce.cu | #include <stdio.h>
/*
* Host function to initialize vector elements. This function
* simply initializes each element to equal its index in the
* vector.
*/
__global__
void initWith(float num, float *a, int N)
{
int idx = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDim.x * gridDim.x;
for( int i... |
53e3288fa3d11292d9121154fc06fea8f0886069.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* serveral useful gpu functions will be defined in this file to facilitate
* the surface redistance scheme
****************************************... | 53e3288fa3d11292d9121154fc06fea8f0886069.cu | /*******************************************************************************
* serveral useful gpu functions will be defined in this file to facilitate
* the surface redistance scheme
******************************************************************************/
typedef struct
{
double sR;
double sL;
} doub... |
ab38b13907503a4e09a36b9953f5bfdc343dfd2d.hip | // !!! This is a file automatically generated by hipify!!!
// moveArrays.cu
// ref: http://www.drdobbs.com/parallel/cuda-supercomputing-for-the-masses-part/207200659?pgno=2
// demonstrates CUDA interface to data allocation on device (GPU)
// and data movement between host (CPU) and device.
#include <stdio.h>
#include... | ab38b13907503a4e09a36b9953f5bfdc343dfd2d.cu | // moveArrays.cu
// ref: http://www.drdobbs.com/parallel/cuda-supercomputing-for-the-masses-part/207200659?pgno=2
// demonstrates CUDA interface to data allocation on device (GPU)
// and data movement between host (CPU) and device.
#include <stdio.h>
#include <assert.h>
#include <cuda.h>
int main(void)
{
float *a_... |
c41a9509e7a28bc821154d44aedb7935fbb8fccb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<bits/stdc++.h>
using namespace std;
#define BLOCK_SIZE 256
__global__ void pegasos_per_thread(int num_samples, int num_features, double * W, double * X, double * Y, double lambda, int num_iters, double * random_arr, int k... | c41a9509e7a28bc821154d44aedb7935fbb8fccb.cu | #include<bits/stdc++.h>
using namespace std;
#define BLOCK_SIZE 256
__global__ void pegasos_per_thread(int num_samples, int num_features, double * W, double * X, double * Y, double lambda, int num_iters, double * random_arr, int k) {
int index = blockIdx.x * blockDim.x + threadIdx.x;
int n_samples_per_thread ... |
28c2b4aeb0d3117e50ef7e66a5afb3237f0e459a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Ben Bennett
// CIS 531
// CUDA version of the flocking algorithm
#include <iostream>
#include <math.h>
#include <chrono>
#include <thread>
#include <string.h>
#include<X11/Xlib.h>
#include<X11/XKBlib.h>
#include<GL/glx.h>
#includ... | 28c2b4aeb0d3117e50ef7e66a5afb3237f0e459a.cu | // Ben Bennett
// CIS 531
// CUDA version of the flocking algorithm
#include <iostream>
#include <math.h>
#include <chrono>
#include <thread>
#include <string.h>
#include<X11/Xlib.h>
#include<X11/XKBlib.h>
#include<GL/glx.h>
#include<GL/glu.h>
#include "Vector2.cuh"
#include "../common/WindowManager.h"
XWindowAttribut... |
70f8fb7004e039d0ed39da4278f452ec5fe3ac5c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "luaT.h"
#include "THH/THH.h"
#include "arithmetic.h"
/*
__global__ void batch_crop_kernel(float* input,
const int nCropRows, const int nCropCols,
const ... | 70f8fb7004e039d0ed39da4278f452ec5fe3ac5c.cu | #include "luaT.h"
#include "THC/THC.h"
#include "arithmetic.h"
/*
__global__ void batch_crop_kernel(float* input,
const int nCropRows, const int nCropCols,
const int iH, const int iW,
const int nPlanes){
con... |
96a0891aa0ac56e054647766c509b589c36f15f5.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
... | 96a0891aa0ac56e054647766c509b589c36f15f5.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 ... |
843a31f8ff0a4a0d0ee74a8f7aa7b494092c4da8.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 "rotate.cu"
#include<chrono>
#include<iostream>
using namespace s... | 843a31f8ff0a4a0d0ee74a8f7aa7b494092c4da8.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 "rotate.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{3... |
9d2c8a82310d13539e07d738bfa269f65c1503d5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "li... | 9d2c8a82310d13539e07d738bfa269f65c1503d5.cu | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "libraries/criterion/cuda/ViterbiPath.cuh"
#include <cmath>
#include <cub/cub.cuh>
#incl... |
cd040a1714100ba234a14304699887b0a0d5d28f.hip | // !!! This is a file automatically generated by hipify!!!
// https://github.com/vchizhov/smallpt-explained/blob/master/smallpt_explained.cpp
// problem: stack overflow on gpu, too many recursion calls
// solution: make radiance function iterative: have a queue where u expand rays (bcs we have reflection+refraction), ... | cd040a1714100ba234a14304699887b0a0d5d28f.cu | // https://github.com/vchizhov/smallpt-explained/blob/master/smallpt_explained.cpp
// problem: stack overflow on gpu, too many recursion calls
// solution: make radiance function iterative: have a queue where u expand rays (bcs we have reflection+refraction), have it with hardcoded limit
// what is implemented: iterat... |
235757ecb1e71d3c89a81c0e65a40fe34b44030c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 235757ecb1e71d3c89a81c0e65a40fe34b44030c.cu | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
d99ca6f9ceec3b5cff7a22ca2fc9e76c472f9ac4.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "device_launch_parameters.h"
#include "runtime/device.hpp"
#include "runtime/error.hpp"
#include "runtime/event.hpp"
#include "runtime/kernel.cu"
#include "runtime/memory.hpp"
#include "runtime/version.hpp"
#include "timer... | d99ca6f9ceec3b5cff7a22ca2fc9e76c472f9ac4.cu |
#include <cuda_runtime.h>
#include "device_launch_parameters.h"
#include "runtime/device.hpp"
#include "runtime/error.hpp"
#include "runtime/event.hpp"
#include "runtime/kernel.cu"
#include "runtime/memory.hpp"
#include "runtime/version.hpp"
#include "timer.hpp"
#include <iostream>
#include <functional>
#include <thre... |
0724a646e944aeb5315df64fb26b61b6ca4f1a84.hip | // !!! This is a file automatically generated by hipify!!!
/*
Implements the sequential cuda vectors.
*/
#define PETSC_SKIP_SPINLOCK
#define PETSC_SKIP_CXX_COMPLEX_FIX
#include <petscconf.h>
#include <petsc/private/vecimpl.h>
#include <../src/vec/vec/impls/dvecimpl.h>
#include <petsc/private/cudavecimpl.h>
#inclu... | 0724a646e944aeb5315df64fb26b61b6ca4f1a84.cu | /*
Implements the sequential cuda vectors.
*/
#define PETSC_SKIP_SPINLOCK
#define PETSC_SKIP_CXX_COMPLEX_FIX
#include <petscconf.h>
#include <petsc/private/vecimpl.h>
#include <../src/vec/vec/impls/dvecimpl.h>
#include <petsc/private/cudavecimpl.h>
#include <cuda_runtime.h>
#include <thrust/device_ptr.h>
#include... |
b7f8ec47e5b3700d33d83299b945bab407219882.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <hipfft.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define dim 3
#define TPBx 16 // TPBx * TPBy = number of threads per block
#define TPBy 8
#define TPBz 8
__glob... | b7f8ec47e5b3700d33d83299b945bab407219882.cu | #include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cufft.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define dim 3
#define TPBx 16 // TPBx * TPBy = number of threads per block
#define TPBy 8
#define TPBz 8
__global__ void real2complex(cufftDoubleComplex *c, double *a, int n)... |
effe14a571468e61121f493c3f43a2823f535648.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void leapstep(unsigned long n, double *x, double *y, double *z, double *vx, double *vy, double *vz, double dt) {
const unsigned long serial = blockIdx.x * blockDim.x + threadIdx.x;
if (serial < n){
x... | effe14a571468e61121f493c3f43a2823f535648.cu | #include "includes.h"
__global__ void leapstep(unsigned long n, double *x, double *y, double *z, double *vx, double *vy, double *vz, double dt) {
const unsigned long serial = blockIdx.x * blockDim.x + threadIdx.x;
if (serial < n){
x[serial] += dt * vx[serial];
y[serial] += dt * vy[serial];
z[serial] += dt * vz[serial];... |
14baf3352454c3a2bf8a1340e193a1715f6aa8dd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
__global__ void vecadd(float *a, float *b, float *c, int n)
{
int i= threadIdx.x + blockDim.x*blockIdx.x;
if(i<n)
c[i] = a[i]+b[i];
}
int main(){
int n;
scanf("%d",&n);
int a[n],b[n];
for(int i=0; i<n; i... | 14baf3352454c3a2bf8a1340e193a1715f6aa8dd.cu | #include<stdio.h>
__global__ void vecadd(float *a, float *b, float *c, int n)
{
int i= threadIdx.x + blockDim.x*blockIdx.x;
if(i<n)
c[i] = a[i]+b[i];
}
int main(){
int n;
scanf("%d",&n);
int a[n],b[n];
for(int i=0; i<n; i++)
scanf("%d",&a[i]);
for(int i=0;i<n; i++)
scanf("%d",&b[i]);
int c[n];
float *... |
d8173d8bf3ad0759ad9a29eb1c82a71fcb50e259.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <helper_cuda.h>
__global__ void kernel() {
int i;
i = blockIdx.x * blockDim.x + threadIdx.x;
printf("Hello world! Im thread %i out of %i . My Global thread id is %i out of %i \n", threadIdx.x, blo... | d8173d8bf3ad0759ad9a29eb1c82a71fcb50e259.cu | #include <stdio.h>
#include <helper_cuda.h>
__global__ void kernel() {
int i;
i = blockIdx.x * blockDim.x + threadIdx.x;
printf("Hello world! Im thread %i out of %i . My Global thread id is %i out of %i \n", threadIdx.x, blockIdx.x, i, gridDim.x*blockDim.x );
};
int main(int argc, char **argv)
{
const int de... |
819fec602e8f349dfabbbb95e277059e21121c1f.hip | // !!! This is a file automatically generated by hipify!!!
/*
* BSD 2-Clause License
*
* Copyright (c) 2020, Alessandro Capotondi
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * ... | 819fec602e8f349dfabbbb95e277059e21121c1f.cu | /*
* BSD 2-Clause License
*
* Copyright (c) 2020, Alessandro Capotondi
* 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 copyri... |
0cd6597b2dbd71689db93c98e7aadc1804e461a3.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 "CorrelateDataBackward0Subtract_1d.cu"
#include<chrono>
#include<... | 0cd6597b2dbd71689db93c98e7aadc1804e461a3.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 "CorrelateDataBackward0Subtract_1d.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] ... |
e18b026b0e50856457228325af57450f3e846b5d.hip | // !!! This is a file automatically generated by hipify!!!
/*!
Count triangles using the per-edge linear search.
Use one thread for each triangle counter through OpenMP.
*/
#include <fmt/format.h>
#include <iostream>
#include <roctracer/roctx.h>
#include <omp.h>
#include <sys/types.h>
#include <unistd.h>
#include ... | e18b026b0e50856457228325af57450f3e846b5d.cu | /*!
Count triangles using the per-edge linear search.
Use one thread for each triangle counter through OpenMP.
*/
#include <fmt/format.h>
#include <iostream>
#include <nvToolsExt.h>
#include <omp.h>
#include <sys/types.h>
#include <unistd.h>
#include "clara/clara.hpp"
#include "pangolin/algorithm/tc_edge_linear.c... |
93592fa5e5688a0d2a52bd6028d24707dfe61207.hip | // !!! This is a file automatically generated by hipify!!!
#include "gpu_func.h"
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <iostream>
#include "rocblas.h"
#define BLOCK_SIZE 32
#define NUM_THREADS 256
#define MAX_NUM_BLOCK 65535
__global__
void device_add_one(int* d_... | 93592fa5e5688a0d2a52bd6028d24707dfe61207.cu | #include "gpu_func.h"
#include <cuda_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <iostream>
#include "cublas_v2.h"
#define BLOCK_SIZE 32
#define NUM_THREADS 256
#define MAX_NUM_BLOCK 65535
__global__
void device_add_one(int* d_result, int t) {
*d_result = t + 1;
}
/*
Just a dummy f... |
32cd671c3d3c5182c62fcad1baf46b03b077a4c5.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby grante... | 32cd671c3d3c5182c62fcad1baf46b03b077a4c5.cu | /*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
001c9ec91a21fd255308d22e2fbb911ac56a1876.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
// #pragma once
using namespace std;
#define NUM_THREADS_PER_BLOCK 512
int* create_shifts (char* pattern);
int linear_horspool_match (char* text, char* pattern, int* shift_table, unsigned int* num_matches... | 001c9ec91a21fd255308d22e2fbb911ac56a1876.cu | #include "includes.h"
// #pragma once
using namespace std;
#define NUM_THREADS_PER_BLOCK 512
int* create_shifts (char* pattern);
int linear_horspool_match (char* text, char* pattern, int* shift_table, unsigned int* num_matches, int chunk_size,
int num_chunks, int text_size, int pat_len, int myId);
/*
* Driver ... |
eea09318c0bcb664d6e88f7c4a8cddedb326258a.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include "hip/hip_runtime.h"
#include "hip/device_functions.h"
#include "device_launch_parameters.h"
#include <fstream>
#include <assert.h>
#include <cmath>
#include <vector>
#include "rocblas.h"
#include <thrust/sort.h>
#include <thrust/dev... | eea09318c0bcb664d6e88f7c4a8cddedb326258a.cu | #include <iostream>
#include "cuda_runtime.h"
#include "device_functions.h"
#include "device_launch_parameters.h"
#include <fstream>
#include <assert.h>
#include <cmath>
#include <vector>
#include "cublas_v2.h"
#include <thrust/sort.h>
#include <thrust/device_vector.h>
#include <thrust/copy.h>
#include <utility>
#inclu... |
583e9b2095b99161aa76f5372c434acfdd96ee33.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <time.h>
#define TIMER_CREATE(t) \
hipEvent_t t##_start, t##_end; \
hipEventCreate(&t##_start); \
hipEventCreate(&t##_end);
#define ... | 583e9b2095b99161aa76f5372c434acfdd96ee33.cu |
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <time.h>
#define TIMER_CREATE(t) \
cudaEvent_t t##_start, t##_end; \
cudaEventCreate(&t##_start); \
cudaEventCreate(&t##_end);
#define TIMER_START(t) \
cudaEventRecord(t##_start); ... |
c603a5f82487978b34a0d2fe36d24a939a50a0d7.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
using namespace std;
__global__ void AddIntsCUDA (int *a, int *b)
{
a[0]+=b[0];
}
int main()
{
int a = 5, b = 9;
int *d_a, *d_b ;
hipMalloc(&d_a,sizeof(int));
hipMalloc(&d_b,sizeof(int));
hipMemcp... | c603a5f82487978b34a0d2fe36d24a939a50a0d7.cu | #include <iostream>
#include <cuda.h>
using namespace std;
__global__ void AddIntsCUDA (int *a, int *b)
{
a[0]+=b[0];
}
int main()
{
int a = 5, b = 9;
int *d_a, *d_b ;
cudaMalloc(&d_a,sizeof(int));
cudaMalloc(&d_b,sizeof(int));
cudaMemcpy(d_a,&a,sizeof(int),cudaMemcpyHostToDevice);
cudaMemcpy(d_b,&b,s... |
05643e098ba45ae216ea0c7e251d746142047fb1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zherk_fermi_batched_k32.cu normal z -> s... | 05643e098ba45ae216ea0c7e251d746142047fb1.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zherk_fermi_batched_k32.cu normal z -> s, Fri Jan 30 19:00:10 2015
@author Jakub Kurzak
@author Stan Tomov
... |
bdc9bddffb7203107ff8ecad6b62b28286374ba6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Copyright (c) 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 met:
// * Redi... | bdc9bddffb7203107ff8ecad6b62b28286374ba6.cu | //
// Copyright (c) 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 met:
// * Redistributions of source code must retain the above copyright
// notice, this list of co... |
ce672462aed10f81afe88d43162d63f713494016.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* AnglePotential.cu
*
* Created on: Aug 4, 2010
* Author: zhmurov
*/
#include "../Core/global.h"
#include "../Core/md.cuh"
#include "../Util/Log.h"
#include "AnglePotential.cuh"
namespace angle_potential {
class Log... | ce672462aed10f81afe88d43162d63f713494016.cu | /*
* AnglePotential.cu
*
* Created on: Aug 4, 2010
* Author: zhmurov
*/
#include "../Core/global.h"
#include "../Core/md.cuh"
#include "../Util/Log.h"
#include "AnglePotential.cuh"
namespace angle_potential {
class Log: public ILog {
virtual void Write(const char* message) const {
std::cout << makeTime... |
1d17ea769f5952c7c8429c8e92eca0203ae17b25.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/execution_policy.h>
#include <thrust/reduce.h>
#include <thrust/sequence.h>
#include <xgboost/tree_updater.h>
#include <algorithm>
#include <memory>
#include <queue>
#i... | 1d17ea769f5952c7c8429c8e92eca0203ae17b25.cu | /*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/execution_policy.h>
#include <thrust/reduce.h>
#include <thrust/sequence.h>
#include <xgboost/tree_updater.h>
#include <algorithm>
#include <memory>
#include <queue>
#include <utility>
#include <vector>
#include "../common/compressed_iterator.h"
#include "... |
4f3d6a9bb6c988606cfdc0ee5e1a4f13358823ac.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "pointwise_scores.cuh"
#include "score_calcers.cuh"
#include "split_properties_helpers.cuh"
#include <catboost/cuda/cuda_util/kernel/instructions.cuh>
#include <catboost/cuda/cuda_util/kernel/random_gen.cuh>
#include <catb... | 4f3d6a9bb6c988606cfdc0ee5e1a4f13358823ac.cu | #include "pointwise_scores.cuh"
#include "score_calcers.cuh"
#include "split_properties_helpers.cuh"
#include <catboost/cuda/cuda_util/kernel/instructions.cuh>
#include <catboost/cuda/cuda_util/kernel/random_gen.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh>
#include <cmath>
#include <exception>
#i... |
a5e6b5c6e8466161ea23dc94f0997f434d2f6c7e.hip | // !!! This is a file automatically generated by hipify!!!
/* Reference: https://x.momo86.net/en?p=113 */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <chrono>
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#define NUM_OF_BLOCKS 1048576
#define NUM_OF_THREADS 256
__device__ half2 half_ma... | a5e6b5c6e8466161ea23dc94f0997f434d2f6c7e.cu | /* Reference: https://x.momo86.net/en?p=113 */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <chrono>
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#define NUM_OF_BLOCKS 1048576
#define NUM_OF_THREADS 256
__device__ half2 half_max(const half2 a, const half2 b) {
const half2 sub = __hsu... |
45ee3c13391102fbb024e2dd43b7659b56885340.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void findCentroidsAtomicFreeLocal_64(int afLocal, int* responses, int nPixels, int* cluster, int* centroidMass, unsigned int* centroidCount)
{
int const af_id = blockIdx.x;
int const cluster_id = blo... | 45ee3c13391102fbb024e2dd43b7659b56885340.cu | #include "includes.h"
__global__ void findCentroidsAtomicFreeLocal_64(int afLocal, int* responses, int nPixels, int* cluster, int* centroidMass, unsigned int* centroidCount)
{
int const af_id = blockIdx.x;
int const cluster_id = blockIdx.y;
int const filter_id = threadIdx.x;
int* filter_responses = &responses[filter_id... |
fe86b279d811abf9759cd547729ccf9d3e58f6bf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <iostream>
#include <cmath>
#define SIZE 3
#define BLOCK_SIZE 2
__global__ void matrix_multiplication(float* d_prod, float* d_m, float* d_n, int size) {
int col = threadIdx.x + blockDim.x*blockIdx.x;
... | fe86b279d811abf9759cd547729ccf9d3e58f6bf.cu | #include <cstdio>
#include <iostream>
#include <cmath>
#define SIZE 3
#define BLOCK_SIZE 2
__global__ void matrix_multiplication(float* d_prod, float* d_m, float* d_n, int size) {
int col = threadIdx.x + blockDim.x*blockIdx.x;
int row = threadIdx.y + blockDim.y*blockIdx.y;
if(row < size && col < size) {
f... |
0cd7ce719092c8897736bca84cf4984a2bbbf216.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath> /* pow() */
#include <cstdint> /* uint64_t */
#include <ctime> /* time() */
#include <cstdlib>
#include <unistd.h>
#include <iostream>
using namespace std;
#include <ctime> /* time() */
#include <sys/time.h>
#i... | 0cd7ce719092c8897736bca84cf4984a2bbbf216.cu | #include <cmath> /* pow() */
#include <cstdint> /* uint64_t */
#include <ctime> /* time() */
#include <cstdlib>
#include <unistd.h>
#include <iostream>
using namespace std;
#include <ctime> /* time() */
#include <sys/time.h>
#include <stdlib.h>
#include <iostream>
#include <cstdint> /* int64_t, uint64_t */
void... |
fbb91162ab36f0e8e9bebb4d7c415402db27a2e8.hip | // !!! This is a file automatically generated by hipify!!!
/* Includes, system */
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#define N 512
/* DEVICE CODE */
__global__ void suma_2_enteros(int *d1, int *d2, int *sum){
*sum = *d1 + *d2;
}
/* HOST CODE*/
int main(int argc, char** arg... | fbb91162ab36f0e8e9bebb4d7c415402db27a2e8.cu |
/* Includes, system */
#include <stdio.h>
#include <cuda.h>
#include <cuda_runtime.h>
#define N 512
/* DEVICE CODE */
__global__ void suma_2_enteros(int *d1, int *d2, int *sum){
*sum = *d1 + *d2;
}
/* HOST CODE*/
int main(int argc, char** argv)
{
int DeviceCount = 0,i;
int *h_d1,*h_d2,*h_sum;
int *d_d1... |
d8c0f4ffefba3ad158f4b1bc7604b65a1b55c9ce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// RUN: %clang_cc1 -std=c++11 -fcuda-is-device -fsyntax-only -verify=dev %s
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify=host %s
// host-no-diagnostics
#include "Inputs/cuda.h"
int func();
struct A {
int x;
static int... | d8c0f4ffefba3ad158f4b1bc7604b65a1b55c9ce.cu | // RUN: %clang_cc1 -std=c++11 -fcuda-is-device -fsyntax-only -verify=dev %s
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify=host %s
// host-no-diagnostics
#include "Inputs/cuda.h"
int func();
struct A {
int x;
static int host_var;
};
int A::host_var; // dev-note {{host variable declared here}}
namespace X... |
e453485914788181b26a970a7a7cefa4f6927f32.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "THHUNN.h"
#include "common.h"
#include <stdio.h>
#include <assert.h>
#include <thrust/functional.h>
__global__ void cunn_SpatialClassNLLCriterion_updateOutput_kernel(
float *output,
float *total_weig... | e453485914788181b26a970a7a7cefa4f6927f32.cu | #include "THCUNN.h"
#include "common.h"
#include <stdio.h>
#include <assert.h>
#include <thrust/functional.h>
__global__ void cunn_SpatialClassNLLCriterion_updateOutput_kernel(
float *output,
float *total_weight,
float *input,
long *target,
float *weights,
... |
0a46fefb6335e01ed82e00f5b02b075c7fe1b774.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "thrust/device_vector.h"
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typena... | 0a46fefb6335e01ed82e00f5b02b075c7fe1b774.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "thrust/device_vector.h"
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
__global__ void kernel_channel_max(const int num, const int channels,
cons... |
2bf15b8eac46d9996b735f49829067672b4df982.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2018 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 t... | 2bf15b8eac46d9996b735f49829067672b4df982.cu | // Copyright (c) 2018 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... |
c9bb596c17aaadf7c2a10cdc18891de96aa798ef.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright 2009, Andrew Corrigan, acorriga@gmu.edu
// This code is from the AIAA-2009-4001 paper
#include <hip/hip_runtime.h>
//#include <helper_cuda.h>
//#include <helper_timer.h>
#include <iostream>
#include <fstream>
// Options
#define GAMMA 1.4f
#defin... | c9bb596c17aaadf7c2a10cdc18891de96aa798ef.cu | // Copyright 2009, Andrew Corrigan, acorriga@gmu.edu
// This code is from the AIAA-2009-4001 paper
#include <cuda.h>
//#include <helper_cuda.h>
//#include <helper_timer.h>
#include <iostream>
#include <fstream>
// Options
#define GAMMA 1.4f
#define iterations 1
#ifndef block_length
#define block_length 192
#endif
#... |
b874e824d2a62e8947639a230ba7fdbdc86b265f.hip | // !!! This is a file automatically generated by hipify!!!
#include <limits>
#include <math.h>
#include <stdint.h>
#include "bfs_loader.h"
#include "executor/cuda_executor.h"
#include "executor/executor.h"
#include "soa/soa.h"
static const int kMaxDegree = 10;
static const int kMaxVertices = 20000;
using ikra::soa::... | b874e824d2a62e8947639a230ba7fdbdc86b265f.cu | #include <limits>
#include <math.h>
#include <stdint.h>
#include "bfs_loader.h"
#include "executor/cuda_executor.h"
#include "executor/executor.h"
#include "soa/soa.h"
static const int kMaxDegree = 10;
static const int kMaxVertices = 20000;
using ikra::soa::IndexType;
using ikra::soa::SoaLayout;
using ikra::executor... |
56df80bf46cd26f9e7a550831bee019843390baa.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... | 56df80bf46cd26f9e7a550831bee019843390baa.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... |
17995f699b2d00debf48e5b1de7c412b477a9b64.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 16
template <class T... | 17995f699b2d00debf48e5b1de7c412b477a9b64.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 16
template <class T> __global__ void simpleKernel(T *A, T *C1, T *C2, T *C3, T *C4)
{
i... |
8b987972293a16c31284ddfd48389027dcb834a8.hip | // !!! This is a file automatically generated by hipify!!!
#include "polygon.cuh"
void SimPolygon::resetPoly() {
poly.clear();
finished = false;
}
glm::vec3 SimPolygon::getPoint(int idx) {
return poly[idx];
}
std::vector<glm::vec3> SimPolygon::getVector() {
return poly;
}
void SimPolygon::deleteData() {
hipFre... | 8b987972293a16c31284ddfd48389027dcb834a8.cu | #include "polygon.cuh"
void SimPolygon::resetPoly() {
poly.clear();
finished = false;
}
glm::vec3 SimPolygon::getPoint(int idx) {
return poly[idx];
}
std::vector<glm::vec3> SimPolygon::getVector() {
return poly;
}
void SimPolygon::deleteData() {
cudaFree(d_poly);
}
void SimPolygon::passData() {
size_t siz = ... |
01289304c0db83d7c6d57ef879300770f118d889.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Equihash CUDA solver
// Copyright (c) 2016 John Tromp
#include "equi.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "blake2b.cu"
typedef uint16_t u16;
typedef uint64_t u64;
#define checkCudaErrors(ans) ... | 01289304c0db83d7c6d57ef879300770f118d889.cu | // Equihash CUDA solver
// Copyright (c) 2016 John Tromp
#include "equi.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "blake2b.cu"
typedef uint16_t u16;
typedef uint64_t u64;
#define checkCudaErrors(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cudaError_t code, const ... |
2840c0a116683f557413d81f210d297091dc451e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2016-2018, Brian Kennedy. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... | 2840c0a116683f557413d81f210d297091dc451e.cu | /******************************************************************************
* Copyright (c) 2016-2018, Brian Kennedy. 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... |
4e696e423d31ca7c22c80dd8818ac6760ffeed33.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... | 4e696e423d31ca7c22c80dd8818ac6760ffeed33.cu | /******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*****************************************************************... |
7f1afc76b4a64cb40e508a9e2288d9510a356f6a.hip | // !!! This is a file automatically generated by hipify!!!
#include "gpuerrchk.h"
#include "data.h"
data::data(double dinput, int iinput, int size){
msize = size;
gpuErrchk(hipMalloc((void**)&dptr,sizeof(double)*size));
gpuErrchk(hipMalloc((void**)&iptr,sizeof(int)*size));
double *h_dptr = (double*)malloc(size... | 7f1afc76b4a64cb40e508a9e2288d9510a356f6a.cu | #include "gpuerrchk.h"
#include "data.h"
data::data(double dinput, int iinput, int size){
msize = size;
gpuErrchk(cudaMalloc((void**)&dptr,sizeof(double)*size));
gpuErrchk(cudaMalloc((void**)&iptr,sizeof(int)*size));
double *h_dptr = (double*)malloc(sizeof(double)*size);
int *h_iptr = (int*)malloc(sizeof(... |
efd905652c3d12a530826fdfc8a121a9e8af72f1.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistribu... | efd905652c3d12a530826fdfc8a121a9e8af72f1.cu | /*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* 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... |
e2b0bb3e809b6f415e7178dee65228490c401815.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2022 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 t... | e2b0bb3e809b6f415e7178dee65228490c401815.cu | // Copyright (c) 2022 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... |
d638bb41c2791b9517ab012157c25f390d8fa261.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 "kLessThanScalar.cu"
#include<chrono>
#include<iostream>
using na... | d638bb41c2791b9517ab012157c25f390d8fa261.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 "kLessThanScalar.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{... |
99bef435a89a7a19339305f805dc987819b0334c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdbool.h>
#undef SEARCH_ALL_THE_BEST
#undef PACKED /**/
#undef COLLECT_LOG
#define BLOCK_DIM (32) /* NOTE: broken when more than 32 */
#define N_INIT_DISTRIBUTION (BLOCK_DIM * 64)
#define STACK_BUF_LEN (48 * (BLOCK_DI... | 99bef435a89a7a19339305f805dc987819b0334c.cu | #include <stdbool.h>
#undef SEARCH_ALL_THE_BEST
#undef PACKED /**/
#undef COLLECT_LOG
#define BLOCK_DIM (32) /* NOTE: broken when more than 32 */
#define N_INIT_DISTRIBUTION (BLOCK_DIM * 64)
#define STACK_BUF_LEN (48 * (BLOCK_DIM/DIR_N))
/* XXX: should be defined dynamically, but cudaMalloc after cudaFree fails */
... |
90d7302b4b8f9ccf57557ec782417dc7cbd920a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "./cuda_include.h"
void set_device( int id )
{
int current_id;
cuda_assert( hipGetDevice( ¤t_id ) );
if ( current_id != id )
cuda_assert( hipSetDevice( id ) );
}
void cuda_allocate( void** p, unsigned long n )
{
cuda_ass... | 90d7302b4b8f9ccf57557ec782417dc7cbd920a6.cu | #include "./cuda_include.h"
void set_device( int id )
{
int current_id;
cuda_assert( cudaGetDevice( ¤t_id ) );
if ( current_id != id )
cuda_assert( cudaSetDevice( id ) );
}
void cuda_allocate( void** p, unsigned long n )
{
cuda_assert( cudaMalloc( p, n ) );
cuda_assert( cudaMemset( *... |
4d945adc207e8885cede45938f8b7a96743e7c38.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the fol... | 4d945adc207e8885cede45938f8b7a96743e7c38.cu | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
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 co... |
aca88b99f9ac52146b81ff13df0b413305ee0b3e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Matrix normalization.
* Compile with "gcc matrixNorm.c"
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
/* Program Parameters */
#define N 9000 /* Matrix size */
/* Matrice... | aca88b99f9ac52146b81ff13df0b413305ee0b3e.cu | /* Matrix normalization.
* Compile with "gcc matrixNorm.c"
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
/* Program Parameters */
#define N 9000 /* Matrix size */
/* Matrices */
volatile float A[N][N], B[N][N];
// Flattened array A & B
float flattenA[N * N], f... |
464e7f1701ff01007eecf52762fb122dc0440d98.hip | // !!! This is a file automatically generated by hipify!!!
// This example demonstrates parallel floating point vector
// addition with a simple __global__ function.
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <hip/hip_runtime.h>
#def... | 464e7f1701ff01007eecf52762fb122dc0440d98.cu | // This example demonstrates parallel floating point vector
// addition with a simple __global__ function.
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <cuda_runtime.h>
#define BLOCK_SIZE 512
// this kernel computes the vector sum c =... |
e29512c9af74469fbe639846608ba10b450e7a4d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass
//--blockDim=1024 --gridDim=1 --no-inline
// In CUDA providing the inline keyword should still keep a copy of
// the function around (contrary to OpenCL). However, by default a
// function with this keyword is not actually i... | e29512c9af74469fbe639846608ba10b450e7a4d.cu | //pass
//--blockDim=1024 --gridDim=1 --no-inline
// In CUDA providing the inline keyword should still keep a copy of
// the function around (contrary to OpenCL). However, by default a
// function with this keyword is not actually inlined at the optimisation
// level used by GPUVerify.
#define tid threadIdx.x
__devic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.