hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
4d92580c6cd08552658c57f93b5c7ddafb22da9a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <string>
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <iostream>
#define CUDA_ERROR_CHECK
#define CudaSafeCall( err ) ... | 4d92580c6cd08552658c57f93b5c7ddafb22da9a.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <string>
#include <cuda.h>
#include <stdio.h>
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <iostream>
#define CUDA_ERROR_CHECK
#define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ )
#define CudaCheckError() __c... |
0f5c1a5420e566c1ec95363bde6e815ef2bff922.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass
//--gridDim=64 --blockDim=256
template<class TData> __global__ void testKernel(TData *d_odata, TData *d_idata, int numElements);
template __global__ void testKernel<int>(int *d_odata, int *d_idata, int numEleme... | 0f5c1a5420e566c1ec95363bde6e815ef2bff922.cu | //pass
//--gridDim=64 --blockDim=256
template<class TData> __global__ void testKernel(TData *d_odata, TData *d_idata, int numElements);
template __global__ void testKernel<int>(int *d_odata, int *d_idata, int numElements);
template<class TData> __global__ void testKernel(
TData *d_odata,
TData *... |
b7be1642dfce67d6396d686e61540ffd8d1538a1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "counting.h"
#include <cstdio>
#include <cassert>
#include <thrust/scan.h>
#include <thrust/transform.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
__device__ __host_... | b7be1642dfce67d6396d686e61540ffd8d1538a1.cu | #include "counting.h"
#include <cstdio>
#include <cassert>
#include <thrust/scan.h>
#include <thrust/transform.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
__device__ __host__ int CeilDiv(int a, int b) { return (a-1)/b + 1; }
__device__ __host__ int CeilAlign(in... |
f2b2844229d74531fd98342a4cdc52acaa4d3dd5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any... | f2b2844229d74531fd98342a4cdc52acaa4d3dd5.cu | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modifications thereto. Any use, reproduction, disclosure, or distribution
* of this ... |
febd26683c943696ebfe7a7d5282123501fdf0ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdio.h>
using namespace std;
#define imin(a,b) (a<b?a:b)
const int N = 33*1024;
const int threadsPerBlock = 256;
const int blocksPerGrid = imin(32, (N+threadsPerBlock-1)/threadsPerBlock);
// dot ... | febd26683c943696ebfe7a7d5282123501fdf0ba.cu | #include <iostream>
#include <stdio.h>
using namespace std;
#define imin(a,b) (a<b?a:b)
const int N = 33*1024;
const int threadsPerBlock = 256;
const int blocksPerGrid = imin(32, (N+threadsPerBlock-1)/threadsPerBlock);
// dot on the kernel
__global__ void dot(float *a, float *b, float *c)
{
__shared__ float cach... |
ca246c826eb8ec41ebb758c02f8918e3c428a52a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void debug_ker(float* ptr, int addr){
//int i = blockIdx.x*blockDim.x + threadIdx.x;
printf("%d %f\n", addr, ptr[addr]);
} | ca246c826eb8ec41ebb758c02f8918e3c428a52a.cu | #include "includes.h"
__global__ void debug_ker(float* ptr, int addr){
//int i = blockIdx.x*blockDim.x + threadIdx.x;
printf("%d %f\n", addr, ptr[addr]);
} |
7fcee9b992851e471fe600980f47cc702a135574.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
*
*... | 7fcee9b992851e471fe600980f47cc702a135574.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 ... |
05b74cae14851eea6576c49b30695402cb9b5258.hip | // !!! This is a file automatically generated by hipify!!!
/*!
Count triangles using warp-granularity dynamic algorithm selection
*/
#include <iostream>
#include <roctracer/roctx.h>
#include "clara/clara.hpp"
#include <fmt/format.h>
#include "pangolin/algorithm/tc_edge_dysel.cuh"
#include "pangolin/bounded_buffer... | 05b74cae14851eea6576c49b30695402cb9b5258.cu | /*!
Count triangles using warp-granularity dynamic algorithm selection
*/
#include <iostream>
#include <nvToolsExt.h>
#include "clara/clara.hpp"
#include <fmt/format.h>
#include "pangolin/algorithm/tc_edge_dysel.cuh"
#include "pangolin/bounded_buffer.hpp"
#include "pangolin/configure.hpp"
#include "pangolin/cuda_... |
af698929bcb3a9caaa7d58fed47e593c7f1459fb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void transposeSmemUnrollPadDyn (float *out, float *in, const int nx, const int ny)
{
// dynamic shared memory
extern __shared__ float tile[];
unsigned int ix = blockDim.x * blockIdx.x * 2 + threadId... | af698929bcb3a9caaa7d58fed47e593c7f1459fb.cu | #include "includes.h"
__global__ void transposeSmemUnrollPadDyn (float *out, float *in, const int nx, const int ny)
{
// dynamic shared memory
extern __shared__ float tile[];
unsigned int ix = blockDim.x * blockIdx.x * 2 + threadIdx.x;
unsigned int iy = blockDim.y * blockIdx.y + threadIdx.y;
unsigned int ti = iy * nx... |
1e14912ebca30a13ca29192e1219b1062c84c67d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include "box3d3r-32x32-1-256_kernel.hu"
#define BENCH_DIM 3
#define BENCH_FPP 685
#define BENCH_RAD 3
#include "common.h"
double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool ... | 1e14912ebca30a13ca29192e1219b1062c84c67d.cu | #include <assert.h>
#include <stdio.h>
#include "box3d3r-32x32-1-256_kernel.hu"
#define BENCH_DIM 3
#define BENCH_FPP 685
#define BENCH_RAD 3
#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 + BENC... |
bf09315c2b2d1ad48510b32319c37549d8a93520.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "caffe/common.hpp"
#include "caffe/util/im2col.hpp"
namespace caffe {
template <typename Dtype>
__global__ void im2col_gpu_kernel(const int n, c... | bf09315c2b2d1ad48510b32319c37549d8a93520.cu | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "caffe/common.hpp"
#include "caffe/util/im2col.hpp"
namespace caffe {
template <typename Dtype>
__global__ void im2col_gpu_kernel(const int n, const Dtype* data_im,
const int height, const int width, const int kernel_h, const in... |
b328bfe75d152253caf70c2f156d47410b6e1c59.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void sobelEdgeDetectionSharedMemUnrollCoalsed(int *input, int *output, int width, int height, int thresh) {
__shared__ int shMem[4 * _TILESIZE_2 * _TILESIZE_2 ];
int num = _UNROLL_;
int size = num ... | b328bfe75d152253caf70c2f156d47410b6e1c59.cu | #include "includes.h"
__global__ void sobelEdgeDetectionSharedMemUnrollCoalsed(int *input, int *output, int width, int height, int thresh) {
__shared__ int shMem[4 * _TILESIZE_2 * _TILESIZE_2 ];
int num = _UNROLL_;
int size = num * _TILESIZE_2;
int i = blockIdx.x * (num * _TILESIZE_) + threadIdx.x;
int j = blockIdx.... |
99a12b78e233e8fbd52844ac91bb32be418edf58.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <time.h>
#include <iostream>
#include <vector>
#include <math.h>
#include <fstream>
void checkCUDAError(const char *msg);
#include <hip/hip_runtime.h>
using namespace std;
// --------------------INPUT DATA---------------------
con... | 99a12b78e233e8fbd52844ac91bb32be418edf58.cu | #include <stdio.h>
#include <time.h>
#include <iostream>
#include <vector>
#include <math.h>
#include <fstream>
void checkCUDAError(const char *msg);
#include <cuda_runtime.h>
using namespace std;
// --------------------INPUT DATA---------------------
const int Nx = 24, Ny = 120, Nz = 20; // Number of mass points
fl... |
5fc22ec6624d31dac3cdd01e43840b77af0a1468.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... | 5fc22ec6624d31dac3cdd01e43840b77af0a1468.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 ... |
c5ef1e899e3efbcec37588181e5bf22905b632f1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
__global__ void add(int *a, int *b, int *c){
*c=*a+*b;
}
int main(){
int i=5,j=10,res;
int *dev_i,*dev_j,*dev_res;
hipMalloc((void **)&dev_i,sizeof(int));
hipMalloc((void **)&dev_j,sizeof(int));
hipMalloc... | c5ef1e899e3efbcec37588181e5bf22905b632f1.cu | #include<stdio.h>
__global__ void add(int *a, int *b, int *c){
*c=*a+*b;
}
int main(){
int i=5,j=10,res;
int *dev_i,*dev_j,*dev_res;
cudaMalloc((void **)&dev_i,sizeof(int));
cudaMalloc((void **)&dev_j,sizeof(int));
cudaMalloc((void **)&dev_res,sizeof(int));
cudaMemcpy(dev_i,&i,sizeof(int),cudaMemcpyHostToD... |
bb4589e613fd38a32d33ff5889dd3c5433e53280.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <hip/hip_runtime.h>
#define LINE 100000
void readfile(int num[LINE]){
int temp;
int i;
FILE *fp;
fp = fopen("number.txt", "r");
i = 0;
if(fp == NULL){
printf("Error... | bb4589e613fd38a32d33ff5889dd3c5433e53280.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <cuda.h>
#define LINE 100000
void readfile(int num[LINE]){
int temp;
int i;
FILE *fp;
fp = fopen("number.txt", "r");
i = 0;
if(fp == NULL){
printf("Error loading file!!\n");
exit(1);
}else{
while(!feof(fp)){
fscanf(... |
d00553dfac74403890ea9bb7c0fb91e0f81899b0.hip | // !!! This is a file automatically generated by hipify!!!
#include <gputk.h>
#define gpuTKCheck(stmt) \
do { \
hipError_t err = stmt; \
if (err... | d00553dfac74403890ea9bb7c0fb91e0f81899b0.cu | #include <gputk.h>
#define gpuTKCheck(stmt) \
do { \
cudaError_t err = stmt; \
if (err != cudaSuccess) { ... |
598cea3c9f13a7334b8aed07be98adc92b592465.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 soft... | 598cea3c9f13a7334b8aed07be98adc92b592465.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... |
6397822154c63aeb3e28bfd90ef65d9841dc2741.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe/layers/reorg_layer.hpp"
#include "caffe/util/math_functions.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/greentea.hpp"
#include "caffe/greentea/greentea_math_functions.hpp"
#endif
namespace caffe {
#ifdef USE_R... | 6397822154c63aeb3e28bfd90ef65d9841dc2741.cu | #include "caffe/layers/reorg_layer.hpp"
#include "caffe/util/math_functions.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/greentea.hpp"
#include "caffe/greentea/greentea_math_functions.hpp"
#endif
namespace caffe {
#ifdef USE_CUDA
template <typename Dtype>
__global__ void reorg_kernel(const Dtype *x, int_tp w, int... |
5d8f36a3efea9d59fd79204920988fdd5e836df3.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1999-2017 Alibaba Group.
*
* 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/licens... | 5d8f36a3efea9d59fd79204920988fdd5e836df3.cu | /*
* Copyright 1999-2017 Alibaba Group.
*
* 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 a... |
506075af03ca28d170ad667c16ac21c5806be81e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Simulation of flow inside a 2D square cavity
using the lattice Boltzmann method (LBM)
Written by: Abhijit Joshi (abhijit@accelereyes.com)
Last modified on: Thursday, July 18 2013 @12:08 pm
Build instructions: make (uses... | 506075af03ca28d170ad667c16ac21c5806be81e.cu | /*
Simulation of flow inside a 2D square cavity
using the lattice Boltzmann method (LBM)
Written by: Abhijit Joshi (abhijit@accelereyes.com)
Last modified on: Thursday, July 18 2013 @12:08 pm
Build instructions: make (uses Makefile present in this folder)
Run instructions: optirun ./gpu_lbm
*/
#include<ios... |
06fa3779f2f0d40d36b0c6082dbbd39e7f370709.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C" __global__ void sgemm_nn_vec_128x64(
float* param_C,
const float* param_A,
const float* param_B,
float param_alpha,
float param_beta,
int param_flags,
int param_lda,
int param_... | 06fa3779f2f0d40d36b0c6082dbbd39e7f370709.cu |
extern "C" __global__ void sgemm_nn_vec_128x64(
float* param_C,
const float* param_A,
const float* param_B,
float param_alpha,
float param_beta,
int param_flags,
int param_lda,
int param_ldb,
int param_ldc,
int param_m,
int param_n,
int param_k,
i... |
34e57debd051f21f4a932c4fa8b987696c2baa17.hip | // !!! This is a file automatically generated by hipify!!!
//pass
//--blockDim=64 --gridDim=64 --no-inline
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <assert.h>
#define N 2//64
__device__ void bar(float x) {
assert(1);
}
__global__ void foo(int* A) {
bar(A[0]);
}
int main(){
int *b;
int *dev_... | 34e57debd051f21f4a932c4fa8b987696c2baa17.cu | //pass
//--blockDim=64 --gridDim=64 --no-inline
#include <cuda.h>
#include <stdio.h>
#include <assert.h>
#define N 2//64
__device__ void bar(float x) {
assert(1);
}
__global__ void foo(int* A) {
bar(A[0]);
}
int main(){
int *b;
int *dev_b;
b = (int*)malloc(N*sizeof(int));
for (int i = 0; i < N; ++i){
... |
1295933487162777c729d42bb098094ab1857c44.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<cuda.h>
#define row1 2 /* Number of rows of first matrix */
#define col1 3 /* Number of columns of first matrix */
#define row2 3 /* Number of rows of second matrix */
#define col2 2 /* Number of columns o... | 1295933487162777c729d42bb098094ab1857c44.cu | #include<stdio.h>
#include<cuda.h>
#define row1 2 /* Number of rows of first matrix */
#define col1 3 /* Number of columns of first matrix */
#define row2 3 /* Number of rows of second matrix */
#define col2 2 /* Number of columns of second matrix */
__global__ void matproductsharedmemory(int *l,int *m, int *n)
{
... |
8557e3834418b72af91b7493cfbe4ca7c60fe9e3.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2007 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 g... | 8557e3834418b72af91b7493cfbe4ca7c60fe9e3.cu | /*
* Copyright 1993-2007 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 cod... |
2fa0d8e821e9dd1fac3349d0fa572622f6035c7b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct hipComplex {
float r;
float i;
__device__ hipComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
re... | 2fa0d8e821e9dd1fac3349d0fa572622f6035c7b.cu | #include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct cuComplex {
float r;
float i;
__device__ cuComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
return r * r + i * i;
}
__device__ cuComplex operator*(const cuComplex& a) {
... |
b7bff223e2d184d33a2fd719657936423fe540f3.hip | // !!! This is a file automatically generated by hipify!!!
/*
#include <cmath>
#include <cstdio>
#include <hip/hip_runtime.h>
#include "dock.h"
#include "gpu.cuh"
*/
/*
#define expf(a) (a)
#define powf(a,b) (a+b)
#define logf(a) (a)
#define sqrtf(a) (a)
*/
__device__ void
CalcEnergy_d (const int bidx, Ligand * ... | b7bff223e2d184d33a2fd719657936423fe540f3.cu | /*
#include <cmath>
#include <cstdio>
#include <cuda.h>
#include "dock.h"
#include "gpu.cuh"
*/
/*
#define expf(a) (a)
#define powf(a,b) (a+b)
#define logf(a) (a)
#define sqrtf(a) (a)
*/
__device__ void
CalcEnergy_d (const int bidx, Ligand * __restrict__ mylig, const Protein * myprt)
{
// reduce all points on... |
f3b6b26f8a43ebc1cfd718196d1d0c8864c6b830.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this soft... | f3b6b26f8a43ebc1cfd718196d1d0c8864c6b830.cu | /*
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
bc72cb80f219d54a8158b9266c084df6e071690e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************************
*
* kernel.cu
*
*******************************************************************************************/
#include <... | bc72cb80f219d54a8158b9266c084df6e071690e.cu | /*******************************************************************************************
*
* kernel.cu
*
*******************************************************************************************/
#include <math.h>
#include "support.h"
#define BLOCK_SIZE 256
__global__ void findCluster(float... |
fed3bb5b111858502b5b243dbbdc46539de33109.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/// managed mamory analysis - cuda lab cpu only mamory access
#include <stdio.h>
#include <stdlib.h>
#include <chrono>
using namespace std::chrono;
__global__
void deviceKernel(int *a, int N)
{
int idx = threadIdx.x + blockIdx.x ... | fed3bb5b111858502b5b243dbbdc46539de33109.cu | /// managed mamory analysis - cuda lab cpu only mamory access
#include <stdio.h>
#include <stdlib.h>
#include <chrono>
using namespace std::chrono;
__global__
void deviceKernel(int *a, int N)
{
int idx = threadIdx.x + blockIdx.x * blockDim.x;
int stride = blockDim.x * gridDim.x;
for (int i = idx; i < N; i += st... |
7ded51bb17148a65bb0953a5208346fec289911f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "..\catch.hpp"
#include "..\BaseCudaTestHandler.h"
#define TEST_CUDA_CHECK_RETURN
//---------------------------------------------------------------------------------------------------
#include "..\..\GPUPatternMining/Inst... | 7ded51bb17148a65bb0953a5208346fec289911f.cu | #include "..\catch.hpp"
#include "..\BaseCudaTestHandler.h"
#define TEST_CUDA_CHECK_RETURN
//---------------------------------------------------------------------------------------------------
#include "..\..\GPUPatternMining/InstanceTree/InstanceTreeHelpers.h"
#include "../../GPUPatternMining/InstanceTree/IntanceTab... |
a01441a22b1fc338102f04685b4755bdfebbadf5.hip | // !!! This is a file automatically generated by hipify!!!
#include "noopstateless.h"
void crossbowKernelNoopStateless (void *args) {
crossbowStreamP s = (crossbowStreamP) args;
crossbowVariableP theInput = (crossbowVariableP) (s->op->kernel->inputs[0]);
crossbowDataBufferP input = crossbowStreamGetCurrentInput ... | a01441a22b1fc338102f04685b4755bdfebbadf5.cu | #include "noopstateless.h"
void crossbowKernelNoopStateless (void *args) {
crossbowStreamP s = (crossbowStreamP) args;
crossbowVariableP theInput = (crossbowVariableP) (s->op->kernel->inputs[0]);
crossbowDataBufferP input = crossbowStreamGetCurrentInput (s);
int length = theInput->schema->bytes;
crossbowDataB... |
0cfe480d67662412ca07bf2c3ff314c3a5081ac5.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <fstream>
#include <ctime>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb/stb_image_write.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <helperUtils.cuh>
using namespace TinyRT;
__global__... | 0cfe480d67662412ca07bf2c3ff314c3a5081ac5.cu | #include <iostream>
#include <fstream>
#include <ctime>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb/stb_image_write.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <helperUtils.cuh>
using namespace TinyRT;
__global__ void render(float* const pixelBuffer, const int imageWidth, c... |
e367b7a9d31f3460d9ee611c8a4bedb7a12f76d7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Unittests for the boundary conditions
* @file TestGpuStream.cu
* @author Adam Koleszar (adam.koleszar@gmail.com)
*/
#include "CuTest.h"
#include "GpuFunctions.h"
#include "ShellFunctions.h"
#include "ComputeResiduals.h"
#i... | e367b7a9d31f3460d9ee611c8a4bedb7a12f76d7.cu | /**
* Unittests for the boundary conditions
* @file TestGpuStream.cu
* @author Adam Koleszar (adam.koleszar@gmail.com)
*/
#include "CuTest.h"
#include "GpuFunctions.h"
#include "ShellFunctions.h"
#include "ComputeResiduals.h"
#include "FloatType.h"
#include "TestUtils.h"
#include "ArrayUtils.h"
#include "GpuConstan... |
fc837445645096598392042ae26755315d9239f5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda.h>
#include<cuda_runtime.h>
#include<stdio.h>
#include<stdlib.h>
#include<cmath>
#define TILE_SIZE 4 // Tile size and block size, both are taken as 32
__device__ void store_full_row(float*,float*,int,int, in... | fc837445645096598392042ae26755315d9239f5.cu | #include<cuda.h>
#include<cuda_runtime.h>
#include<stdio.h>
#include<stdlib.h>
#include<cmath>
#define TILE_SIZE 4 // Tile size and block size, both are taken as 32
__device__ void store_full_row(float*,float*,int,int, int, int);
__device__ void load_full_row(float*,float*,int,int, int, int);
__device__ void... |
b7ef1324542929d61f54d2999610e84ea30aab89.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... | b7ef1324542929d61f54d2999610e84ea30aab89.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 ... |
3aba78bf97d7ab179b5f4dfbf13c4dd7b17836c7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernal.cuh"
#include <cmath>
#include <assert.h>
//TODO CHANGE EVERYTHING TO POINTERS, WHY DIDNT I DO THAT IN THE FIRST PLACE
//TODO GET RID OFF ALL THE VECTOR3 TO FLOAT3 TRANSLATIONS
__device__ bool CheckBounding(float3... | 3aba78bf97d7ab179b5f4dfbf13c4dd7b17836c7.cu | #include "kernal.cuh"
#include <cmath>
#include <assert.h>
//TODO CHANGE EVERYTHING TO POINTERS, WHY DIDNT I DO THAT IN THE FIRST PLACE
//TODO GET RID OFF ALL THE VECTOR3 TO FLOAT3 TRANSLATIONS
__device__ bool CheckBounding(float3 nPos, float aggroRange, float3 pos, float3 halfDim)
{
float dist = abs(pos.x - nPos.x)... |
06aa2a7445da3387a5a981a827d46eb6c282ef3e.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
int main( void ) {
hipDeviceProp_t prop;
int count;
hipError_t err = hipGetDeviceCount( &count );
if (err != hipSuccess) {
printf("Error: %s", hipGetErrorString(err));
exit(EXIT_FAILURE);
}
for (int i... | 06aa2a7445da3387a5a981a827d46eb6c282ef3e.cu | #include <stdio.h>
int main( void ) {
cudaDeviceProp prop;
int count;
cudaError_t err = cudaGetDeviceCount( &count );
if (err != cudaSuccess) {
printf("Error: %s", cudaGetErrorString(err));
exit(EXIT_FAILURE);
}
for (int i=0; i< count; i++) {
err = cudaGetDevicePropert... |
1223b9764ca46182dd3612af40fb907bd6fbeb48.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/lstm_unit_layer.hpp"
namespace caffe {
template <typename Dtype>
__device__ Dtype cuda_sigmoid(Dtype x) {
return 1. / ... | 1223b9764ca46182dd3612af40fb907bd6fbeb48.cu | #include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/lstm_unit_layer.hpp"
namespace caffe {
template <typename Dtype>
__device__ Dtype cuda_sigmoid(Dtype x) {
return 1. / (1. + exp(-x));
}
template <typename Dtype>
__device__ Dtype cuda_sigmoid_diff(Dtype x)... |
ed936017eaede518ac4fa67116c8d2832d6c21cb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <string>
cv::Mat imageInputRGBA;
cv::Mat imageOutputRGBA;
uchar4 *d_inputImageRGBA__;
uchar4 *d_outputImag... | ed936017eaede518ac4fa67116c8d2832d6c21cb.cu | #include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <string>
cv::Mat imageInputRGBA;
cv::Mat imageOutputRGBA;
uchar4 *d_inputImageRGBA__;
uchar4 *d_outputImageRGBA__;
float *h_filter__;
size_t numRows() { return imageInputRGBA.rows; }
size_t nu... |
a571cb35e4255e51fa73c5256233577fa10dc0a7.hip | // !!! This is a file automatically generated by hipify!!!
/*-------------------------------------------------------------------------
*
* CUDA function for backrpojection using FDK weigts for CBCT
*
*
* CODE by Ander Biguri
* Optimized and modified by RB
* ---------------------------------------------... | a571cb35e4255e51fa73c5256233577fa10dc0a7.cu | /*-------------------------------------------------------------------------
*
* CUDA function for backrpojection using FDK weigts for CBCT
*
*
* CODE by Ander Biguri
* Optimized and modified by RB
* ---------------------------------------------------------------------------
* -------------------------... |
d7e3ac4b75e97a28f9bf20ee4e9b2bf214128941.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "test_comm.h"
void host_matrixMul(double* pC, double* pA,double *pB, int mA, int nB)
{
int i, j;
double *data_in1_d, *data_in2_d, *data_out_d;
float *data_in1_f, *data_in2_f, *data_out_f;
float *data_in1_f_gpu, *data_in2_... | d7e3ac4b75e97a28f9bf20ee4e9b2bf214128941.cu | #include "test_comm.h"
void host_matrixMul(double* pC, double* pA,double *pB, int mA, int nB)
{
int i, j;
double *data_in1_d, *data_in2_d, *data_out_d;
float *data_in1_f, *data_in2_f, *data_out_f;
float *data_in1_f_gpu, *data_in2_f_gpu , *data_out_f_gpu;
int sizeBlock;
sizeBlock = VECTOR_BLOCK_SIZE;
int sizeA = mA*nB... |
038301f0a0f55157370fa1b37e8b350440e7d778.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2014 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
*
* ... | 038301f0a0f55157370fa1b37e8b350440e7d778.cu | /*
* Copyright 2014 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 ... |
7eeb8eabea3ecc8b01e164fefda5ed8041beb72a.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... | 7eeb8eabea3ecc8b01e164fefda5ed8041beb72a.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 ... |
57c8c6d9e4b59b9e1a3ce5f0c87fa4f6ef06c83f.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "include/SWE.cuh"
#include "include/utils.cuh"
#include "../include/structs.h"
#include "../include/macros.h"
__device__ void calculateFeqSWE(prec* feq, prec* localMacroscopic, prec e){
prec factor = 1 / (9 * e*e);
pre... | 57c8c6d9e4b59b9e1a3ce5f0c87fa4f6ef06c83f.cu | #include <cuda_runtime.h>
#include "include/SWE.cuh"
#include "include/utils.cuh"
#include "../include/structs.h"
#include "../include/macros.h"
__device__ void calculateFeqSWE(prec* feq, prec* localMacroscopic, prec e){
prec factor = 1 / (9 * e*e);
prec localh = localMacroscopic[0];
prec localux = localMacroscop... |
cf6aab719b1b38299975b6725b8b6370615acade.hip | // !!! This is a file automatically generated by hipify!!!
#include "cLayer.h"
#include <ImageIO.h>
//------------------------------------------------------------------------
//-------------------------Host Funcitons Below-----------------------
//--------------------------------------------------------------------... | cf6aab719b1b38299975b6725b8b6370615acade.cu |
#include "cLayer.h"
#include <ImageIO.h>
//------------------------------------------------------------------------
//-------------------------Host Funcitons Below-----------------------
//------------------------------------------------------------------------
// According to the type of the layer
// Initialize t... |
bbb9b412b3cf5574977f284ef594531b19577e6e.hip | // !!! This is a file automatically generated by hipify!!!
#include "../THCTensorSort.cuh"
#include "THHTensor.hpp"
#include "THHStream.h"
#include "../generic/THCTensorSort.cu"
#include <THH/THHGenerateFloatType.h>
| bbb9b412b3cf5574977f284ef594531b19577e6e.cu | #include "../THCTensorSort.cuh"
#include "THCTensor.hpp"
#include "THCStream.h"
#include "../generic/THCTensorSort.cu"
#include <THC/THCGenerateFloatType.h>
|
340c24c11386d3eb1ebb1221063a47c0dc11d4a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/thresholded_relu_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void ThresholdedReluKernel(const int N, const T* X, T* Y, T alpha_) {
CUDA_1D_... | 340c24c11386d3eb1ebb1221063a47c0dc11d4a6.cu | #include "caffe2/core/context_gpu.h"
#include "caffe2/operators/thresholded_relu_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void ThresholdedReluKernel(const int N, const T* X, T* Y, T alpha_) {
CUDA_1D_KERNEL_LOOP(i, N) {
Y[i] = X[i] > alpha_ ? X[i] : 0;
}
}
template <typename T>
__... |
89979e9c01b7ce16d62a733ceb41b16a85366459.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "LeakyReluPlugin.h"
//cuda
__global__ void _leakyReluKer(float const *in, float *out, int size, float negative_slope) {
int index = threadIdx.x + blockIdx.x * blockDim.x;
if (index >= size)
return ;
if... | 89979e9c01b7ce16d62a733ceb41b16a85366459.cu | #include "LeakyReluPlugin.h"
//cuda
__global__ void _leakyReluKer(float const *in, float *out, int size, float negative_slope) {
int index = threadIdx.x + blockIdx.x * blockDim.x;
if (index >= size)
return ;
if (in[index] < 0)
out[index] = in[index] * negative_slope;
else
out[i... |
bd8b57335947bca85221c85b0bfa846840e9b76f.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 zlarfbx.cu normal z -> d, Fri Jan 30 19:... | bd8b57335947bca85221c85b0bfa846840e9b76f.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zlarfbx.cu normal z -> d, Fri Jan 30 19:00:08 2015
*/
#include "common_magma.h"
#include "commonblas_d.h"
#include "magma_templ... |
4dd8e3d86d23f60bd8911fa44bdef5617acc33b7.hip | // !!! This is a file automatically generated by hipify!!!
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <assert.h>
#include <opencv2/opencv.hpp>
using namespace std;
#define PGMHeaderSize 0x40
#define TILE_W 16
#define TILE_H 16... | 4dd8e3d86d23f60bd8911fa44bdef5617acc33b7.cu | #include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <assert.h>
#include <opencv2/opencv.hpp>
using namespace std;
#define PGMHeaderSize 0x40
#define TILE_W 16
#define TILE_H 16
#define Rx 2 // filter radius ... |
2a0428665e28f2bcbfe3f0ce121f1881a5073ea2.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <signal.h>
//#include "mkl.h"
#include <hip/hip_runtime.h>
#include <hipsparse.h>
static volatile int running = 1;
void interrupt_handler(int signal) {
running = 0;
}
#define cudaCh... | 2a0428665e28f2bcbfe3f0ce121f1881a5073ea2.cu | #include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <signal.h>
//#include "mkl.h"
#include <cuda_runtime.h>
#include <cusparse.h>
static volatile int running = 1;
void interrupt_handler(int signal) {
running = 0;
}
#define cudaCheck(result) __cudaCheck(result, __FILE__, __LINE__)
inline cuda... |
92f81b354cbd1a75ccd81ac424aec0446a44949b.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... | 92f81b354cbd1a75ccd81ac424aec0446a44949b.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... |
b205163d5e356909a1be3c74b0f9e8b9127aaae5.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Dispatch.h>
#include <ATen/ExpandUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/hip/Dis... | b205163d5e356909a1be3c74b0f9e8b9127aaae5.cu | #include <ATen/Dispatch.h>
#include <ATen/ExpandUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
#include <curand.h>
#include <cur... |
272b1827a4d8eec990f07bef6e20fb4036a803b5.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 ... | 272b1827a4d8eec990f07bef6e20fb4036a803b5.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... |
079499925bf57cc26959f0d1440d86149d6f67ed.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "aes.h"
// state - array holding the intermediate results during decryption.
typedef uint8_t state_t[4][4];
// The array that stores the round keys.
//__device__ static const uint8_t* RoundKey;
__device__ uintmax_t get_g... | 079499925bf57cc26959f0d1440d86149d6f67ed.cu | #include "aes.h"
// state - array holding the intermediate results during decryption.
typedef uint8_t state_t[4][4];
// The array that stores the round keys.
//__device__ static const uint8_t* RoundKey;
__device__ uintmax_t get_global_index(void)
{
return blockIdx.x * blockDim.x + threadIdx.x;
}
// prints string a... |
d9e97d3b7a97141103bc516dce14ee633bd78237.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... | d9e97d3b7a97141103bc516dce14ee633bd78237.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 ... |
e15c9514455564bb5a6d302b146a8c8373804265.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <df/optimization/deformationGraphRegularization.h>
#include <df/util/cudaHelpers.h>
#include <sophus/se3.hpp> // TODO
#include <df/util/dualQuaternion.h> // TODO
namespace df {
//template <typename Scalar, int K>
//stru... | e15c9514455564bb5a6d302b146a8c8373804265.cu | #include <df/optimization/deformationGraphRegularization.h>
#include <df/util/cudaHelpers.h>
#include <sophus/se3.hpp> // TODO
#include <df/util/dualQuaternion.h> // TODO
namespace df {
//template <typename Scalar, int K>
//struct InsertionIndexSearchUnroller {
// typedef Eigen::Matrix<int,K,1,Eigen::DontAlign>... |
da726d40717396d7ea008eeabbbaa36fe5ee3421.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//#define DOPRINT
// A is the matrix, i is the column index, and m is the # of rows
#define COL(A, i, m) (A + (i)*m)
// A is the matrix, i is the row index, and n is the # of columns
#define ROW(A, i) (A + i)
// A is the matrix... | da726d40717396d7ea008eeabbbaa36fe5ee3421.cu | //#define DOPRINT
// A is the matrix, i is the column index, and m is the # of rows
#define COL(A, i, m) (A + (i)*m)
// A is the matrix, i is the row index, and n is the # of columns
#define ROW(A, i) (A + i)
// A is the matrix, i is the row number, j is the column number, and m is the # of rows
#define ENTRY(A, i... |
9a36cb98c69243972937bf3afcf4fea4bf98552f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/elementwise_op.h"
#include "caffe2/operators/logit_op.h"
namespace caffe2 {
template <typename T>
__global__ void LogitKernel(const int N, const T* X, const float eps... | 9a36cb98c69243972937bf3afcf4fea4bf98552f.cu | #include "caffe2/core/context_gpu.h"
#include "caffe2/operators/elementwise_op.h"
#include "caffe2/operators/logit_op.h"
namespace caffe2 {
template <typename T>
__global__ void LogitKernel(const int N, const T* X, const float eps, T* Y) {
CUDA_1D_KERNEL_LOOP(i, N) {
Y[i] = fminf(X[i], (1.0 - eps));
Y[i] = ... |
7ad4fa056b4112cf3f23aae2ef7a715864998a63.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <ctime>
#include <math.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#define N (500)
#define k (20)
const int threadsPerBlock = 1024;
__global__ void sortKernel(in... | 7ad4fa056b4112cf3f23aae2ef7a715864998a63.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <ctime>
#include <math.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#define N (500)
#define k (20)
const int threadsPerBlock = 1024;
__global__ void sortKernel(int* dev_arr, int* helper)
{
int schet = 0;
int powtor ... |
4846fc4c26ee2693cf71a81bec764806fcb31553.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <hip/hip_runtime.h>
using namespace std;
#define THREAD_SIZE 8
#define FUNC(a,b) ((a) + (b) - 1)/(b)
#define HD2(x0,y0) ((x0) + (y0) * d... | 4846fc4c26ee2693cf71a81bec764806fcb31553.cu | #include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <cuda.h>
using namespace std;
#define THREAD_SIZE 8
#define FUNC(a,b) ((a) + (b) - 1)/(b)
#define HD2(x0,y0) ((x0) + (y0) * data->x)
#define HD2_1(x0,y0) ((x0) + (y0) * data.x)
#define HD3(x0,y0,... |
1f83cd6d273edc17b570e3b666caeb63d0a06166.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
/*
This code is copied/adapted from
https://devblogs.nvidia.com/how-query-device-properties-and-handle-errors-cuda-cc/
*/
using namespace std;
int main(int argc, char const *argv[]) {
/* code */
int nDevices = 0;
hipGetDeviceCount(&nD... | 1f83cd6d273edc17b570e3b666caeb63d0a06166.cu | #include <iostream>
/*
This code is copied/adapted from
https://devblogs.nvidia.com/how-query-device-properties-and-handle-errors-cuda-cc/
*/
using namespace std;
int main(int argc, char const *argv[]) {
/* code */
int nDevices = 0;
cudaGetDeviceCount(&nDevices);
//sets nDevices to the number of CUDA capable d... |
b3c70949f4bad879fd20ebf93e597f32ece51914.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdiocu.h>
#include <stringcu.h>
#include <pwdcu.h>
#include <assert.h>
static __global__ void g_pwd_test1() {
printf("pwd_test1\n");
//// GETPWUID, GETPWNAM, GETPWENT, ENDPWENT, SETPWENT ////
//extern __device__ stru... | b3c70949f4bad879fd20ebf93e597f32ece51914.cu | #include <stdiocu.h>
#include <stringcu.h>
#include <pwdcu.h>
#include <assert.h>
static __global__ void g_pwd_test1() {
printf("pwd_test1\n");
//// GETPWUID, GETPWNAM, GETPWENT, ENDPWENT, SETPWENT ////
//extern __device__ struct passwd *getpwuid_(uid_t uid);
//extern __device__ struct passwd *getpwnam_(const cha... |
809b14761e3373c1a3942d93a63c6690f6eee7f7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void square(float *d_out, float *d_in) {
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f * f;
}
int main(int argc, char **argv) {
const int ARRAY_SIZE = 1024;
const i... | 809b14761e3373c1a3942d93a63c6690f6eee7f7.cu | #include <stdio.h>
__global__ void square(float *d_out, float *d_in) {
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f * f;
}
int main(int argc, char **argv) {
const int ARRAY_SIZE = 1024;
const int ARRRAY_BYTES = ARRAY_SIZE * sizeof(float);
float h_in[ARRAY_SIZE];
for (int... |
7220760e533d3215de7586ced60c4fbd3484fbfe.hip | // !!! This is a file automatically generated by hipify!!!
/*
* FluxFunctions.cu
*
* Created on: Oct 22, 2015
* Author: bazow
*/
#include <stdlib.h>
#include <stdio.h> // for printf
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "edu/osu/rhic/trunk/hydro/FluxFunctions.cuh"
#include "ed... | 7220760e533d3215de7586ced60c4fbd3484fbfe.cu | /*
* FluxFunctions.cu
*
* Created on: Oct 22, 2015
* Author: bazow
*/
#include <stdlib.h>
#include <stdio.h> // for printf
#include <cuda.h>
#include <cuda_runtime.h>
#include "edu/osu/rhic/trunk/hydro/FluxFunctions.cuh"
#include "edu/osu/rhic/trunk/hydro/EnergyMomentumTensor.cuh"
#include "edu/osu/rhic/t... |
65e8813816e2ed152a0337c5f18b1192be62b8cd.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 the License ... | 65e8813816e2ed152a0337c5f18b1192be62b8cd.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 by applicable law or... |
de64e80010e1d6e08c6604da6d71638f430b2bd0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stddef.h>
#include <stdint.h>
#include "model_gpu_utils.h"
#include "mixed_tentusscher_myo_epi_2004_S1_14.h"
extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu)
{
print_to_stdout_and_file("U... | de64e80010e1d6e08c6604da6d71638f430b2bd0.cu | #include <stddef.h>
#include <stdint.h>
#include "model_gpu_utils.h"
#include "mixed_tentusscher_myo_epi_2004_S1_14.h"
extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu)
{
print_to_stdout_and_file("Using mixed version of TenTusscher 2004 myocardium + epicardium GPU model\n\n");
// ... |
d54adaa5a77e0899ce0f2e41d93d6c9b01f0c90d.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
using namespace std;
int main()
{
cout << "Hello CMake." << endl;
return 0;
}
| d54adaa5a77e0899ce0f2e41d93d6c9b01f0c90d.cu | #include <cuda_runtime.h>
#include <device_launch_parameters.h>
using namespace std;
int main()
{
cout << "Hello CMake." << endl;
return 0;
}
|
d721d025dff044f085dee857e3a6022ed4d25275.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void kernel( void ) {
}
int main( void ) {
hipLaunchKernelGGL(( kernel), dim3(1), dim3(1), 0, 0, );
printf( "Hello, World!\n" );
return 0;
}
| d721d025dff044f085dee857e3a6022ed4d25275.cu | #include <stdio.h>
__global__ void kernel( void ) {
}
int main( void ) {
kernel<<<1, 1>>>();
printf( "Hello, World!\n" );
return 0;
}
|
dd9dd896add7590ca58df211f80244d93c49ac5e.hip | // !!! This is a file automatically generated by hipify!!!
#include "device_launch_parameters.h"
#include <hip/hip_runtime.h>
#include "support.cuh"
#include <stdlib.h>
#include "htpykinematics.cuh"
__device__ void FSYS(Vect<nV + 1> *Z, Vect<nP> *q, Vect<nV> *eval){
Cplx A = Z[0].vals[0];
Cplx B = Z[0].vals[1];
C... | dd9dd896add7590ca58df211f80244d93c49ac5e.cu | #include "device_launch_parameters.h"
#include <cuda_runtime.h>
#include "support.cuh"
#include <stdlib.h>
#include "htpykinematics.cuh"
__device__ void FSYS(Vect<nV + 1> *Z, Vect<nP> *q, Vect<nV> *eval){
Cplx A = Z[0].vals[0];
Cplx B = Z[0].vals[1];
Cplx C = Z[0].vals[2];
Cplx D = Z[0].vals[3];
Cplx F = Z[0].v... |
aaf06581b51e426aaaa29b85d5292094ecfe7ab0.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... | aaf06581b51e426aaaa29b85d5292094ecfe7ab0.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 ... |
efc1dd2304e600e018426dcd1fed1f53b1d0b33a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "transform.h"
__device__ float op(float d1,float *params) {
return -d1;
}
extern "C"
__global__ void neg_strided_float(int n,int idx,float *dy,int incy,float *params,float *result) {
transform(n,idx,dy,inc... | efc1dd2304e600e018426dcd1fed1f53b1d0b33a.cu | #include "transform.h"
__device__ float op(float d1,float *params) {
return -d1;
}
extern "C"
__global__ void neg_strided_float(int n,int idx,float *dy,int incy,float *params,float *result) {
transform(n,idx,dy,incy,params,result);
}
|
40903e878e7a31fa844958f4fc94a602b981aef4.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 "deInterleave_kernel2.cu"
#include<chrono>
#include<iostream>
usi... | 40903e878e7a31fa844958f4fc94a602b981aef4.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 "deInterleave_kernel2.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,... |
2f56ee8e389502be0d2e7c49088bfd68135d3c90.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<cuda.h>
#define NUM_OF_X_THREADS 16
#define NUM_OF_Y_THREADS 16
#define TOTAL_THREADS (NUM_OF_X_THREADS * NUM_OF_Y_THREADS)
#define TILE_WIDTH 16
/* Kernel to take input signal 1
* f(x) = x; where x = ... | 2f56ee8e389502be0d2e7c49088bfd68135d3c90.cu | #include<stdio.h>
#include<cuda.h>
#define NUM_OF_X_THREADS 16
#define NUM_OF_Y_THREADS 16
#define TOTAL_THREADS (NUM_OF_X_THREADS * NUM_OF_Y_THREADS)
#define TILE_WIDTH 16
/* Kernel to take input signal 1
* f(x) = x; where x = 0 to n-1
*/
__global__ void inputKernel(float *x, int n, int N)
{
int ix = blockIdx.... |
b6605ca2660baefc3a37ee77982f79b9135cc764.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2020, Carnegie Mellon University
* See LICENSE for details
*/
/***************************************************************************
* SPL Matrix *
* ... | b6605ca2660baefc3a37ee77982f79b9135cc764.cu | /*
* Copyright (c) 2018-2020, Carnegie Mellon University
* See LICENSE for details
*/
/***************************************************************************
* SPL Matrix *
* ... |
7bf125cc396902c230f576c039ec460c244d6d02.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef HARMONIC_SUMMING_KERNEL_H_
#define HARMONIC_SUMMING_KERNEL_H_
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "headers/params.h"
__global__ void PHS_GPU_kernel(float const* __restrict__ d_input, float *d_output_SNR, ushort *d_out... | 7bf125cc396902c230f576c039ec460c244d6d02.cu |
#ifndef HARMONIC_SUMMING_KERNEL_H_
#define HARMONIC_SUMMING_KERNEL_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include "headers/params.h"
__global__ void PHS_GPU_kernel(float const* __restrict__ d_input, float *d_output_SNR, ushort *d_output_harmonics, float *d_MSD, int nTimesamples, int nSpectra, int nHarmoni... |
41dfa97726ce3dd44205ea0266bd24ebf4a56c9d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: joaander
#include "CellListGPU.cuh"
#pragma GCC diagnost... | 41dfa97726ce3dd44205ea0266bd24ebf4a56c9d.cu | // Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: joaander
#include "CellListGPU.cuh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#include <thrust/device_ptr.h>
#in... |
593bfce35fe5432178a17a8d8850f6233849dc62.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/native/TensorAdvancedIndexing.h>
#include <ATen/native/IndexingUtils.h>
#include <ATen/ATen.h>
#include <ATen/ceil_div.h>
#include <ATen/NativeFunctions.h>
#include <ATen/ExpandUtils.h>
#include <ATen/MemoryOverlap.h... | 593bfce35fe5432178a17a8d8850f6233849dc62.cu | #include <ATen/native/TensorAdvancedIndexing.h>
#include <ATen/native/IndexingUtils.h>
#include <ATen/ATen.h>
#include <ATen/ceil_div.h>
#include <ATen/NativeFunctions.h>
#include <ATen/ExpandUtils.h>
#include <ATen/MemoryOverlap.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Loops.cuh>
#include... |
0c39bafe7d841e6c21c87dd9a058096987fd4d4b.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Context.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/PinnedMemoryAllocator.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/hip/detail/IndexUtils.cuh>
#include <ATen/hi... | 0c39bafe7d841e6c21c87dd9a058096987fd4d4b.cu | #include <ATen/Context.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/PinnedMemoryAllocator.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/cuda/CUDASolver.h>
#include <ATen/cuda/CUDABlas.h>
#inc... |
bf271cefaf3aca23cc06d2339e783932aedcf74b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/Config.h>
#include <ATen/Dispatch.h>
#include <ATen/Utils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/detail/KernelUtils.h>
#include <ATen/hip/detail... | bf271cefaf3aca23cc06d2339e783932aedcf74b.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/Config.h>
#include <ATen/Dispatch.h>
#include <ATen/Utils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <ATen/cuda/detail/OffsetCalculator.cuh>
#include <ATen/detail/CUDAHooksInterface.h>
#include <ATen/na... |
b60fb489b8d7441a324e1bfa1b2f5e884a203232.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <math.h>
#include <hip/hip_runtime.h>
// #include <helper_cuda.h>
// the __global__ keyword changes the function to a CUDA Kernel
__global__
void add(int n, float *x, float *y, float *z)
{
// index of the current thread within ... | b60fb489b8d7441a324e1bfa1b2f5e884a203232.cu | #include <iostream>
#include <math.h>
#include <cuda_runtime.h>
// #include <helper_cuda.h>
// the __global__ keyword changes the function to a CUDA Kernel
__global__
void add(int n, float *x, float *y, float *z)
{
// index of the current thread within it's block
int index = blockIdx.x * blockDim.x + threadIdx... |
5bb5689f4628b06f6406a75a2383f1f7d116ac28.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void gcrs_m_1_w_4_coding_dotprod(
int k, int index,
const long *__restrict in,
long *__restrict out,
const unsigned int *__restrict bm,
int size)
{
HIP_DYNAMIC_SHARED(long, shared_data);
int w = 4;
in... | 5bb5689f4628b06f6406a75a2383f1f7d116ac28.cu | __global__ void gcrs_m_1_w_4_coding_dotprod(
int k, int index,
const long *__restrict in,
long *__restrict out,
const unsigned int *__restrict bm,
int size)
{
HIP_DYNAMIC_SHARED(long, shared_data);
int w = 4;
int i,j;
long result = 0;
const unsigned long fullOneBit = 0xFFFFFFFFFFFFFFFF;
int... |
3cd2ab0d07a314fb56e773aae5a4e63d3fd83880.hip | // !!! This is a file automatically generated by hipify!!!
#include <gputk.h>
#define gpuTKCheck(stmt) \
do { \
hipError_t err = stmt; \
if (err... | 3cd2ab0d07a314fb56e773aae5a4e63d3fd83880.cu | #include <gputk.h>
#define gpuTKCheck(stmt) \
do { \
cudaError_t err = stmt; \
if (err != cudaSuccess) { ... |
92941643b6093224db6b07477e679b649e6091aa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <f... | 92941643b6093224db6b07477e679b649e6091aa.cu | #include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <float.h>
#include <sys/time.h>
#define BLOCK_X 16
#define BLOCK_Y 16
#... |
2cf83ffeae0e14e97c32cfeb20a6882418783d0d.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include "hip/hip_runtime.h"
using namespace std;
__global__ void fast_radix_sort(int *array, int array_len) {
extern __shared__ int tmp_array[];
int *b_array... | 2cf83ffeae0e14e97c32cfeb20a6882418783d0d.cu | #include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include "cuda_runtime.h"
using namespace std;
__global__ void fast_radix_sort(int *array, int array_len) {
extern __shared__ int tmp_array[];
int *b_array = tmp_array + array_len;
int *s_array = tmp_array + array... |
bfc633da9c7ac28034fc0f331ec8ce4f92c1cb05.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
*
* ... | bfc633da9c7ac28034fc0f331ec8ce4f92c1cb05.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 law or ag... |
808c59554bbc89fa366600787f6a59d476a539b7.hip | // !!! This is a file automatically generated by hipify!!!
#include<stdio.h>
#include<cuda_runtime.h>
#include<math.h>
#include "cusparse_v2.h"
#include "rocblas.h"
#include "hello.cuh"
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include<iostream>
using namespace std;
main(int argc, char *argv[])
{
//numero de n... | 808c59554bbc89fa366600787f6a59d476a539b7.cu | #include<stdio.h>
#include<cuda_runtime.h>
#include<math.h>
#include "cusparse_v2.h"
#include "cublas_v2.h"
#include "hello.cuh"
#include <cuda.h>
#include <stdlib.h>
#include<iostream>
using namespace std;
main(int argc, char *argv[])
{
//numero de nodos
int N=10;
//tamaño de la matriz
double nodos=N+2;
//numero de v... |
e3131906009dd0f67273640053401d25d4f35e19.hip | // !!! This is a file automatically generated by hipify!!!
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// modified to use only 7 floats for triMem
//1. #define TRIMEMLENGTH 7
//2. in FIMCuda and r... | e3131906009dd0f67273640053401d25d4f35e19.cu |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// modified to use only 7 floats for triMem
//1. #define TRIMEMLENGTH 7
//2. in FIMCuda and run_neighbor_check, add initilize old at the begining of ite... |
bb368b75a3e19bee61bb7e064a7cb87e4cf0860b.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
__global__
void cudaGrayScale(float *R, float *G, float *B, float* gray, int n){
int i = blockDim.x*blockIdx.x + threadIdx.x;
if(i < n) {
gray[i] = static_cast<float>((R[i] * 0.21 + G[i... | bb368b75a3e19bee61bb7e064a7cb87e4cf0860b.cu | #include <cuda_runtime.h>
#include <cuda.h>
__global__
void cudaGrayScale(float *R, float *G, float *B, float* gray, int n){
int i = blockDim.x*blockIdx.x + threadIdx.x;
if(i < n) {
gray[i] = static_cast<float>((R[i] * 0.21 + G[i] * 0.71 + B[i] * 0.07) / 350.0);
}
}
void grayscale(float* R, float... |
21172c2df730166d9daf8d5136ea1500ae7ee1eb.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 "kernel_log_full_device.cu"
#include<chrono>
#include<iostream>
u... | 21172c2df730166d9daf8d5136ea1500ae7ee1eb.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 "kernel_log_full_device.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{1... |
00e6f0f68d436f57f5efc6438ff83d2102313ad1.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef __FFT_CU__
#define __FFT_CU__
#include "complex.cuh"
void fft(hipfftComplex *a,int n,float dt)
{
double pi=-PI;
if (dt<0)
pi=PI;
for (int m=n/2,j=0,i=1;i<n-1;i++)
{
int k;
for (k=m;k<=j;k/=2)
j-=k;
... | 00e6f0f68d436f57f5efc6438ff83d2102313ad1.cu | #ifndef __FFT_CU__
#define __FFT_CU__
#include "complex.cuh"
void fft(cufftComplex *a,int n,float dt)
{
double pi=-PI;
if (dt<0)
pi=PI;
for (int m=n/2,j=0,i=1;i<n-1;i++)
{
int k;
for (k=m;k<=j;k/=2)
j-=k;
j+=k;
if(i<j)
{
cufftCo... |
d231d26c46f4f60c50f516539ef7401d4bb24101.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <ctime>
#include "gl/glew.h"
#include "gl/glut.h"
#include "hip/hip_runtime.h"
#include "cuda_gl_interop.h"
using namespace std;
#define W_LEFT -150.0f
#define W_RIGHT 150.0f
#define W_BOTTOM ... | d231d26c46f4f60c50f516539ef7401d4bb24101.cu | #include <cstdlib>
#include <iostream>
#include <fstream>
#include <ctime>
#include "gl/glew.h"
#include "gl/glut.h"
#include "cuda_runtime.h"
#include "cuda_gl_interop.h"
using namespace std;
#define W_LEFT -150.0f
#define W_RIGHT 150.0f
#define W_BOTTOM -150.0f
#define W_TOP 150.0f
#define GL_ERROR(x, i) std::cou... |
050fc65f20a634422cd557f33a476ec6c38f4b7c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2020, Lorenzo Basso, Jack Lee, Matthew Zhang, Feiyang Chen
* Copyright (c) 2018, Francis Haghighi-Daly
* All rights reserved.
* This file is part of the WooStOr - Wavepacket prOpopgatiOn using SpliT OperatR meth... | 050fc65f20a634422cd557f33a476ec6c38f4b7c.cu | /* Copyright (c) 2020, Lorenzo Basso, Jack Lee, Matthew Zhang, Feiyang Chen
* Copyright (c) 2018, Francis Haghighi-Daly
* All rights reserved.
* This file is part of the WooStOr - Wavepacket prOpopgatiOn using SpliT OperatR method, subject to the GNU/GPL-3.0-or-later.*/
#include <mex.h>
#include <matrix.h>
#includ... |
658867880e62ce9f15afd0530c2646b4663a5740.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* cudautils.cu
*
* Created on: Apr 14, 2011
* Author: zhmurov
*/
#include "cudautils.cuh"
#include "../Core/global.h"
__global__ void reduce_kernel(float* d_data, int d_output){
__shared__ float s_data[REDUCE_BLOCKS... | 658867880e62ce9f15afd0530c2646b4663a5740.cu | /*
* cudautils.cu
*
* Created on: Apr 14, 2011
* Author: zhmurov
*/
#include "cudautils.cuh"
#include "../Core/global.h"
__global__ void reduce_kernel(float* d_data, int d_output){
__shared__ float s_data[REDUCE_BLOCKSIZE];
if(blockIdx.x*blockDim.x + threadIdx.x < c_gsystem.N){
int s_i = threadIdx.x;
... |
1904407ad1d9d4dfc9b29f7f564856fbd75069e4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution a... | 1904407ad1d9d4dfc9b29f7f564856fbd75069e4.cu | /******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
17c06d590d20953366c1996989bde043c2935b4c.hip | // !!! This is a file automatically generated by hipify!!!
#include "FVL/FVLib.h"
#include "FVL/FVXMLWriter.h"
#include "FVL/FVArray.h"
#include "FVio.h"
#include "FVL/FVParameters.h"
using namespace std;
#ifdef NO_CUDA
#include "kernels_cpu.h"
#else
#include <hip/hip_runtime.h>
#include "kernels_hip.cuh"
#endif
#def... | 17c06d590d20953366c1996989bde043c2935b4c.cu | #include "FVL/FVLib.h"
#include "FVL/FVXMLWriter.h"
#include "FVL/FVArray.h"
#include "FVio.h"
#include "FVL/FVParameters.h"
using namespace std;
#ifdef NO_CUDA
#include "kernels_cpu.h"
#else
#include <cuda.h>
#include "kernels_cuda.cuh"
#endif
#define BLOCK_SIZE_FLUX 512
#define BLOCK_SIZE_UPDATE 512
#define GRID_S... |
53a0446ad98ef22c2546717f44417de766419268.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#if GOOGLE_CUDA
#define EIGEN_USE_GPU
/* #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" */
__global__
void
AddOneKernel(const float* in, const int N, float* out) {
for (int i = blockIdx.x * blockDim.x + threadIdx.x;... | 53a0446ad98ef22c2546717f44417de766419268.cu | #if GOOGLE_CUDA
#define EIGEN_USE_GPU
/* #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" */
__global__
void
AddOneKernel(const float* in, const int N, float* out) {
for (int i = blockIdx.x * blockDim.x + threadIdx.x;
i < N;
i += blockDim.x * gridDim.x)
{
out[i] = in[i] + 1;
}
}
void... |
0f52b0187f0e166eefec9b67f564485d5d8dc58f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/BatchNormalization.cu"
#else
#define DeviceTensor3 THCDeviceTensor<real, 3>
#define DeviceTensor1 THCDeviceTensor<real, 1>
template <int Dim>
static THCDeviceTensor<real, ... | 0f52b0187f0e166eefec9b67f564485d5d8dc58f.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/BatchNormalization.cu"
#else
#define DeviceTensor3 THCDeviceTensor<real, 3>
#define DeviceTensor1 THCDeviceTensor<real, 1>
template <int Dim>
static THCDeviceTensor<real, Dim> THNN_(devicetensor)(THCState *state, THCTensor *t) {
if (!t) {
return THCDevi... |
a5c0bf661224035dae5768fd4f0f26e991f0d995.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_advec_mom_kernel_mass_flux_z;
int xdim0_advec_mom_kernel_mass_flux_z_h = -1;
__constant__ int ydim0_advec_mom_kernel_mass_flux_z;
int ydim0_advec_mom_kernel_mass_flux_z_h = -1... | a5c0bf661224035dae5768fd4f0f26e991f0d995.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_advec_mom_kernel_mass_flux_z;
int xdim0_advec_mom_kernel_mass_flux_z_h = -1;
__constant__ int ydim0_advec_mom_kernel_mass_flux_z;
int ydim0_advec_mom_kernel_mass_flux_z_h = -1;
__constant__ int xdim1_advec_mom_kernel_mass_flux_z;
int xdim1_advec_mom_kernel_mass_f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.