hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
79b3c5ecefa71590248d5df7a5959042d4100f1c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
79b3c5ecefa71590248d5df7a5959042d4100f1c.cu
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
a93885eab66daa704e64e3c5f8e22707e3301f65.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <iostream> #include <conio.h> #include <ctime> #include "FindCloestGPU.h" using namespace std; int main() { srand(time(NULL)); // numberof points const int count = 10000; // arr...
a93885eab66daa704e64e3c5f8e22707e3301f65.cu
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include <iostream> #include <conio.h> #include <ctime> #include "FindCloestGPU.h" using namespace std; int main() { srand(time(NULL)); // numberof points const int count = 10000; // array of points int *indexOfCloest = new int[count]; float3d *p...
07f66e990058966514e8757061b44cae4d7796b7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<iostream> #include<ctime> using namespace std; template<unsigned int DIMX, unsigned int DIMY, typename T> __global__ void transpose(T *in_data, T *out_data, unsigned int nx, unsigned int ny) { //padding = 2 __shared__ T...
07f66e990058966514e8757061b44cae4d7796b7.cu
#include<iostream> #include<ctime> using namespace std; template<unsigned int DIMX, unsigned int DIMY, typename T> __global__ void transpose(T *in_data, T *out_data, unsigned int nx, unsigned int ny) { //padding = 2 __shared__ T tile[DIMY][DIMX*2 + 2]; unsigned int idx = threadIdx.x + blockDim.x * blockIdx.x * 2;...
0fbddafba8c04bd9c56e8a61a96be9c09f5096be.hip
// !!! This is a file automatically generated by hipify!!! #include "cu_matrix.cuh" std::set<FeatType *> CuMatrix::MemoryPool; CuMatrix::CuMatrix(Matrix M, const hipblasHandle_t &handle_) : Matrix(M.getRows(), M.getCols(), M.getData()) { cudaStat = hipError_t(); handle = handle_; nnz = 0; csrVal = ...
0fbddafba8c04bd9c56e8a61a96be9c09f5096be.cu
#include "cu_matrix.cuh" std::set<FeatType *> CuMatrix::MemoryPool; CuMatrix::CuMatrix(Matrix M, const cublasHandle_t &handle_) : Matrix(M.getRows(), M.getCols(), M.getData()) { cudaStat = cudaError_t(); handle = handle_; nnz = 0; csrVal = NULL; csrColInd = NULL; isSparse = 0; deviceMal...
317387d487170d3b5bf4d0cf7fbb98a89a7e541a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include "caffe/common.hpp" #include "caffe/util/im2col.hpp" namespace caffe { //gpuim2col template <typename Dtype> __global__ void im2col_gpu_kernel( const int n, // const Dtype* data_im,//im_data ...
317387d487170d3b5bf4d0cf7fbb98a89a7e541a.cu
#include <algorithm> #include "caffe/common.hpp" #include "caffe/util/im2col.hpp" namespace caffe { //gpu版本的im2col template <typename Dtype> __global__ void im2col_gpu_kernel( const int n, //分的线程总数 const Dtype* data_im,//im_data const int height, const int width,//宽高 const int kernel_h, const int ker...
8aea4e952cc499397bc5976d278f53d2056444bc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #ifdef __HIPCC__ #define CUDA_CALLABLE_MEMBER __host__ __device__ #define KERNEL_ARGS2(grid,hipLaunchKernelGGL(( block)) , dim3(grid), dim3(block) , 0, 0, #defi...
8aea4e952cc499397bc5976d278f53d2056444bc.cu
#include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" #ifdef __CUDACC__ #define CUDA_CALLABLE_MEMBER __host__ __device__ #define KERNEL_ARGS2(grid, block) <<< grid, block >>> #define KERNEL_ARGS3(grid, block, sh_mem) <<< grid, block, sh_mem >>> #define KERNEL_ARGS4(grid, block, sh_mem, st...
4ca797cbeb0e46a986d2b844ad71f8602ba3abc4.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdlib> #include <cstdio> #include <string> #include <iostream> #include <color_spinor_field.h> #include <clover_field.h> // these control the Wilson-type actions #ifdef GPU_WILSON_DIRAC //#define DIRECT_ACCESS_LINK //#define DIRECT_ACCESS_WILSON_S...
4ca797cbeb0e46a986d2b844ad71f8602ba3abc4.cu
#include <cstdlib> #include <cstdio> #include <string> #include <iostream> #include <color_spinor_field.h> #include <clover_field.h> // these control the Wilson-type actions #ifdef GPU_WILSON_DIRAC //#define DIRECT_ACCESS_LINK //#define DIRECT_ACCESS_WILSON_SPINOR //#define DIRECT_ACCESS_WILSON_ACCUM //#define DIRECT...
f69b68fe92057e11facd21f05fa9dd8f7d07aaaf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "MLP_basic.h" #include "my_device_function.cuh" #define IDX2C(i,j,Id) (((j)*(Id))+(i)) // j -> row, i -> column using namespace std; MLP_basic:: MLP_basic() { total_layers = 0; max_batch = 0; alpha = 0...
f69b68fe92057e11facd21f05fa9dd8f7d07aaaf.cu
#include "MLP_basic.h" #include "my_device_function.cuh" #define IDX2C(i,j,Id) (((j)*(Id))+(i)) // j -> row, i -> column using namespace std; MLP_basic:: MLP_basic() { total_layers = 0; max_batch = 0; alpha = 0; ramda = 0; d_target = NULL; d_temp = NULL; d_temp1 = NULL; d_one_v...
e843c5a0c863fd568b5b98e2e314d216c5f43635.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // test cuda programming // nvcc myAddVec.cu -o myAddVec #include <iostream> #include <vector> #include <assert.h> using namespace std; __global__ void addVec(int* da, int* db, int* dc, int n) { int tid = threadIdx.x + blockI...
e843c5a0c863fd568b5b98e2e314d216c5f43635.cu
// test cuda programming // nvcc myAddVec.cu -o myAddVec #include <iostream> #include <vector> #include <assert.h> using namespace std; __global__ void addVec(int* da, int* db, int* dc, int n) { int tid = threadIdx.x + blockIdx.x * blockDim.x; if(tid < n) { dc[tid] = da[tid] + db[tid]; } } int m...
1506af463ecf3f38dd7c0853996ecc6f2634e29e.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 "absolute_upd_kernel.cu" #include<chrono> #include<iostream> usin...
1506af463ecf3f38dd7c0853996ecc6f2634e29e.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 "absolute_upd_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,1...
37fd650c13447a38182eecf10ba7a52cb45ad184.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <assert.h> #include <hip/hip_runtime.h> #include <iostream> __global__ void square_array(double *a, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx<N) a[idx] = a[idx] * a[idx]; printf("idx = %d, a = %f\n...
37fd650c13447a38182eecf10ba7a52cb45ad184.cu
#include <stdio.h> #include <assert.h> #include <cuda.h> #include <iostream> __global__ void square_array(double *a, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx<N) a[idx] = a[idx] * a[idx]; printf("idx = %d, a = %f\n", idx, a[idx]); } extern "C" void someOperation() { const int loc...
9bfaaa0a98452034725808cba00ac32eacefab3e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <cstdlib> #include <device_launch_parameters.h> #include <hip/hip_runtime.h> __global__ void initWith(float num, float *a, int N) { int index = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; for...
9bfaaa0a98452034725808cba00ac32eacefab3e.cu
#include <stdio.h> #include <cstdlib> #include <device_launch_parameters.h> #include <cuda_runtime.h> __global__ void initWith(float num, float *a, int N) { int index = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; for (int i = index; i < N; i += stride) { a[i] = num; } }...
1a147d7ac40a7f78c8bb3cbc4ba7847aacd0cddf.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2009, Jiri Matela * 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 m...
1a147d7ac40a7f78c8bb3cbc4ba7847aacd0cddf.cu
/* * Copyright (c) 2009, Jiri Matela * 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 o...
de1de39b326e05e43b17ed40e82d2315d53d194c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "sigmoid_activation.hh" #include "../nn_utils/nn_exception.hh" #include <iostream> __device__ float sigmoid(float x) { return 1.0f / (((exp(x) + exp(-x))/2) * ((exp(x) + exp(-x)) / 2)); } __global__ void sigmoidActivatio...
de1de39b326e05e43b17ed40e82d2315d53d194c.cu
#include "sigmoid_activation.hh" #include "../nn_utils/nn_exception.hh" #include <iostream> __device__ float sigmoid(float x) { return 1.0f / (((exp(x) + exp(-x))/2) * ((exp(x) + exp(-x)) / 2)); } __global__ void sigmoidActivationForward(float* Z, float* A, int Z_x_dim, int Z_y_dim) { int index = blockI...
267cd5bdf1760536e5f98fea0495e0ebddaa7f09.hip
// !!! This is a file automatically generated by hipify!!! #include "common.h" #include "allgatherv.h" /** * @brief Call MPI_Allgatherv() with host to host. * * @param * sendbuf_d: Head address of sending device buffer of MPI_Allgatherv() * sendcount: Number of elements in the sendbuf_d. * recvbuf_d: H...
267cd5bdf1760536e5f98fea0495e0ebddaa7f09.cu
#include "common.h" #include "allgatherv.h" /** * @brief Call MPI_Allgatherv() with host to host. * * @param * sendbuf_d: Head address of sending device buffer of MPI_Allgatherv() * sendcount: Number of elements in the sendbuf_d. * recvbuf_d: Head address of receiving device buffer of MPI_Allgatherv() ...
590f371965341081a90b7e58a0aa25f317a06992.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <errno.h> #include <math.h> // Kernel function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { int bx = blockIdx.x; int by = blockIdx.y; // Thread index ...
590f371965341081a90b7e58a0aa25f317a06992.cu
#include <stdio.h> #include <errno.h> #include <math.h> // Kernel function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { int bx = blockIdx.x; int by = blockIdx.y; // Thread index int tx = threadIdx.x; int ty = threadIdx.y; printf("%d %d %d %d\n", bx, by, tx...
c2606bcaf3b367c15a9fc2cdd27329b5e4bb98a9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include"convolution.h" // note the eigen stores its matrix in column-major !!!!!! // but it seems that we only need to change the convolution part -- and with in the convolution part, only the encode and decode part need to be cha...
c2606bcaf3b367c15a9fc2cdd27329b5e4bb98a9.cu
#include"convolution.h" // note the eigen stores its matrix in column-major !!!!!! // but it seems that we only need to change the convolution part -- and with in the convolution part, only the encode and decode part need to be changed /* todo list : a convolution function which takes in input images, kernels and the...
547487282d60d65b6755dea4762ad17d48e5cabb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <thrust/device_ptr.h> #include <thrust/sort.h> #include <thrust/remove.h> #include <kernel_segsort.hxx> #include "utils.hpp" #include "update.hpp" using namespace mgpu; __global__ void calcEdgelistLengths(BatchUpdateData...
547487282d60d65b6755dea4762ad17d48e5cabb.cu
#include <thrust/device_ptr.h> #include <thrust/sort.h> #include <thrust/remove.h> #include <kernel_segsort.hxx> #include "utils.hpp" #include "update.hpp" using namespace mgpu; __global__ void calcEdgelistLengths(BatchUpdateData *bud, length_t* const __restrict__ ell){ int tid = blockIdx.x * blockDim.x + threadIdx...
e6ad58925eedad7fd3dfd2703c77dc78bb318698.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "reference_calc.cpp" #include "utils.h" #include <stdio.h> __global__ void rgba_to_greyscale(const uchar4* const rgbaImage, unsigned char* const greyImage, int numRows, int num...
e6ad58925eedad7fd3dfd2703c77dc78bb318698.cu
#include "reference_calc.cpp" #include "utils.h" #include <stdio.h> __global__ void rgba_to_greyscale(const uchar4* const rgbaImage, unsigned char* const greyImage, int numRows, int numCols) { for(int r = 0; r < numRows; ++r){ for(int c = 0; c < numCols; ++c){ ...
47118ebae4a24beb9452e54b5dc975b6a41f4ac5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2023, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are pe...
47118ebae4a24beb9452e54b5dc975b6a41f4ac5.cu
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2023, 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...
a9e830c0aeaac7ca1463bffdcf73c18a010899ad.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> __global__ void kernel(void) { } int main(void) { hipLaunchKernelGGL(( kernel), dim3(1), dim3(1), 0, 0, ); printf("Hello, World!\n"); return 0; }
a9e830c0aeaac7ca1463bffdcf73c18a010899ad.cu
#include <iostream> __global__ void kernel(void) { } int main(void) { kernel<<<1, 1>>>(); printf("Hello, World!\n"); return 0; }
db82f0769b704fec2ad878651f80ff1fd1c0a5f1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" __global__ void mmkernel( float* a, float* b, float* c, int pitch_a, int pitch_b, int pitch_c, int n, int m, int p ) { int tx = threadIdx.x; int i = blockIdx.x*64 + tx; int j = blockIdx.y*2; __shared__...
db82f0769b704fec2ad878651f80ff1fd1c0a5f1.cu
extern "C" __global__ void mmkernel( float* a, float* b, float* c, int pitch_a, int pitch_b, int pitch_c, int n, int m, int p ) { int tx = threadIdx.x; int i = blockIdx.x*64 + tx; int j = blockIdx.y*2; __shared__ float cb0[32], cb1[32]; float sum0 = 0.0, sum1 = 0., sum2 = 0.0, sum3 = 0.0; f...
5dc5803f06066aee977202c0fe7bc4c02e5461b3.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdlib> #include <iostream> #include <cstdio> #include <fstream> #include "utils.h" #include "timer.h" #include <cstdio> #include <sys/time.h> #include <thrust/random/linear_congruential_engine.h> #include <thrust/random/normal_distribution.h> #incl...
5dc5803f06066aee977202c0fe7bc4c02e5461b3.cu
#include <cstdlib> #include <iostream> #include <cstdio> #include <fstream> #include "utils.h" #include "timer.h" #include <cstdio> #include <sys/time.h> #include <thrust/random/linear_congruential_engine.h> #include <thrust/random/normal_distribution.h> #include <thrust/random/uniform_int_distribution.h> void comput...
bf4bcc61e817818acbb6ba677179c0d561a2c8e4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" /// Tile size used by the OptimizedMMKernel #define TILE_SIZE 32 /// Naive matrix multiplication CUDA Kernel /// Tiled 1D Shared Memory No Unrolling /// Tiled 2D Shared Memory No Unrolling /// Tiled 2D Sha...
bf4bcc61e817818acbb6ba677179c0d561a2c8e4.cu
#include "includes.h" /// Tile size used by the OptimizedMMKernel #define TILE_SIZE 32 /// Naive matrix multiplication CUDA Kernel /// Tiled 1D Shared Memory No Unrolling /// Tiled 2D Shared Memory No Unrolling /// Tiled 2D Shared Memory With Unrolling (4x4 Tile Size) /// Tiled 2D Shared Memory With Unrolling (8x...
a658194099bb40f4da868ad189ca07f898633fb8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you...
a658194099bb40f4da868ad189ca07f898633fb8.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...
85b769f1c693bb1901f43419f987a6919115e5ce.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* *this file exercise matrix multiplication with shared memory and use *the thought of dividing matrix to sub_matrix */ #include<time.h> #include<stdlib.h> #include<stdio.h> #include<assert.h> #include<hip/hip_runtime_api.h> ...
85b769f1c693bb1901f43419f987a6919115e5ce.cu
/* *this file exercise matrix multiplication with shared memory and use *the thought of dividing matrix to sub_matrix */ #include<time.h> #include<stdlib.h> #include<stdio.h> #include<assert.h> #include<cuda_profiler_api.h> #define BLOCK_SIZE 8 #define MATRIX_SIZE 64 typedef struct { int width; int height; f...
0db9418c58af2f58d23026c8b11d6cd59496aa3f.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <helper_cuda.h> #include <stdint.h> #include "../../common/para.h" #include "../../common/para.cuh" #include <stdarg.h> #include "runtime.cuh" __device__ int syncID; __device__ int threadNum; int *done, *doneDev; int *tot...
0db9418c58af2f58d23026c8b11d6cd59496aa3f.cu
#include <cuda_runtime.h> #include <helper_cuda.h> #include <stdint.h> #include "../../common/para.h" #include "../../common/para.cuh" #include <stdarg.h> #include "runtime.cuh" __device__ int syncID; __device__ int threadNum; int *done, *doneDev; int *totalScheTasks, *totalScheTasksDev; cTaskStruct *ccTaskPool; gTa...
0ef0af6ad443af85058914bf9aded77b300996e4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "solver3x3_kernel.cuh" #define N 3 #define NN 9 #define BLOCK_SIZE_X 192//256 #define BLOCK_SIZE_Y 1 #include <hip/hip_vector_types.h> #include <vector_functions.h> #include <hip/hip_complex.h> #include <cutil_math.h> ...
0ef0af6ad443af85058914bf9aded77b300996e4.cu
#include "solver3x3_kernel.cuh" #define N 3 #define NN 9 #define BLOCK_SIZE_X 192//256 #define BLOCK_SIZE_Y 1 #include <vector_types.h> #include <vector_functions.h> #include <cuComplex.h> #include <cutil_math.h> // for vector operations // Utilities for handeling 3x1 vectors with complex values //struct __devic...
2b27db63fb235479b6c40865b31d807b6e85fc82.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2012, Los Alamos National Security, LLC All rights reserved. Copyright 2012. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is oper...
2b27db63fb235479b6c40865b31d807b6e85fc82.cu
/* Copyright (c) 2012, Los Alamos National Security, LLC All rights reserved. Copyright 2012. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alamos National Security, LLC for the U.S. Depa...
81abb0b95eb71cdee38afc6e85cb7a8d5fdcb001.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #define _USE_MATH_DEFINES //The maximum particles to be simulated #define MAX_PARTICLES 2048 //How many simulations are to be ran #define NUM_SIMULATIONS 1000 //How many tests are to be ran #d...
81abb0b95eb71cdee38afc6e85cb7a8d5fdcb001.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #define _USE_MATH_DEFINES //The maximum particles to be simulated #define MAX_PARTICLES 2048 //How many simulations are to be ran #define NUM_SIMULATIONS 1000 //How many tests are to be ran #define NUM_TESTS 100 //The delta time between each simulation #...
e55eefe28ad3135fc165c0509a9524982d072aa0.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....
e55eefe28ad3135fc165c0509a9524982d072aa0.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 docum...
c27425a3c4be19e41a8fea6da86028277dc2b890.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(...
c27425a3c4be19e41a8fea6da86028277dc2b890.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)) ...
ed411fe941533d2b9d017246ef09ba833ea8a93d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * ___ _ _ ___ _ __ __ _ ___ * / __| | | | \ /_\ | \/ | /_\ | _ \ * | (__| |_| | |) / _ \ | |\/| |/ _ \| _/ * \___|\___/|___/_/_\_\_|_|__|_/_/_\_\_|_ ___ * / __| | | | _ \ __| _ \...
ed411fe941533d2b9d017246ef09ba833ea8a93d.cu
/** * ___ _ _ ___ _ __ __ _ ___ * / __| | | | \ /_\ | \/ | /_\ | _ \ * | (__| |_| | |) / _ \ | |\/| |/ _ \| _/ * \___|\___/|___/_/_\_\_|_|__|_/_/_\_\_|_ ___ * / __| | | | _ \ __| _ \___| _ \ __/ __| * \__ \ |_| | _/ _|| /___| / _|\__ \ * |___/\___/|_|...
7eba68dd40866c34f13cbd1bcbaed84efa4f55c8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Stokes Flow with Drag Component kernel // Last updated: 02/14/13 #ifndef _SLIP_KERNEL_H_ #define _SLIP_KERNEL_H_ // Thread block size #define POINTS 256 #define MATRIX_SIZE 16 #define THREADS 256 #define BLOCKS 256 __constant_...
7eba68dd40866c34f13cbd1bcbaed84efa4f55c8.cu
// Stokes Flow with Drag Component kernel // Last updated: 02/14/13 #ifndef _SLIP_KERNEL_H_ #define _SLIP_KERNEL_H_ // Thread block size #define POINTS 256 #define MATRIX_SIZE 16 #define THREADS 256 #define BLOCKS 256 __constant__ double INVERSE_QUARTER_PI = M_1_PI/4.0f; // CUDA kernel __global__ void SlipKernel(d...
384921a414ae92013377e5169859e0ad3b57664f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gpu_runtime.h" __global__ void conv2d_broadcast_to_kernel(size_t nthreads, const float *input_data, float * output_data, size_t input_size, size_t output_size){ size_t id = blockIdx.x * blockDim.x + threadIdx.x; ...
384921a414ae92013377e5169859e0ad3b57664f.cu
#include "gpu_runtime.h" __global__ void conv2d_broadcast_to_kernel(size_t nthreads, const float *input_data, float * output_data, size_t input_size, size_t output_size){ size_t id = blockIdx.x * blockDim.x + threadIdx.x; if(id >= nthreads) return; size_t input_id = (id % (input_size * output_size))/outpu...
41860ed1d3f271e5d2cd9b45b66504fbed2522e6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <THH/THH.h> #include <THH/THHAtomics.cuh> #include <THH/THHDeviceUtils.cuh> #include "cuda/v...
41860ed1d3f271e5d2cd9b45b66504fbed2522e6.cu
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <THC/THC.h> #include <THC/THCAtomics.cuh> #include <THC/THCDeviceUtils.cuh> #include "cuda/vision.h" // #define FLT_MAX 3.402823466e+38F // TODO make it in a common file #defin...
918d78e9409ab3ac89522836e96089aa6eead7fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/context_gpu.h" #include "caffe2/core/cudnn_wrappers.h" #include "caffe2/operators/conv_pool_op_base.h" #include <hipcub/hipcub.hpp> namespace caffe2 { namespace { // Explicit fast paths for avg and max glob...
918d78e9409ab3ac89522836e96089aa6eead7fa.cu
#include "caffe2/core/context_gpu.h" #include "caffe2/core/cudnn_wrappers.h" #include "caffe2/operators/conv_pool_op_base.h" #include <cub/cub.cuh> namespace caffe2 { namespace { // Explicit fast paths for avg and max global pooling due to CuDNN global // pooling performance bug which makes pooling extremely slow. ...
e609ec8b5df63b0f752a4d544da3053e24b1a60d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "reconstruction.h" #include "device_launch_parameters.h" #include "hip/device_functions.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/cuda.hpp> #include <stdio.h> #include <iostream> #include <math.h> ...
e609ec8b5df63b0f752a4d544da3053e24b1a60d.cu
#include "reconstruction.h" #include "device_launch_parameters.h" #include "device_functions.h" #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/cuda.hpp> #include <stdio.h> #include <iostream> #include <math.h> using namespace cv; using namespace std; // KERNEL FUNCIONS //---------------------- __gl...
6cfae357a411c26d10a03c88377a87e37a8cbad5.hip
// !!! This is a file automatically generated by hipify!!! #include <cassert> #include <cfloat> #include <hip/hip_runtime_api.h> #include <hip/hip_runtime.h> #include <iostream> #include <stdio.h> #include <list> #include <map> #include <math.h> #include <stdlib.h> #include <vector> #include <set> #include <algorithm>...
6cfae357a411c26d10a03c88377a87e37a8cbad5.cu
#include <cassert> #include <cfloat> #include <cuda_runtime_api.h> #include <cuda.h> #include <iostream> #include <stdio.h> #include <list> #include <map> #include <math.h> #include <stdlib.h> #include <vector> #include <set> #include <algorithm> #include <iterator> #include <fstream> #include "../include/common.h" #d...
f45acb301a81de224d3521390b5363acff5890e4.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 * *...
f45acb301a81de224d3521390b5363acff5890e4.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 ...
6c89f0da32d208c7ec0ed2ca8ab6d82d5cdf2022.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/Dispatch.h> #include <ATen/native/BinaryOps.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/hip/Loops.cuh> // NOTE: CUDA on Windows requires that the enclosing function // of a __device__ l...
6c89f0da32d208c7ec0ed2ca8ab6d82d5cdf2022.cu
#include <ATen/Dispatch.h> #include <ATen/native/BinaryOps.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cuda/Loops.cuh> // NOTE: CUDA on Windows requires that the enclosing function // of a __device__ lambda not have internal linkage. namespace at { namespace...
aa1d907f6ff75c17ab133d885bf56c690d0d81ad.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...
aa1d907f6ff75c17ab133d885bf56c690d0d81ad.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 ...
122a125025322ba6b0c59b342e8cea98cb6193fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "scan.cuh" #include "segmented_scan.cuh" #include "segmented_scan_helpers.cuh" #include <contrib/libs/cub/hipcub/hipcub.hpp> namespace NKernel { template<class T> __global__ void ZeroSegmentStartsImpl(const ui32* ...
122a125025322ba6b0c59b342e8cea98cb6193fa.cu
#include "scan.cuh" #include "segmented_scan.cuh" #include "segmented_scan_helpers.cuh" #include <contrib/libs/cub/cub/device/device_scan.cuh> namespace NKernel { template<class T> __global__ void ZeroSegmentStartsImpl(const ui32* flags, ui32 flagMask, ui32 size, T* output) { const ui32 tid = blockIdx...
e05a81a29ee88549487518f9c1ae93ef47bb6e37.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #define CHECK(call)\ {\ const hipError_t error = call;\ if (error != hipSuccess)\ {\ fprintf(stderr, "Error: %s:%d, ", __FILE__, __LINE__);\ fprintf(stderr, "code: %d, reason: %s\n", e...
e05a81a29ee88549487518f9c1ae93ef47bb6e37.cu
#include <stdio.h> #define CHECK(call)\ {\ const cudaError_t error = call;\ if (error != cudaSuccess)\ {\ fprintf(stderr, "Error: %s:%d, ", __FILE__, __LINE__);\ fprintf(stderr, "code: %d, reason: %s\n", error,\ cudaGetErrorString(error));\ exit(EXIT_FAILURE);\ }...
ea194b76bf2c574596dce9fb943bb7bc0eb27639.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2012-2015, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
ea194b76bf2c574596dce9fb943bb7bc0eb27639.cu
/* * Copyright (c) 2012-2015, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this ...
9742e2298d4fc6fc5debe9c8d9b4e19eadefb69d.hip
// !!! This is a file automatically generated by hipify!!! #include "heap.h" #include "astar_gpu.h" #include "cuda_utils.h" #include <stdlib.h> #include <stdio.h> __device__ static void swap(state **s1, state **s2); heap **heaps_create(int k) { heap **Q_cpu = (heap**)malloc(k * sizeof(heap*)); heap **Q_dev = NULL; ...
9742e2298d4fc6fc5debe9c8d9b4e19eadefb69d.cu
#include "heap.h" #include "astar_gpu.h" #include "cuda_utils.h" #include <stdlib.h> #include <stdio.h> __device__ static void swap(state **s1, state **s2); heap **heaps_create(int k) { heap **Q_cpu = (heap**)malloc(k * sizeof(heap*)); heap **Q_dev = NULL; for (int i = 0; i < k; i++) { Q_cpu[i] = heap_create(16 ...
56dd93a147c158001920d0b64a861be411f931e2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <math.h> #include <float.h> __global__ void sdt_compute(unsigned char *img, int *sz, float *sdt, int sz_edge, int width, float *d_min, int start, int val) { int tx = threadIdx.x + blockDim.x*blockIdx...
56dd93a147c158001920d0b64a861be411f931e2.cu
#include <iostream> #include <math.h> #include <float.h> __global__ void sdt_compute(unsigned char *img, int *sz, float *sdt, int sz_edge, int width, float *d_min, int start, int val) { int tx = threadIdx.x + blockDim.x*blockIdx.x; extern __shared__ int ep[]; for(int i=start, j=0;i< val; i++){ ep[j++] = sz[i...
2864a3d908361a3b23b8f47e8bb23dc1a67943d3.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/scan.h> #include "common.h" #include "thrust.h" namespace StreamCompaction { namespace Thrust { using StreamCompacti...
2864a3d908361a3b23b8f47e8bb23dc1a67943d3.cu
#include <cuda.h> #include <cuda_runtime.h> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/scan.h> #include "common.h" #include "thrust.h" namespace StreamCompaction { namespace Thrust { using StreamCompaction::Common::PerformanceTimer; PerformanceTimer& timer() { static Perf...
4aa37aecc3cb8fd3f6244d64c076c277362616b5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************\ * --- Practical Course: GPU Programming in Computer Vision --- * * time: summer term 2011 / 19-26th September * * project: gradient * file: gr...
4aa37aecc3cb8fd3f6244d64c076c277362616b5.cu
/****************************************************************************\ * --- Practical Course: GPU Programming in Computer Vision --- * * time: summer term 2011 / 19-26th September * * project: gradient * file: gradient.cu * * \********* PLEASE ENTER YOUR CORRECT STUDENT NAME AND ID BELOW **********...
07fc08c7b53383fdb6a82393d1f1538fdcd1639c.hip
// !!! This is a file automatically generated by hipify!!! //generates fast constraint kernels #include "runtimeKernel.h" #include <iostream> #include <fstream> #include <string> #include <hip/hiprtc.h> #include <hip/hip_runtime.h> #include <streambuf> #include <vector> #include <map> #include <sstream> #include <ioman...
07fc08c7b53383fdb6a82393d1f1538fdcd1639c.cu
//generates fast constraint kernels #include "runtimeKernel.h" #include <iostream> #include <fstream> #include <string> #include <nvrtc.h> #include <cuda.h> #include <streambuf> #include <vector> #include <map> #include <sstream> #include <iomanip> #include "bioCharmm.h" #define NVRTC_SAFE_CALL(x) ...
564ba6618b7a0c4b2e264a1835271497fd3c940b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if GOOGLE_CUDA #include "ew_op_gpu.h" #include "gpu_hmma.h" #include <stdio.h> template <uint OP_A, bool N64> __global__ void __launch_bounds__(128,6) bst_sgemm_32x64x32_xn( const uint2* __restrict__ Lut, const bhalf* __r...
564ba6618b7a0c4b2e264a1835271497fd3c940b.cu
#if GOOGLE_CUDA #include "ew_op_gpu.h" #include "gpu_hmma.h" #include <stdio.h> template <uint OP_A, bool N64> __global__ void __launch_bounds__(128,6) bst_sgemm_32x64x32_xn( const uint2* __restrict__ Lut, const bhalf* __restrict__ A, const float* __restrict__ B, float* C, uint ...
270a024e0e69359f763d2ce4c677ec2539fec0c4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2016 Baidu, Inc. All Rights Reserve. 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 htt...
270a024e0e69359f763d2ce4c677ec2539fec0c4.cu
/* Copyright (c) 2016 Baidu, Inc. All Rights Reserve. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
1be565f17fac947de2ffd8b3504440a23a045b72.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Mandelbrot explorer, based on my old Julia demo plus parts of Nicolas Melot's Lab 1 code. // CPU only! Your task: Rewrite for CUDA! Test and evaluate performance. // Compile with: // gcc interactiveMandelbrot.cpp -shared-libgcc ...
1be565f17fac947de2ffd8b3504440a23a045b72.cu
// Mandelbrot explorer, based on my old Julia demo plus parts of Nicolas Melot's Lab 1 code. // CPU only! Your task: Rewrite for CUDA! Test and evaluate performance. // Compile with: // gcc interactiveMandelbrot.cpp -shared-libgcc -lstdc++-static -o interactiveMandelbrot -lglut -lGL // or // g++ interactiveMandelbrot...
5e90d2db3ec7293dd2095d9c16f5cf80de21ea33.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <wb.h> #define NUM_BINS 4096 #define CUDA_CHECK(ans) \ { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_...
5e90d2db3ec7293dd2095d9c16f5cf80de21ea33.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <wb.h> #define NUM_BINS 4096 #define CUDA_CHECK(ans) \ { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort = true) { if...
64bd193c3b0a1b9115eec40fc28202c4df5dbf03.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "hip/hip_runtime.h" #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1) void check_error (const char* message) { hipError_t error = hipG...
64bd193c3b0a1b9115eec40fc28202c4df5dbf03.cu
#include <stdio.h> #include "cuda.h" #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1) void check_error (const char* message) { cudaError_t error = cudaGetLastError (); if (error != cudaSuccess) { printf ("CUDA error :...
28481933c312e3b0098beaf018345e68c002f368.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // RUN: %clang_cc1 -no-opaque-pointers -triple amdgcn-amd-amdhsa -fcuda-is-device -std=c++11 \ // RUN: -emit-llvm -o - -x hip %s | FileCheck \ // RUN: -check-prefixes=COMMON,DEV,NORDC-D %s // RUN: %clang_cc1 -no-opaque-pointers...
28481933c312e3b0098beaf018345e68c002f368.cu
// RUN: %clang_cc1 -no-opaque-pointers -triple amdgcn-amd-amdhsa -fcuda-is-device -std=c++11 \ // RUN: -emit-llvm -o - -x hip %s | FileCheck \ // RUN: -check-prefixes=COMMON,DEV,NORDC-D %s // RUN: %clang_cc1 -no-opaque-pointers -triple amdgcn-amd-amdhsa -fcuda-is-device -std=c++11 \ // RUN: -emit-llvm -fgpu-rdc ...
d0b9e6c97e716984f52d6fd99ce72c0d7d6865df.hip
// !!! This is a file automatically generated by hipify!!! /*************************************************************************************************** * Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu). **************************************************************************************************/ /...
d0b9e6c97e716984f52d6fd99ce72c0d7d6865df.cu
/*************************************************************************************************** * Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu). **************************************************************************************************/ ////////////////////////////////////////////////////////////...
79ef6a9d638a2a2a118578e236e80b4e2e2ab041.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #include <math.h> #define N 6 #define UPPER 1 #define LOWER N*4 #define THREADS_PER_BLOCK 1 #define BLOCKS 1 //(N + THREADS_PER...
79ef6a9d638a2a2a118578e236e80b4e2e2ab041.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <curand.h> #include <curand_kernel.h> #include <math.h> #define N 6 #define UPPER 1 #define LOWER N*4 #define THREADS_PER_BLOCK 1 #define BLOCKS 1 //(N + THREADS_PER_BLOCK - 1)/THREADS_PER_BLOCK void rand_init_array(int *a, int n, int upper, int lower)...
088e52fae4df83d62fd31c116a4726eabbab9ecf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Code for A Thread Block Program #include <stdio.h> #define NUM_BLOCKS 16 #define BLOCK_WIDTH 1 __global__ void hello() { printf("Hello world! I'm a thread in block %d\n", blockIdx.x); } int main(int argc,char **argv) { ...
088e52fae4df83d62fd31c116a4726eabbab9ecf.cu
// Code for A Thread Block Program #include <stdio.h> #define NUM_BLOCKS 16 #define BLOCK_WIDTH 1 __global__ void hello() { printf("Hello world! I'm a thread in block %d\n", blockIdx.x); } int main(int argc,char **argv) { // launch the kernel hello<<<NUM_BLOCKS, BLOCK_WIDTH>>>(); // force the print...
b1b7e78db0f351dc1b1337db36db0ce67e8ae9ed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2018-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
b1b7e78db0f351dc1b1337db36db0ce67e8ae9ed.cu
/* * Copyright (c) 2018-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
2c2e4c57e4d5fa75b4e2bffa8bdbaeaab1bc8320.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include "caffe/filler.hpp" #include "caffe/layers/inner_product_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void kernel_channel_dot(const int num...
2c2e4c57e4d5fa75b4e2bffa8bdbaeaab1bc8320.cu
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/inner_product_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void kernel_channel_dot(const int num, const int dim, const Dtype* data_1, const Dtype* data_2, Dtype* channel_dot, Dtype...
cfee30b7afaa140a37b66a9306c497191b1ecf96.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...
cfee30b7afaa140a37b66a9306c497191b1ecf96.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...
a8dca9bc689019d854a9802741b5abcd08f6cb99.hip
// !!! This is a file automatically generated by hipify!!! #include "imp_includes.hcu" //#define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ )) void HandleError( hipError_t err,const char *file,int line ) { confirm(err == hipSuccess,hipGetErrorString( err )<<" in "<<file<<" at "<<line<<"."); } void...
a8dca9bc689019d854a9802741b5abcd08f6cb99.cu
#include "imp_includes.hcu" //#define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ )) void HandleError( cudaError_t err,const char *file,int line ) { confirm(err == cudaSuccess,cudaGetErrorString( err )<<" in "<<file<<" at "<<line<<"."); } void HandleError( cublasStatus_t err,const char *file,int li...
07dda0c52af3c10f57c1f952b72d7f0ba7e42d06.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <accelerate_cuda.h> static TexInt32 arrIn0_0; extern "C" __global__ void scanlUp(const Int64 shIn0_0, const Int64 shOut_0, Int32* __restrict__ arrOut_0) { extern volatile __shared__ Int32 sdata0[]; Int32 x0; Int32 y0; const...
07dda0c52af3c10f57c1f952b72d7f0ba7e42d06.cu
#include <accelerate_cuda.h> static TexInt32 arrIn0_0; extern "C" __global__ void scanlUp(const Int64 shIn0_0, const Int64 shOut_0, Int32* __restrict__ arrOut_0) { extern volatile __shared__ Int32 sdata0[]; Int32 x0; Int32 y0; const Int64 sh0 = shIn0_0; const int shapeSize = sh0; const int intervalSize = (shapeSize + g...
3cf04802d749c284321135e0aa37a9f3b059b476.hip
// !!! This is a file automatically generated by hipify!!! #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THH/generic/THHTensorMathPointwise.hip" #else #include <ATen/MemoryOverlap.h> #include <ATen/NamedTensorUtils.h> void THCTensor_(cmax)(THCState *state, THCTensor *self, THCTensor *src1, THCTensor *src2) { T...
3cf04802d749c284321135e0aa37a9f3b059b476.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THC/generic/THCTensorMathPointwise.cu" #else #include <ATen/MemoryOverlap.h> #include <ATen/NamedTensorUtils.h> void THCTensor_(cmax)(THCState *state, THCTensor *self, THCTensor *src1, THCTensor *src2) { THCAssertSameGPU(THCTensor_(checkGPU)(state, 3, self, src1, s...
6b9fcebdfa070ed51657414200706c8e3830a608.hip
// !!! This is a file automatically generated by hipify!!! /* * A tutorial program for cuda programming. It implement algorithm of matrix multipling. * Steven Liu * */ #include <stdio.h> #include <hip/hip_runtime.h> #include <iostream> #define checkCuda(ret) checkCuda_func( (hipError_t)(ret), __FILE__, __LI...
6b9fcebdfa070ed51657414200706c8e3830a608.cu
/* * A tutorial program for cuda programming. It implement algorithm of matrix multipling. * Steven Liu * */ #include <stdio.h> #include <cuda.h> #include <iostream> #define checkCuda(ret) checkCuda_func( (cudaError_t)(ret), __FILE__, __LINE__ ) int pid = 0; float * init_matrix(int n_rows, int n_cols, fl...
5fb5e3fed4e74799f7131030e675b9d1ce938d8c.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2012, MAURO BIANCO, UGO VARETTO, SWISS NATIONAL SUPERCOMPUTING CENTRE (CSCS) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
5fb5e3fed4e74799f7131030e675b9d1ce938d8c.cu
/* Copyright (c) 2012, MAURO BIANCO, UGO VARETTO, SWISS NATIONAL SUPERCOMPUTING CENTRE (CSCS) 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 c...
de33ec9a06383c2fd63dd3f45d1c74929fae1820.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" #include <device_launch_parameters.h> // LOOK-2.1 potentially useful for doing grid-based neighbor sea...
de33ec9a06383c2fd63dd3f45d1c74929fae1820.cu
#define GLM_FORCE_CUDA #include <stdio.h> #include <cuda.h> #include <cmath> #include <glm/glm.hpp> #include "utilityCore.hpp" #include "kernel.h" #include <device_launch_parameters.h> // LOOK-2.1 potentially useful for doing grid-based neighbor search #ifndef imax #define imax( a, b ) ( ((a) > (b)) ? (a) : (b) ) #end...
467b8211bd6d68b0e8334e6caf321e55d633dffd.hip
// !!! This is a file automatically generated by hipify!!! #include "cuNearestNeighbors.cuh" #include <iostream> void initDeviceVariables(DeviceVariables *dev_vars, int K, int num_docs, int biggestQuerySize = 10000){ int KK = 1; //Obtain the smallest power of 2 greater than K (facilitates the sorting algorithm)...
467b8211bd6d68b0e8334e6caf321e55d633dffd.cu
#include "cuNearestNeighbors.cuh" #include <iostream> void initDeviceVariables(DeviceVariables *dev_vars, int K, int num_docs, int biggestQuerySize = 10000){ int KK = 1; //Obtain the smallest power of 2 greater than K (facilitates the sorting algorithm) while(KK < K) KK <<= 1; dim3 grid, threads; ...
human.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // human approach to solving Sudoku // requires fully populated arrays of possValues #ifndef HUMAN_H #define HUMAN_H __device__ int findLocalBlockIdx(int tid) { int blockRow = tid/27; // used to be floor int col = tid%9; int b...
human.cu
// human approach to solving Sudoku // requires fully populated arrays of possValues #ifndef HUMAN_H #define HUMAN_H __device__ int findLocalBlockIdx(int tid) { int blockRow = tid/27; // used to be floor int col = tid%9; int blockCol; if (col<3) blockCol = 0; else if (col<6) blockCol = 1; else block...
24ed68fe3d5e23c2547ac3b8e88df5c9e64a371b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <stdio.h> #include <sys/time.h> #include <string.h> #include <omp.h> using namespace std; __global__ void MatMul(double * A, double * B ,double * C,int m,int n,int k) { int i = blockIdx.x * blockDi...
24ed68fe3d5e23c2547ac3b8e88df5c9e64a371b.cu
#include <iostream> #include <stdio.h> #include <sys/time.h> #include <string.h> #include <omp.h> using namespace std; __global__ void MatMul(double * A, double * B ,double * C,int m,int n,int k) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; int sum = 0; ...
c95511d939d419c86b3d75541b021c6cfc04cb49.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <iostream> #include <sys/time.h> #include <stdio.h> using namespace std; /* Overlapping data transfers and kernel execution * - pinned memory * - streams * - different strategies depending on concurrent data transfers ...
c95511d939d419c86b3d75541b021c6cfc04cb49.cu
#include <cuda.h> #include <iostream> #include <sys/time.h> #include <stdio.h> using namespace std; /* Overlapping data transfers and kernel execution * - pinned memory * - streams * - different strategies depending on concurrent data transfers enabled or not */ #define TILE_DIM 16 #define BLOCK_ROWS 16 __g...
b10dc8d93dfa74f7a10e39a4e532ad562b4d88d1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * -- NUPAR: A Benchmark Suite for Modern GPU Architectures * NUPAR - 2 December 2014 * Fanny Nina-Paravecino * Northeastern University * NUCAR Research Laboratory * * Redistribution and use in source and bin...
b10dc8d93dfa74f7a10e39a4e532ad562b4d88d1.cu
/* * -- NUPAR: A Benchmark Suite for Modern GPU Architectures * NUPAR - 2 December 2014 * Fanny Nina-Paravecino * Northeastern University * NUCAR Research Laboratory * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
495ba9e860a4533b45d69e422d29fd1182c53ef7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * This is a technique to choose from a template instantiation at RUNTIME! * * Needs: * a) -std=c++11 * b) boost::mpl * * Example: In our CUDA autotuner we need to try the kernel with a set of different template paramete...
495ba9e860a4533b45d69e422d29fd1182c53ef7.cu
/** * This is a technique to choose from a template instantiation at RUNTIME! * * Needs: * a) -std=c++11 * b) boost::mpl * * Example: In our CUDA autotuner we need to try the kernel with a set of different template parameters and then choose the optimal one. * We have 3 different parameters that can take seve...
678e4d5c14fe4bda6a1d7dcac26c16e015525e66.hip
// !!! This is a file automatically generated by hipify!!! #include "THHTensorMathReduce.cuh" #include "THHTensor.hpp" THC_API int THCudaByteTensor_logicalAndAll(THCState *state, THCudaByteTensor *self) { THCAssertSameGPU(THCudaByteTensor_checkGPU(state, 1, self)); unsigned char result; if (!THC_reduceAll(state,...
678e4d5c14fe4bda6a1d7dcac26c16e015525e66.cu
#include "THCTensorMathReduce.cuh" #include "THCTensor.hpp" THC_API int THCudaByteTensor_logicalAndAll(THCState *state, THCudaByteTensor *self) { THCAssertSameGPU(THCudaByteTensor_checkGPU(state, 1, self)); unsigned char result; if (!THC_reduceAll(state, self, thrust::identity<unsigned char>...
1d33212ec5feb2cca5ab608ed1b82559e443db17.hip
// !!! This is a file automatically generated by hipify!!! #include "THHUNN.h" #include "common.h" #include "im2col.h" #include "SmoothAndEdgeTerm.h" void THNN_CudaSmoothAndEdgeTerm_updateOutput(THCState *state, THCudaTensor *input_cnn, THCudaTensor *input_edge, THCudaTensor *target_yuv, THCudaTensor *target_edge, THC...
1d33212ec5feb2cca5ab608ed1b82559e443db17.cu
#include "THCUNN.h" #include "common.h" #include "im2col.h" #include "SmoothAndEdgeTerm.h" void THNN_CudaSmoothAndEdgeTerm_updateOutput(THCState *state, THCudaTensor *input_cnn, THCudaTensor *input_edge, THCudaTensor *target_yuv, THCudaTensor *target_edge, THCudaTensor *target_edge_mask, THCudaTensor *smooth_mask_pre,...
ab3015443153832c6aa481e6249acf107ed87a8c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <hip/hip_runtime.h> #include <sys/time.h> /* Functions to be implemented: */ float ftcs_solver_gpu ( int step, int block_size_x, int block_size_y ); float ftcs_solver_gpu_shared ( int step, int ...
ab3015443153832c6aa481e6249acf107ed87a8c.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <cuda.h> #include <sys/time.h> /* Functions to be implemented: */ float ftcs_solver_gpu ( int step, int block_size_x, int block_size_y ); float ftcs_solver_gpu_shared ( int step, int block_size_x, int block_size_y ); float ftcs_solver_gpu_texture ( int ...
de72a1aded69e4e927f39cfc89315c37ed08431a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Host-side code to perform counting sort * * Author: Naga Kandasamy * Date modified: March 2, 2021 * * Student name(s): Dinh Nguyen, Tri Pham, Manh Cuong Phi * Date modified: 03/14/2021 * * Compile as follows: make cle...
de72a1aded69e4e927f39cfc89315c37ed08431a.cu
/* Host-side code to perform counting sort * * Author: Naga Kandasamy * Date modified: March 2, 2021 * * Student name(s): Dinh Nguyen, Tri Pham, Manh Cuong Phi * Date modified: 03/14/2021 * * Compile as follows: make clean && make */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <sys/t...
66827f0c29ee528b3ab099ede67d8b5b4a35e19f.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <string.h> #include <math.h> #define N 8 //Filas #define M 8 //Columnas __global__ void multMatrices(float *c, float *a, float *b){ //Kernel, salto a la GPU. Esta funcion es ejecutad...
66827f0c29ee528b3ab099ede67d8b5b4a35e19f.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <string.h> #include <math.h> #define N 8 //Filas #define M 8 //Columnas __global__ void multMatrices(float *c, float *a, float *b){ //Kernel, salto a la GPU. Esta funcion es ejecutada por todos los hilos al mismo tiempo. int ix = (blockIdx.y*blockDim...
e0ec4c201fa99c26d26a82352e51d88a617af641.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <random> #include <type_traits> #include <math.h> #include <wmma_extension/wmma_extension.hpp> #include "common.hpp" #ifndef TEST_ARCH #define TEST_ARCH (-1) #endif __device__ float myabs(const float a...
e0ec4c201fa99c26d26a82352e51d88a617af641.cu
#include <iostream> #include <random> #include <type_traits> #include <math.h> #include <wmma_extension/wmma_extension.hpp> #include "common.hpp" #ifndef TEST_ARCH #define TEST_ARCH (-1) #endif __device__ float myabs(const float a) { if (a > 0) { return a; } else { return -a; } } template <class Use, int M, i...
a955b78f05602dcb4c86858df94e473e72e10c43.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction,...
a955b78f05602dcb4c86858df94e473e72e10c43.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 relate...
7d5b08ece3c170a4d9115c4f86a6f0fd0c856df9.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...
7d5b08ece3c170a4d9115c4f86a6f0fd0c856df9.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...
1382b16e51e6856114782c0ab96068236893543d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <hip/hip_runtime.h> #include <omp.h> #define cudaCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_t code, const char *file, int line, bool abort=true) { if (...
1382b16e51e6856114782c0ab96068236893543d.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <cuda.h> #include <omp.h> #define cudaCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true) { if (code != cudaSuccess) { fprintf(stderr,"GPUassert: %s %s %d\...
dd12b3ba9c25b46c058bdf9e780fb537c7072028.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 zlobpcg_shift.cu normal z -> c, Tue Se...
dd12b3ba9c25b46c058bdf9e780fb537c7072028.cu
/* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @generated from zlobpcg_shift.cu normal z -> c, Tue Sep 2 12:38:33 2014 */ #include "common_magma.h" __global__ void magma_clobpcg_shift_...
6c527bf0664e8d109c9bd06714eef9a8b0636347.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if __linux__ && defined(__INTEL_COMPILER) #define __sync_fetch_and_add(ptr,addend) _InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend) #endif #include <string> #include <cstring> #include <ccty...
6c527bf0664e8d109c9bd06714eef9a8b0636347.cu
#if __linux__ && defined(__INTEL_COMPILER) #define __sync_fetch_and_add(ptr,addend) _InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend) #endif #include <string> #include <cstring> #include <cctype> #include <cstdlib> #include <cstdio> #include <iostream> #include <fstream> #include...
c687cafcc47be01dfd3fb1b17db2fa1bb8824000.hip
// !!! This is a file automatically generated by hipify!!! // This is the REAL "hello world" for CUDA! // It takes the string "Hello ", prints it, then passes it to CUDA with an array // of offsets. Then the offsets are added in parallel to produce the string "World!" // By Ingemar Ragnemalm 2010 #include <stdio.h> #i...
c687cafcc47be01dfd3fb1b17db2fa1bb8824000.cu
// This is the REAL "hello world" for CUDA! // It takes the string "Hello ", prints it, then passes it to CUDA with an array // of offsets. Then the offsets are added in parallel to produce the string "World!" // By Ingemar Ragnemalm 2010 #include <stdio.h> #include <stdint.h> #include <cuda_runtime.h> #include "devic...
fb5725f10800bc69ee9852696ff299bcf8a31088.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define BlockSize 32 #define kInfinity (1.0E37) #define kMinExitingNormalCosine (1E-3) typedef float G4double; typedef float G4float; typedef int G4int; typedef int G4bool; typedef long G4long; //G4double kInfinity = 1.0E37; // in...
fb5725f10800bc69ee9852696ff299bcf8a31088.cu
#define BlockSize 32 #define kInfinity (1.0E37) #define kMinExitingNormalCosine (1E-3) typedef float G4double; typedef float G4float; typedef int G4int; typedef int G4bool; typedef long G4long; //G4double kInfinity = 1.0E37; // int BlockSize = 32; int Multiplier = 4; G4double twopi = 2.0*3.1415926535897932384626433...
79a59b355811c9e33aa1fedce3ce5c4fef8afa82.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source co...
79a59b355811c9e33aa1fedce3ce5c4fef8afa82.cu
/* * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list ...
ea395845140e960a294ffa27d74ab63d7b83ee8c.hip
// !!! This is a file automatically generated by hipify!!! #include <ctime> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/copy.h> #include <thrust/sort.h> #include <thrust/reduce.h> #include <thrust/iterator/constant...
ea395845140e960a294ffa27d74ab63d7b83ee8c.cu
#include <ctime> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/copy.h> #include <thrust/sort.h> #include <thrust/reduce.h> #include <thrust/iterator/constant_iterator.h> #include <string> #include <iostream> #include <s...
75073157e26705402144754db0d248ff36f9a0e6.hip
// !!! This is a file automatically generated by hipify!!! ///////////////////////////////////////////////////////////////////////// // Parallel Computing Assignment 3 // Chris Jimenez // 5/1/14 // This CUDA program finds the max integer in an array of random integers. // This program DOES NOT use shared meemory ...
75073157e26705402144754db0d248ff36f9a0e6.cu
///////////////////////////////////////////////////////////////////////// // Parallel Computing Assignment 3 // Chris Jimenez // 5/1/14 // This CUDA program finds the max integer in an array of random integers. // This program DOES NOT use shared meemory and DOES take thread // divergaence in to consideration. T...
f13e3cacf28838efe21f3101d036d70917084bed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2020-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...
f13e3cacf28838efe21f3101d036d70917084bed.cu
// Copyright (c) 2020-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 // /...
137f7cd2093f763d7503698fe343073d8896552f.hip
// !!! This is a file automatically generated by hipify!!! /* * Implementing fft4 algorithm * Input is multiple float32 vector, number given by B * No spliting * It's not a complete FFT * To be used recursively by gfft */ // C includes #include <stdio.h> #include <assert.h> #include <math.h> #include <stdlib.h> ...
137f7cd2093f763d7503698fe343073d8896552f.cu
/* * Implementing fft4 algorithm * Input is multiple float32 vector, number given by B * No spliting * It's not a complete FFT * To be used recursively by gfft */ // C includes #include <stdio.h> #include <assert.h> #include <math.h> #include <stdlib.h> #include <string.h> // CUDA includes #include <cuda_runtim...
621d32e059e2002c6653aa133ed27de68533d635.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * \file dnn/src/cuda/convolution3d/chanwise/fwd.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicabl...
621d32e059e2002c6653aa133ed27de68533d635.cu
/** * \file dnn/src/cuda/convolution3d/chanwise/fwd.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed ...
b518c36e097d4ba938eaaa9da04263701cfacb48.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <cutil.h> // Includes #include <stdio.h> // includes, project #include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#include <shrQATest.h> //#include <shrUtils.h> // incl...
b518c36e097d4ba938eaaa9da04263701cfacb48.cu
#include <stdio.h> #include <stdlib.h> #include <cutil.h> // Includes #include <stdio.h> // includes, project #include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#include <shrQATest.h> //#include <shrUtils.h> // includes CUDA #include <cuda_runtime.h> #define THREADS_PER_BL...
ed2ffe5c1766ad12246dbb976829125cf13f23ca.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <unittest/unittest.h> #include <thrust/set_operations.h> #include <thrust/sort.h> #include <thrust/execution_policy.h> template<typename Iterator1, typename Iterator2, typename Iterator3, typename Iterator4, typename Iter...
ed2ffe5c1766ad12246dbb976829125cf13f23ca.cu
#include <unittest/unittest.h> #include <thrust/set_operations.h> #include <thrust/sort.h> #include <thrust/execution_policy.h> template<typename Iterator1, typename Iterator2, typename Iterator3, typename Iterator4, typename Iterator5, typename Iterator6, typename Iterator7> __global__ void set_difference_by_key_ker...
4e8e96bf096ca63fd8a57ce1073f6b3f76d33f57.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //xfail:ASSERTION_ERROR //--blockDim=2 --gridDim=1 __global__ void f(int *c) { if(threadIdx.x == 0) { *c = 0; atomicAdd(c, 1); int x = *c; int y = *c; __assert(x == 0); __assert(...
4e8e96bf096ca63fd8a57ce1073f6b3f76d33f57.cu
//xfail:ASSERTION_ERROR //--blockDim=2 --gridDim=1 __global__ void f(int *c) { if(threadIdx.x == 0) { *c = 0; atomicAdd(c, 1); int x = *c; int y = *c; __assert(x == 0); __assert(y == 0); } }
b71658202df298d5031a10b05d8b5e4035049a01.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define EPS 1e-8 #define N 10000000 #define MAX_ERR 1e-6 //#define nb 23814 //no. of n bodies //#define nb 1350 //#define nb ...
b71658202df298d5031a10b05d8b5e4035049a01.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <cuda.h> #include <cuda_runtime.h> #define EPS 1e-8 #define N 10000000 #define MAX_ERR 1e-6 //#define nb 23814 //no. of n bodies //#define nb 1350 //#define nb 294 //#define nb 5766 //#define p 31 //no of threads in each block #defin...
978d5045d7d259fd2f023fe6cf8695c670e1b2b9.hip
// !!! This is a file automatically generated by hipify!!! #ifndef __HIPCC__ #define __HIPCC__ #endif #include "CUDASolver.hpp" #include "Discretization.cu" #include "device_launch_parameters.h" #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define BLK_SIZE 128 #define BLK_SIZE_2D 32 inline void gpuAssert...
978d5045d7d259fd2f023fe6cf8695c670e1b2b9.cu
#ifndef __CUDACC__ #define __CUDACC__ #endif #include "CUDASolver.hpp" #include "Discretization.cu" #include "device_launch_parameters.h" #include <cuda.h> #include <cuda_runtime.h> #define BLK_SIZE 128 #define BLK_SIZE_2D 32 inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort = true) { ...
8dbcd144b360d92a3ff8aad1ebb8b50b80b6f4da.hip
// !!! This is a file automatically generated by hipify!!! #include <errno.h> #include <stdio.h> #include <time.h> #include <assert.h> #include <stdlib.h> #include <math.h> #define BLOCK_SIZE 16 #define STR_SIZE 256 #define block_x_ 128 #define block_y_ 2 #define block_z_ 1 #define MAX_PD (3.0e6) /* required precisio...
8dbcd144b360d92a3ff8aad1ebb8b50b80b6f4da.cu
#include <errno.h> #include <stdio.h> #include <time.h> #include <assert.h> #include <stdlib.h> #include <math.h> #define BLOCK_SIZE 16 #define STR_SIZE 256 #define block_x_ 128 #define block_y_ 2 #define block_z_ 1 #define MAX_PD (3.0e6) /* required precision in degrees */ #define PRECISION 0.001 #define SPEC_HEAT_S...
571b3b0cbd721b4479cf05f812422db26199fe5e.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 @generated from magmablas/zgemm_reduce.cu, normal z -> ...
571b3b0cbd721b4479cf05f812422db26199fe5e.cu
/* -- MAGMA (version 2.2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2016 @generated from magmablas/zgemm_reduce.cu, normal z -> s, Sun Nov 20 20:20:28 2016 */ #include "magma_internal.h" #include "magma_templates.h"...