hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
4dde0ef29829b73052f4f105b4c11532ae9559cb.hip
// !!! This is a file automatically generated by hipify!!! #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/times.h> #include <time.h> #include <math.h> #include <hip/hip_runtime.h> #define PI 3.14159265358979323846 #define FactorArcosegRad 0.00000484814 #define BLOQUESIZE 4 ...
4dde0ef29829b73052f4f105b4c11532ae9559cb.cu
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/times.h> #include <time.h> #include <math.h> #include <cuda_runtime.h> #define PI 3.14159265358979323846 #define FactorArcosegRad 0.00000484814 #define BLOQUESIZE 4 clock_t timestart, timeend; /** @brief Función que transforma...
8c94a5a30370517f70a19baf03e954d82bf9b284.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __device__ void mul(double a, double b, double *res) { *res = a * b; // NaN *res = (*res)-(*res) / (*res)-(*res); } __global__ void dot_prod(double *x, double *y, int size) { double d; for (int i=0; ...
8c94a5a30370517f70a19baf03e954d82bf9b284.cu
#include <stdio.h> __device__ void mul(double a, double b, double *res) { *res = a * b; // NaN *res = (*res)-(*res) / (*res)-(*res); } __global__ void dot_prod(double *x, double *y, int size) { double d; for (int i=0; i < size; ++i) { double tmp; mul(x[i], y[i], &tmp); d += tmp; } int t...
d4d75da6774cffba6ee472656e43389e87298d88.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ------------------------------------------------------------------ // Flow-Guided Feature Aggregation // Copyright (c) 2017 Microsoft // Licensed under The MIT License // Written by Yuwen Xiong // --------------------------------...
d4d75da6774cffba6ee472656e43389e87298d88.cu
// ------------------------------------------------------------------ // Flow-Guided Feature Aggregation // Copyright (c) 2017 Microsoft // Licensed under The MIT License // Written by Yuwen Xiong // ------------------------------------------------------------------ // Based on: // Faster R-CNN // Copyright (c) 2015 Mi...
63ab48dc491aa1fafb08701d18f1b4739f3e0c44.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdlib.h> #include <math.h> #include <float.h> #include <helper_cuda.h> #include <cu-kd-search.cuh> #include "kd-tree-build.cuh" __device__ __host__ float cuDist(struct Point qp, struct Node point) { float dx = qp.p[...
63ab48dc491aa1fafb08701d18f1b4739f3e0c44.cu
#include <stdlib.h> #include <math.h> #include <float.h> #include <helper_cuda.h> #include <cu-kd-search.cuh> #include "kd-tree-build.cuh" __device__ __host__ float cuDist(struct Point qp, struct Node point) { float dx = qp.p[0] - point.p[0], dy = qp.p[1] - point.p[1], dz = qp.p[2] - point.p[2...
a28687bbf17326b09c4f2c2424b3f643ae66e5b4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> //////////////////////////float3//////////////////////////////// inline __device__ float3 operator+(float3 a, float b) { return make_float3(a.x + b, a.y + b, a.z + b); } inline __device__ float3 operator-(floa...
a28687bbf17326b09c4f2c2424b3f643ae66e5b4.cu
#include <stdio.h> //////////////////////////float3//////////////////////////////// inline __device__ float3 operator+(float3 a, float b) { return make_float3(a.x + b, a.y + b, a.z + b); } inline __device__ float3 operator-(float3 a, float b) { return make_float3(a.x - b, a.y - b, a.z - b); } inline __device__ fl...
e69b666110d25ac93023e77f3357351f501b68ec.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <string.h> #include <experimental/filesystem> #include <list> #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <armadillo> #include <chrono> #includ...
e69b666110d25ac93023e77f3357351f501b68ec.cu
#include <iostream> #include <string.h> #include <experimental/filesystem> #include <list> #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <armadillo> #include <chrono> #include <time.h> #include <omp.h> #include "svd3_cuda.h" #include "stdio.h" using namespace s...
e27de923f6729c0dfaea987ac8408ad1f9ef76e4.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #define blockSize 512 #define real float __global__ void redukcja (int N, real* v, real* out) { size_t s = threadIdx.x + blockIdx.x * blockDim.x*2; int sID = threadIdx.x; size_t i; __shar...
e27de923f6729c0dfaea987ac8408ad1f9ef76e4.cu
#include <cuda.h> #include <stdio.h> #include <math.h> #define blockSize 512 #define real float __global__ void redukcja (int N, real* v, real* out) { size_t s = threadIdx.x + blockIdx.x * blockDim.x*2; int sID = threadIdx.x; size_t i; __shared__ real pom[blockSize]; pom[sID] = 0; if (s<N/2) pom[sID] = v[...
fbcaa52b3628a61259365d50d59fdd3300a10940.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // This uses a lot of code from Caffe (http://caffe.berkeleyvision.org/); // sources are clearly marked. Below we reproduce the original license of // the Caffe software. /* Copyright (c) 2014, The Regents of the University of Calif...
fbcaa52b3628a61259365d50d59fdd3300a10940.cu
// This uses a lot of code from Caffe (http://caffe.berkeleyvision.org/); // sources are clearly marked. Below we reproduce the original license of // the Caffe software. /* Copyright (c) 2014, The Regents of the University of California (Regents) All rights reserved. Redistribution and use in source and binary forms,...
be0ca1e33af09180ae9d338346f8072837bd4831.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime_api.h> #include <device_launch_parameters.h> #include <hip/driver_types.h> #include <host_defines.h> #include <opencv2/core/core.hpp> #include <opencv2/core/gpumat.hpp> #include <opencv2/core/mat.hpp> #include <opencv2/core/operations....
be0ca1e33af09180ae9d338346f8072837bd4831.cu
#include <cuda_runtime_api.h> #include <device_launch_parameters.h> #include <driver_types.h> #include <host_defines.h> #include <opencv2/core/core.hpp> #include <opencv2/core/gpumat.hpp> #include <opencv2/core/mat.hpp> #include <opencv2/core/operations.hpp> #include <opencv2/core/types_c.h> #include <opencv2/gpu/gpu.h...
99f1629a9e49cc45cf437e2ee6a9b2f50f03adea.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "checkerboard/cuda/refineLines.h" __global__ void RefineLinesKernel(RefineLinesParams params, int *lines, int *linesPointCount, int *linePoints, int *disc...
99f1629a9e49cc45cf437e2ee6a9b2f50f03adea.cu
#include "checkerboard/cuda/refineLines.h" __global__ void RefineLinesKernel(RefineLinesParams params, int *lines, int *linesPointCount, int *linePoints, int *discardedLinePoints, int *discardedLinePointCount) { in...
e90dd8fa90295ff59ef320394c8edebdc92b61a8.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************* /* ECE 285: GPU Programmming 2019 Winter quarter /* Author and Instructer: Hou Wang /* Copyright 2019 /* University of California, San Diego /********************************************...
e90dd8fa90295ff59ef320394c8edebdc92b61a8.cu
/************************************************************************* /* ECE 285: GPU Programmming 2019 Winter quarter /* Author and Instructer: Hou Wang /* Copyright 2019 /* University of California, San Diego /*************************************************************************/ #include "cnn.h" #include <a...
bce4d3fb3336085ec9fc8fed26b4cfed3fde641d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include "bcsr.hpp" #include "utils.hpp" __device__ void swap(int* arr, int i, int j) { int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; return; } __global__ void bitonic_sort(float* mat, int ...
bce4d3fb3336085ec9fc8fed26b4cfed3fde641d.cu
#include <stdio.h> #include <cuda_runtime.h> #include "bcsr.hpp" #include "utils.hpp" __device__ void swap(int* arr, int i, int j) { int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; return; } __global__ void bitonic_sort(float* mat, int N, int* idx) { __shared__ int nnz[8]; int tid = block...
bcc5c89ab1942c5977d7c75893f6124f12bd3872.hip
// !!! This is a file automatically generated by hipify!!! /* 1-bit BMMA code. Runs at 500TOPS for matrix size of 4096x4096x8192. Borrows largely from CUDA-SDK. By Boyuan */ #include <assert.h> #include <hip/hip_runtime.h> #include <mma.h> #include <stdio.h> #include <helper_cuda.h> #include <helper_function...
bcc5c89ab1942c5977d7c75893f6124f12bd3872.cu
/* 1-bit BMMA code. Runs at 500TOPS for matrix size of 4096x4096x8192. Borrows largely from CUDA-SDK. By Boyuan */ #include <assert.h> #include <cuda.h> #include <mma.h> #include <stdio.h> #include <helper_cuda.h> #include <helper_functions.h> // GPU configuration. #define WARP_SIZE 32 // MMA matrix tile ...
198074e99dc9b3f0cb5bdcaf39b34813b8f1049b.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 "LSTMDeltaKernel.cu" #include<chrono> #include<iostream> using na...
198074e99dc9b3f0cb5bdcaf39b34813b8f1049b.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 "LSTMDeltaKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
06289c92c0d01a547017340369d7a3331ed730bd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __device__ int is_a_match(char *attempt) { char plain_password1[] = "BP9843"; char plain_password2[] = "RP6870"; char plain_password3[] = "AP6498"; char plain_password4[] = "IP1354"; char *m = attempt; char *s ...
06289c92c0d01a547017340369d7a3331ed730bd.cu
#include "includes.h" __device__ int is_a_match(char *attempt) { char plain_password1[] = "BP9843"; char plain_password2[] = "RP6870"; char plain_password3[] = "AP6498"; char plain_password4[] = "IP1354"; char *m = attempt; char *s = attempt; char *c = attempt; char *d = attempt; char *p1 = plain_password1; char *p2 = ...
80272afbe99a2d02704b4a712c4b7ad44d903b00.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright RedPortal, mujjingun 2017 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <mgcp...
80272afbe99a2d02704b4a712c4b7ad44d903b00.cu
// Copyright RedPortal, mujjingun 2017 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <mgcpp/kernels/bits/fill.cuh> #include <cmath> #define BLK 64 namespace mgcpp { __globa...
Simulator.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <GL/glew.h> #include <GL/freeglut.h> #include <hip/hip_runtime.h> #include <cuda_gl_interop.h> #include "Utilities.h" #include "SpringsBuilder.h" #include "bvh\BRTreeNode.h" #include "bvh\BVHAccel.h" #include "Cloth.h" #include "O...
Simulator.cu
#include <iostream> #include <GL/glew.h> #include <GL/freeglut.h> #include <cuda_runtime.h> #include <cuda_gl_interop.h> #include "Utilities.h" #include "SpringsBuilder.h" #include "bvh\BRTreeNode.h" #include "bvh\BVHAccel.h" #include "Cloth.h" #include "ObjLoader.h" #include "Verlet.h" #include "Simulator.h" using ...
031ef0c656139d1c80824ce4e07c7a58f7f2c7b3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Ocelot 0.4.72 issue. Steve Worley Oct 27 2009 sw@worley.com Ocelot fails when running kernels using dynamic shared memory, in 32 bit only. 32 bit (ONLY!) Ubuntu 9.04. CUDA 2.3 Compile with: nvcc ocb...
031ef0c656139d1c80824ce4e07c7a58f7f2c7b3.cu
/* Ocelot 0.4.72 issue. Steve Worley Oct 27 2009 sw@worley.com Ocelot fails when running kernels using dynamic shared memory, in 32 bit only. 32 bit (ONLY!) Ubuntu 9.04. CUDA 2.3 Compile with: nvcc ocbug.cu -lOcelotExecutive -lOcelotTrace -lOcelotIr -lOcelotParser -lhydrazine -lcudart ru...
bbee07df98ec53f8429a02346d8f6c95c3cd128d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" __global__ void reduction_neighbored_pairs(int * arr, int l, int offset) { int gid = blockDim.x * ...
bbee07df98ec53f8429a02346d8f6c95c3cd128d.cu
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void reduction_neighbored_pairs(int * arr, int l, int offset) { int gid = blockDim.x * blockIdx.x + threadIdx.x; if(gid>=offset) return; if(gid...
c734b7f7445f7baee654de15d7df7beda261ba75.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redi...
c734b7f7445f7baee654de15d7df7beda261ba75.cu
/* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of co...
c45d0a35a99fc8f31a749ad3eee37d055a0a14fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Created by JEONGHYUNLEE on 2020/09/28. // #include <stdio.h> #include <caffe/caffe.hpp> #include "./common.hpp" using namespace caffe; typedef float Dtype; // Kernel Function __global__ void find_kernel(const int n, ...
c45d0a35a99fc8f31a749ad3eee37d055a0a14fa.cu
// // Created by JEONGHYUNLEE on 2020/09/28. // #include <stdio.h> #include <caffe/caffe.hpp> #include "./common.hpp" using namespace caffe; typedef float Dtype; // Kernel Function __global__ void find_kernel(const int n, const Dtype *target, Dtype *idx, ...
f40002799ba29b0e4164da4d1b9d25dadaec103b.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright 2018 XIAOLIN WANG (xiaolin.wang@nict.go.jp; arthur.xlw@google.com) 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:/...
f40002799ba29b0e4164da4d1b9d25dadaec103b.cu
/* Copyright 2018 XIAOLIN WANG (xiaolin.wang@nict.go.jp; arthur.xlw@google.com) 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 ap...
8bd12e0cd2ca21e95f71cb711c7fb8e5370c794c.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 2018-2023 by XGBoost Contributors * \author Rory Mitchell */ #include <thrust/execution_policy.h> #include <thrust/inner_product.h> #include <xgboost/data.h> #include <xgboost/linear_updater.h> #include "xgboost/span.h" #include "coordinate...
8bd12e0cd2ca21e95f71cb711c7fb8e5370c794c.cu
/** * Copyright 2018-2023 by XGBoost Contributors * \author Rory Mitchell */ #include <thrust/execution_policy.h> #include <thrust/inner_product.h> #include <xgboost/data.h> #include <xgboost/linear_updater.h> #include "xgboost/span.h" #include "coordinate_common.h" #include "../common/common.h" #include "../commo...
33379c44f9b56f14224e863fd224d73f491a20c2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <time.h> #include "vec3.h" #include "ray.h" // limited version of checkCudaErrors from helper_cuda.h in CUDA examples #define checkCudaErrors(val) check_cuda( (val), #val, __FILE__, __LINE__ ) void che...
33379c44f9b56f14224e863fd224d73f491a20c2.cu
#include <iostream> #include <time.h> #include "vec3.h" #include "ray.h" // limited version of checkCudaErrors from helper_cuda.h in CUDA examples #define checkCudaErrors(val) check_cuda( (val), #val, __FILE__, __LINE__ ) void check_cuda(cudaError_t result, char const *const func, const char *const file, int const li...
46cb19e812d0211b2a72fde7873cd9ef22423cf9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License,...
46cb19e812d0211b2a72fde7873cd9ef22423cf9.cu
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
45f71e4117ad1a15f600b2b2a7922823b15a2811.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * http://github.com/dusty-nv/jetson-inference */ #include "cudaFont.h" #include "cudaMappedMemory.h" #include "loadImage.h" // constructor cudaFont::cudaFont() { mCommandCPU = NULL; mCommandGPU = NULL; mCmdEntries = 0; ...
45f71e4117ad1a15f600b2b2a7922823b15a2811.cu
/* * http://github.com/dusty-nv/jetson-inference */ #include "cudaFont.h" #include "cudaMappedMemory.h" #include "loadImage.h" // constructor cudaFont::cudaFont() { mCommandCPU = NULL; mCommandGPU = NULL; mCmdEntries = 0; mFontMapCPU = NULL; mFontMapGPU = NULL; mFontMapWidth = 0; mFontMapHeight = 0; ...
97a1013a140acc19936b5e2135a849dce07f10dc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/Atomic.cuh> #include <ATen/hip/HIPContext.h> #include <ATen/NativeFunctions.h> #include <ATen/TensorUtils.h> #include <ATen/Utils.h> #include <c10/util/Exception.h> #include <THH/THHGeneral....
97a1013a140acc19936b5e2135a849dce07f10dc.cu
#include <ATen/ATen.h> #include <ATen/cuda/Atomic.cuh> #include <ATen/cuda/CUDAContext.h> #include <ATen/NativeFunctions.h> #include <ATen/TensorUtils.h> #include <ATen/Utils.h> #include <c10/util/Exception.h> #include <THC/THCGeneral.h> #include <THC/THCNumerics.cuh> #include <algorithm> #include <cfloat> #include <c...
52caebcfc1ab93118b75f715d5798a7a079f9876.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "headers.h" __managed__ int Dev_A; __managed__ int Dev_B; __managed__ int Dev_size; #define TILE_SIZE 4 #define WINDOW_SIZE 3 __global__ void histogram_gray_sacale_CUDA(unsigned c...
52caebcfc1ab93118b75f715d5798a7a079f9876.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "headers.h" __managed__ int Dev_A; __managed__ int Dev_B; __managed__ int Dev_size; #define TILE_SIZE 4 #define WINDOW_SIZE 3 __global__ void histogram_gray_sacale_CUDA(unsigned char* Image, int* Histogram) { int x = blockIdx.x; int y = bl...
0131f88d581c41914f29b124eb66c3a98a366c13.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>...
0131f88d581c41914f29b124eb66c3a98a366c13.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...
14d801e8dbb21e7c1658a551de7d57225bb005d3.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...
14d801e8dbb21e7c1658a551de7d57225bb005d3.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...
0a3ba52805ed5f73bd7b44ae626e6bec0f7d64fe.hip
// !!! This is a file automatically generated by hipify!!! #include <unittest/unittest.h> #include <thrust/functional.h> #include <thrust/sequence.h> #include <thrust/device_malloc_allocator.h> #include <thrust/sort.h> #include <thrust/system/hip/detail/detail/stable_radix_sort.h> #if THRUST_DEVICE_SYSTEM == THRUST_D...
0a3ba52805ed5f73bd7b44ae626e6bec0f7d64fe.cu
#include <unittest/unittest.h> #include <thrust/functional.h> #include <thrust/sequence.h> #include <thrust/device_malloc_allocator.h> #include <thrust/sort.h> #include <thrust/system/cuda/detail/detail/stable_radix_sort.h> #if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA typedef unittest::type_list< #if !(defi...
a1b50e18364e17862257a1c4e3d48473fe5a59d9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Fractal.cuh" #include "device_launch_parameters.h" #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> __device__ bool julian(int x, int y, int nRows, int nCols, float rc, float imc, float scaleFactor) { floa...
a1b50e18364e17862257a1c4e3d48473fe5a59d9.cu
#include "Fractal.cuh" #include "device_launch_parameters.h" #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> __device__ bool julian(int x, int y, int nRows, int nCols, float rc, float imc, float scaleFactor) { float jx = scaleFactor * ((float)(nCols / 2) - x) / (nCols / 2); float jy = scaleFactor * (...
6ea4770b96047fcfa29bfcd2b275722f6967678d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /////////////////////////////////////////////////////////////////////////// // ParallelWaveFunction: // /////////////////////////////////////////////////////////////////////////// #in...
6ea4770b96047fcfa29bfcd2b275722f6967678d.cu
/////////////////////////////////////////////////////////////////////////// // ParallelWaveFunction: // /////////////////////////////////////////////////////////////////////////// #include "ParallelWaveFunction.h" //______________________________________________________...
238e01aa40362b67ecaebad54d815861b896b4e6.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 "good_addition.cu" #include<chrono> #include<iostream> using name...
238e01aa40362b67ecaebad54d815861b896b4e6.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 "good_addition.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24...
468b6d1679e17589b45f80b2c88fb69f8762f00c.hip
// !!! This is a file automatically generated by hipify!!! #include <cudnn.h> #include <stdio.h> #include <hip/hip_runtime.h> #include <malloc.h> #include <cstdlib> #include <time.h> #include <iostream> #include <sys/types.h> #include <errno.h> #include <vector> #include <fstream> #include <string> #include <omp.h> #de...
468b6d1679e17589b45f80b2c88fb69f8762f00c.cu
#include <cudnn.h> #include <stdio.h> #include <cuda.h> #include <malloc.h> #include <cstdlib> #include <time.h> #include <iostream> #include <sys/types.h> #include <errno.h> #include <vector> #include <fstream> #include <string> #include <omp.h> #define TH 1 #define TW 1 #define TC 16 #define C 32 #define N 32 #define...
e9d9865e067acc8237d593a5318c9cbdd0b8709a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_plus_4_b; int xdim0_update_halo_kernel4_plus_4_b_h = -1; __constant__ int ydim0_update_halo_kernel4_plus_4_b; int ydim0_update_halo_kernel4_plus_4_b_h = -1...
e9d9865e067acc8237d593a5318c9cbdd0b8709a.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_plus_4_b; int xdim0_update_halo_kernel4_plus_4_b_h = -1; __constant__ int ydim0_update_halo_kernel4_plus_4_b; int ydim0_update_halo_kernel4_plus_4_b_h = -1; __constant__ int xdim1_update_halo_kernel4_plus_4_b; int xdim1_update_halo_kernel4_plu...
d5960674fe5b0adaceac431e994f9d0f20d5d961.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 22528*22528 // 22k ^ 2 = 507510784 #define THREAD_PER_BLOCK 1024 #define GRID N/THREAD_PER_BLOCK __global__ void outputFromGPU(int *arr, int *min, int *max, int *s...
d5960674fe5b0adaceac431e994f9d0f20d5d961.cu
#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 22528*22528 // 22k ^ 2 = 507510784 #define THREAD_PER_BLOCK 1024 #define GRID N/THREAD_PER_BLOCK __global__ void outputFromGPU(int *arr, int *min, int *max, int *sum, int *mutex) { //GPU int index = threadIdx.x + blockIdx.x * blockDim.x; int stride...
f39da35c83f362004e9050b1487b6293dddcf4a0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_conv_layer.hpp" namespace caffe { __global__ void sync_conv_groups() { } template <typename Dtype> void CuDNNConvolutionLayer<Dtype>::Forward_gpu( const vector<...
f39da35c83f362004e9050b1487b6293dddcf4a0.cu
#ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_conv_layer.hpp" namespace caffe { __global__ void sync_conv_groups() { } template <typename Dtype> void CuDNNConvolutionLayer<Dtype>::Forward_gpu( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const Dtype* weight = this->...
98c9ee512158d0e7621ca5d29b2b9b2472504c3e.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <hip/hip_runtime.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include "sceneStructs.h" #include "scene.h" #include "glm/glm.hpp" #include "glm/gtx/norm.hpp" #include ...
98c9ee512158d0e7621ca5d29b2b9b2472504c3e.cu
#include <cstdio> #include <cuda.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include "sceneStructs.h" #include "scene.h" #include "glm/glm.hpp" #include "glm/gtx/norm.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_inverse.hpp> #...
2378ffa9a65909fb20817658b5aede89fa5209a7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel3_minus_4_b; int xdim0_update_halo_kernel3_minus_4_b_h = -1; __constant__ int ydim0_update_halo_kernel3_minus_4_b; int ydim0_update_halo_kernel3_minus_4_b_h ...
2378ffa9a65909fb20817658b5aede89fa5209a7.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel3_minus_4_b; int xdim0_update_halo_kernel3_minus_4_b_h = -1; __constant__ int ydim0_update_halo_kernel3_minus_4_b; int ydim0_update_halo_kernel3_minus_4_b_h = -1; __constant__ int xdim1_update_halo_kernel3_minus_4_b; int xdim1_update_halo_kernel...
7b48effcc6d01e0ceb7ac2d1c47deb01838a8fad.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <math.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include <hipfft.h> /* hipfftPlanMany function * - 2D FFT transform using 1D cuffts without transpositions * - compare with transposition ve...
7b48effcc6d01e0ceb7ac2d1c47deb01838a8fad.cu
#include <iostream> #include <math.h> #include <cuda.h> #include <cuda_runtime.h> #include <sys/time.h> #include <cufft.h> /* cufftPlanMany function * - 2D FFT transform using 1D cuffts without transpositions * - compare with transposition version */ #define NX 512 #define BATCH NX #define TILE_DIM 16 using nam...
43f8d03c004ed74af9b918451efd25ab9f27db4c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <omp.h> #include <hip/hip_runtime.h> #define THREADS_PER_DIM 16 #define BLOCKS_PER_DIM 16 #define THREADS_PER_BLOCK THREADS_PER_DIM*THREADS_PER_DIM #in...
43f8d03c004ed74af9b918451efd25ab9f27db4c.cu
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <omp.h> #include <cuda.h> #define THREADS_PER_DIM 16 #define BLOCKS_PER_DIM 16 #define THREADS_PER_BLOCK THREADS_PER_DIM*THREADS_PER_DIM #include "kmeans_cuda_kernel.cu" //#define BLOCK_DELTA_REDUCE //#define...
8ff575dd5904623257df3fae8ae706d2d163fd43.hip
// !!! This is a file automatically generated by hipify!!! /*------------------------------------------------------------------------- * * CUDA functions for texture-memory interpolation based projection * * This file has the necesary fucntiosn to perform X-ray CBCT projection * operation given a geaometry, angles...
8ff575dd5904623257df3fae8ae706d2d163fd43.cu
/*------------------------------------------------------------------------- * * CUDA functions for texture-memory interpolation based projection * * This file has the necesary fucntiosn to perform X-ray CBCT projection * operation given a geaometry, angles and image. It uses the 3D texture * memory linear interpo...
da89d347cb606672d21ddb722e3fe1283ae0aae1.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <ctime> #define CheckErrorUtil(err) CheckError(err, __FUNCTION__, __LINE__) #define CheckErrorMsgUtil(err, msg) CheckErrorMsg(err, msg, __FUNCTION__, __LINE__) inli...
da89d347cb606672d21ddb722e3fe1283ae0aae1.cu
#include <cuda_runtime.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <ctime> #define CheckErrorUtil(err) CheckError(err, __FUNCTION__, __LINE__) #define CheckErrorMsgUtil(err, msg) CheckErrorMsg(err, msg, __FUNCTION__, __LINE__) inline void CheckError(cudaError_t const err, char const* const fu...
dadc2b126d3941664d3c038ca95aecb531879e51.hip
// !!! This is a file automatically generated by hipify!!! #include "reduce_hip.cuh" #include <cstdio> #include <cstdlib> #include <iostream> #include <new> int main(int argc, char *argv[]) { int N = atoi(argv[1]); int threads_per_block = atoi(argv[2]); int *arr = new (std::nothrow) int[N]; for (int i = 0; i...
dadc2b126d3941664d3c038ca95aecb531879e51.cu
#include "reduce.cuh" #include <cstdio> #include <cstdlib> #include <iostream> #include <new> int main(int argc, char *argv[]) { int N = atoi(argv[1]); int threads_per_block = atoi(argv[2]); int *arr = new (std::nothrow) int[N]; for (int i = 0; i < N; ++i) { arr[i] = 1; } // memset(arr, 1, sizeof(ar...
febe274cbbb549f6fe3a56b0c48b4c15ccbd3147.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "mex.h" /* Kernel to square elements of the array on the GPU */ __global__ void square_elements(float* in, float* out, int N) { int idx = blockIdx.x*blockDim.x+threadIdx.x; if ( idx < N) out[idx]=in[idx]*i...
febe274cbbb549f6fe3a56b0c48b4c15ccbd3147.cu
#include "cuda.h" #include "mex.h" /* Kernel to square elements of the array on the GPU */ __global__ void square_elements(float* in, float* out, int N) { int idx = blockIdx.x*blockDim.x+threadIdx.x; if ( idx < N) out[idx]=in[idx]*in[idx]; } /* Gateway function */ void mexFunction(int nlhs, mxArray *...
ca70b0b21425b93474503015721a8312cf50a250.hip
// !!! This is a file automatically generated by hipify!!! #include "IncoherentSumPdf.hh" #include "devcomplex.hh" #include "ResonancePdf.hh" const int resonanceOffset_incoherent = 4; // Offset of the first resonance into the parameter index array. // Notice that this is different from the TddpPdf case because there...
ca70b0b21425b93474503015721a8312cf50a250.cu
#include "IncoherentSumPdf.hh" #include "devcomplex.hh" #include "ResonancePdf.hh" const int resonanceOffset_incoherent = 4; // Offset of the first resonance into the parameter index array. // Notice that this is different from the TddpPdf case because there's no time information. // In particular the offset consis...
de484143254c96c7a0e1be3ecd4cb0a1e8ae8190.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <wb.h> #define TILE_WIDTH 8 #define wbCheck(stmt) do { \ hipError_t err = stmt; \ if (err != hipSuccess) { \ ...
de484143254c96c7a0e1be3ecd4cb0a1e8ae8190.cu
#include <wb.h> #define TILE_WIDTH 8 #define wbCheck(stmt) do { \ cudaError_t err = stmt; \ if (err != cudaSuccess) { \ wbLog(ERROR, "Failed to run stmt ", #stmt); \ return -1; ...
62699295f4ae0ecdcbcaba50ab159f4da6e86036.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> // includes, project #include <cutil_inline.h> #define NUM_ELEMENTS 262144 // MIN = 512, MAX = 33553920 #define MA...
62699295f4ae0ecdcbcaba50ab159f4da6e86036.cu
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> // includes, project #include <cutil_inline.h> #define NUM_ELEMENTS 262144 // MIN = 512, MAX = 33553920 #define MAX_THREADS 512 #define LAST_THREAD (MAX_THREADS - 1) #define MAX_THREAD_DIVISOR ((float)(...
c890f7207158cc6879ca1d7cd2072ef8b2ec9997.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "subgraph_generator.cuh" #include "graph.cuh" #include "subgraph.cuh" #include "gpu_error_check.cuh" const unsigned int NUM_THREADS = 64; const unsigned int THRESHOLD_THREAD = 50000; __global__ void prePrefix(unsigned in...
c890f7207158cc6879ca1d7cd2072ef8b2ec9997.cu
#include "subgraph_generator.cuh" #include "graph.cuh" #include "subgraph.cuh" #include "gpu_error_check.cuh" const unsigned int NUM_THREADS = 64; const unsigned int THRESHOLD_THREAD = 50000; __global__ void prePrefix(unsigned int *activeNodesLabeling, u_int64_t *activeNodesDegree, u_int64_t *outDegree, bool...
7f25254f41c33797197b4cae0f68ee099fcb69ab.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> //cuda include #include <hip/hip_runtime.h> __device__ void Gswap(void *from, void *to, int length){ void *tmp = malloc(length); memcpy(tmp, to, length); memcpy(to, from, length); memcpy(from, tmp, length); }
7f25254f41c33797197b4cae0f68ee099fcb69ab.cu
#include <stdio.h> #include <stdlib.h> //cuda include #include <cuda.h> __device__ void Gswap(void *from, void *to, int length){ void *tmp = malloc(length); memcpy(tmp, to, length); memcpy(to, from, length); memcpy(from, tmp, length); }
0b868b8e12b205a64ad227aaeab0ddd984b783d4.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> __global__ void dkernel(unsigned *vector, unsigned vectorsize) { unsigned id = blockIdx.x * blockDim.x + threadIdx.x; if (id < vectorsize) vector[id] = id; } #define BLOCKSIZE 1024 int main(int nn, char *str[]) ...
0b868b8e12b205a64ad227aaeab0ddd984b783d4.cu
#include <stdio.h> #include <cuda.h> __global__ void dkernel(unsigned *vector, unsigned vectorsize) { unsigned id = blockIdx.x * blockDim.x + threadIdx.x; if (id < vectorsize) vector[id] = id; } #define BLOCKSIZE 1024 int main(int nn, char *str[]) { unsigned N = atoi(str[1]); unsigned *vector, *hvector; cudaMalloc...
74020b258b8cc52547a66f6e929df030f61f088f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "pointwise_hist2.cuh" #include "split_properties_helpers.cuh" #include "compute_point_hist2_loop.cuh" #include "pointwise_hist2_half_byte_template.cuh" #include <hip/hip_cooperative_groups.h> #include <library/cuda/wrappers...
74020b258b8cc52547a66f6e929df030f61f088f.cu
#include "pointwise_hist2.cuh" #include "split_properties_helpers.cuh" #include "compute_point_hist2_loop.cuh" #include "pointwise_hist2_half_byte_template.cuh" #include <cooperative_groups.h> #include <library/cuda/wrappers/arch.cuh> #include <catboost/cuda/cuda_util/kernel/instructions.cuh> #include <catboost/cuda/cu...
04caf0cd19260e082131ee90cb12f55a90908355.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/div_rtn.h> #include <ATen/hip/HIPBlas.h> #include <ATen/native/ConvUtils.h> #include <ATen/native/Resize.h> #incl...
04caf0cd19260e082131ee90cb12f55a90908355.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/div_rtn.h> #include <ATen/cuda/CUDABlas.h> #include <ATen/native/ConvUtils.h> #include <ATen/native/Resize.h> #include <ATen/native/cuda/im2col.cuh> #ifndef AT_PER_OPERATO...
6691bd342f147a03a99aa25ef6bdd0d89d0d2d0e.hip
// !!! This is a file automatically generated by hipify!!! #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mam.h" double getTime() { const double kMicro = 1.0e-6; struct timeval TV; const int RC = gettimeofday(&TV, NULL); if(RC == -1) { printf("ERROR: Bad call t...
6691bd342f147a03a99aa25ef6bdd0d89d0d2d0e.cu
#include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mam.h" double getTime() { const double kMicro = 1.0e-6; struct timeval TV; const int RC = gettimeofday(&TV, NULL); if(RC == -1) { printf("ERROR: Bad call to gettimeofday\n"); return(-1); } return( ((double)TV.t...
88df9d836a10d9c96ad6efe148c59aea2b26561f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include </home/yzamora/power/nvidia_gpus/cusp/blas.h> #include </home/yzamora/power/nvidia_gpus/cusp/array2d.h> #include </home/yzamora/power/nvidia_gpus/cusp/print.h> #include <iostream> #include <sys/time.h> #include <stdio.h> #i...
88df9d836a10d9c96ad6efe148c59aea2b26561f.cu
#include </home/yzamora/power/nvidia_gpus/cusp/blas.h> #include </home/yzamora/power/nvidia_gpus/cusp/array2d.h> #include </home/yzamora/power/nvidia_gpus/cusp/print.h> #include <iostream> #include <sys/time.h> #include <stdio.h> #include <float.h> #include <fstream> #include <stdlib.h> #include <string.h> #define NTI...
1e00b4c45ff3dbe116ea33716ef5a1c0e2e87938.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...
1e00b4c45ff3dbe116ea33716ef5a1c0e2e87938.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...
fb5cb541f7c59fe0b7b9e99a7a8c34f406c917b2.hip
// !!! This is a file automatically generated by hipify!!! #include <torch/extension.h> #include <hiprand/hiprand_kernel.h> #include <hiprand/hiprand.h> #include <hiprand/hiprand_mtgp32_host.h> #include <hip/hip_runtime.h> #include <hip/hip_fp16.h> #include <hip/hip_runtime.h> #include <vector> #include <math.h> #inclu...
fb5cb541f7c59fe0b7b9e99a7a8c34f406c917b2.cu
#include <torch/extension.h> #include <curand_kernel.h> #include <curand.h> #include <curand_mtgp32_host.h> #include <cuda.h> #include <cuda_fp16.h> #include <cuda_runtime.h> #include <vector> #include <math.h> #include <curand_mtgp32dc_p_11213.h> #include "philox_random.h" #include "philox_pytorch.h" #include <stdio.h...
837697d35da1780554cee0da839cc29b8029c149.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <vector> <<<<<<< HEAD #include "caffe/layers/bnll_layer.hpp" ======= #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" >>>>>>> caffe-yolo/master namespace caffe { const float kBNLL_THRESH...
837697d35da1780554cee0da839cc29b8029c149.cu
#include <algorithm> #include <vector> <<<<<<< HEAD #include "caffe/layers/bnll_layer.hpp" ======= #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" >>>>>>> caffe-yolo/master namespace caffe { const float kBNLL_THRESHOLD = 50.; template <typename Dtype> __global__ void BNLLForward(const int n, const Dty...
7bd06cf583cab00579a916ea00e887bb4b1dbedc.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, ...
7bd06cf583cab00579a916ea00e887bb4b1dbedc.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...
6b6c00f6ac1e17c18d38954dd0c35ce86c296931.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 "FullyConnectedUpdateMemoryKernel.cu" #include<chrono> #include<i...
6b6c00f6ac1e17c18d38954dd0c35ce86c296931.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 "FullyConnectedUpdateMemoryKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] =...
a917d5b04d91fd5bda9d8bf63c18f4cf43c0db45.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redi...
a917d5b04d91fd5bda9d8bf63c18f4cf43c0db45.cu
// // Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of co...
6422d534f0cf82292f30939653a68e9184d47ef9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include <hip/driver_types.h> #include <device_launch_parameters.h> #include "caffe/layers/eltwise_layer.hpp" namespace caffe { template <typename Ftype> __global__ void MaxForward(const int nthreads, const Ftyp...
6422d534f0cf82292f30939653a68e9184d47ef9.cu
#include <vector> #include <driver_types.h> #include <device_launch_parameters.h> #include "caffe/layers/eltwise_layer.hpp" namespace caffe { template <typename Ftype> __global__ void MaxForward(const int nthreads, const Ftype* bottom_data_a, const Ftype* bottom_data_b, const int blob_idx, Ftype* top_data, i...
6e3c1a7de6117664f2f3ddbf07ad49d4ce3dcd32.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include <hip/hip_runtime_api.h> //#include <cutil.h> #include <hip/hip_runtime.h> float* h_A; float* h_B; float* h_C; float* h_res; float* d_A; float* d_B; float* d_C; float* d_res; __global__ //void compute(const float...
6e3c1a7de6117664f2f3ddbf07ad49d4ce3dcd32.cu
#include <stdio.h> #include <iostream> #include <cuda_profiler_api.h> //#include <cutil.h> #include <cuda_runtime.h> float* h_A; float* h_B; float* h_C; float* h_res; float* d_A; float* d_B; float* d_C; float* d_res; __global__ //void compute(const float* A, const float* B, const float* C, float* D, int n) { void com...
2337f598a0fe5df27247ed5a93612517fde8fd4d.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,...
2337f598a0fe5df27247ed5a93612517fde8fd4d.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...
9b83e2ced6e81651db75c6c887a39aa59e0ef9c5.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, disc...
9b83e2ced6e81651db75c6c887a39aa59e0ef9c5.cu
/** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related docu...
7d1839c393eff90e2ea184bd4531f1a076200e4e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "hiprand/hiprand.h" #include "hiprand/hiprand_kernel.h" #include <hiprand/hiprand.h> #include <ctime> #include <cstdio> #include <iostream> using namespace std; __global__ void addTe...
7d1839c393eff90e2ea184bd4531f1a076200e4e.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "curand.h" #include "curand_kernel.h" #include <curand.h> #include <ctime> #include <cstdio> #include <iostream> using namespace std; __global__ void addTen(float* d, int count) { int threadsPerBlock = blockDim.x * blockDim.y * blockDim.z; ...
792096c993f379eae3de5faea466668b9ca0e5bf.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime_api.h> #include <time.h> /**************************************************************************** * An experiment with cuda kernel invocation parameters. 2x3x4 threads on * one block should yield 24 kernel ...
792096c993f379eae3de5faea466668b9ca0e5bf.cu
#include <stdio.h> #include <cuda_runtime_api.h> #include <time.h> /**************************************************************************** * An experiment with cuda kernel invocation parameters. 2x3x4 threads on * one block should yield 24 kernel invocations. * * Compile with: * nvcc -o 2_1_a_3initial 2...
842d654f21d08d1aeaad9e5490e61a403b9edc20.hip
// !!! This is a file automatically generated by hipify!!! #ifndef _BACKPROP_CUDA_KERNEL_H_ #define _BACKPROP_CUDA_KERNEL_H_ #include <stdio.h> #include "backprop.h" #include "math.h" #include "hip/hip_runtime.h" __global__ void bpnn_layerforward_CUDA(float *input_cuda, float *output_hidden_cud...
842d654f21d08d1aeaad9e5490e61a403b9edc20.cu
#ifndef _BACKPROP_CUDA_KERNEL_H_ #define _BACKPROP_CUDA_KERNEL_H_ #include <stdio.h> #include "backprop.h" #include "math.h" #include "cuda.h" __global__ void bpnn_layerforward_CUDA(float *input_cuda, float *output_hidden_cuda, float *input_hidden_cuda, float *hidden_partial_sum...
4f1fd552f2e6fd36db8ce62aaf49d935261190e5.hip
// !!! This is a file automatically generated by hipify!!! // This file is auto-generated. See "generate_kernels.sh" #include <ATen/native/transformers/hip/mem_eff_attention/kernel_backward.h> INSTANTIATE_ATTENTION_KERNEL_BACKWARD_SM50(cutlass::half_t, false); INSTANTIATE_ATTENTION_KERNEL_BACKWARD_SM70(cutlass::half_t,...
4f1fd552f2e6fd36db8ce62aaf49d935261190e5.cu
// This file is auto-generated. See "generate_kernels.sh" #include <ATen/native/transformers/cuda/mem_eff_attention/kernel_backward.h> INSTANTIATE_ATTENTION_KERNEL_BACKWARD_SM50(cutlass::half_t, false); INSTANTIATE_ATTENTION_KERNEL_BACKWARD_SM70(cutlass::half_t, false); INSTANTIATE_ATTENTION_KERNEL_BACKWARD_SM75(cutlas...
798d51a61e59993c1ef884b2daa522ff19f4ea60.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * \file dnn/src/cuda/repeat/repeat.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agre...
798d51a61e59993c1ef884b2daa522ff19f4ea60.cu
/** * \file dnn/src/cuda/repeat/repeat.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS ...
b579eef06cc1954b44e64f72476790c8def52f25.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdint> #include <cassert> #include <chrono> #include <fmt/format.h> typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; struct ForcerContext { u8 rng_state[4]; u8 work_buffer[8*8]; u8 decompress_buffer[0...
b579eef06cc1954b44e64f72476790c8def52f25.cu
#include <cstdint> #include <cassert> #include <chrono> #include <fmt/format.h> typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; struct ForcerContext { u8 rng_state[4]; u8 work_buffer[8*8]; u8 decompress_buffer[0x30]; u8 preloaded_map[8*8*9]; u8* found_byte; }; static const unsigned seed_count = ...
7cda6ce230dab4cefd606b8c358fcbbe1d2bafcc.hip
// !!! This is a file automatically generated by hipify!!! /* This version assigns one thread per 16 bytes of text.(one text block) Stores the plaintext/ciphertext in registers. Stores the encryption keys in shared memory. Stores the S-boxes in shared memory. The blocksize is 512. */ #include <iostream> #include <fstr...
7cda6ce230dab4cefd606b8c358fcbbe1d2bafcc.cu
/* This version assigns one thread per 16 bytes of text.(one text block) Stores the plaintext/ciphertext in registers. Stores the encryption keys in shared memory. Stores the S-boxes in shared memory. The blocksize is 512. */ #include <iostream> #include <fstream> #include <sstream> #include <chrono> #include <cuda_r...
581587d690b6a03b213030a8bad7ece9bf3050b4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/hip/HIPContext.h> #include <ATen/hip/NumericLimits.cuh> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/NumericUtils.h> #include <ATen/native/Resize.h> #include...
581587d690b6a03b213030a8bad7ece9bf3050b4.cu
#include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/NumericLimits.cuh> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/NumericUtils.h> #include <ATen/native/Resize.h> #include <ATen/native/ReduceOps.h> #include <c10/util/accumulate.h> #include <THC/THCGeneral....
f36e6243f7c57adbee4805b77803d701942f2df2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to dea...
f36e6243f7c57adbee4805b77803d701942f2df2.cu
/* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use...
d4d2e81aad5a1c7d66317d02986a759e544af43a.hip
// !!! This is a file automatically generated by hipify!!! #include "solveMatrix.h" #include <hip/hip_runtime.h> #include "cusolverDn.h" double *cu_A; double *b; double *Workspace; int *devIpiv; __device__ __managed__ int devInfo; int die(cusolverStatus_t status, int devInfo, hipsolverDnHandle_t handle); int err(cusol...
d4d2e81aad5a1c7d66317d02986a759e544af43a.cu
#include "solveMatrix.h" #include <cuda_runtime.h> #include "cusolverDn.h" double *cu_A; double *b; double *Workspace; int *devIpiv; __device__ __managed__ int devInfo; int die(cusolverStatus_t status, int devInfo, cusolverDnHandle_t handle); int err(cusolverStatus_t status, int devInfo); void freeMem(); int solveMat...
e584cca8323ceb88107d9159def35bad3c0d8cc3.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 32 //Tile size and block size, both are taken as 32 __device__ void store_full(float*,float*,int,int,int); _...
e584cca8323ceb88107d9159def35bad3c0d8cc3.cu
#include<cuda.h> #include<cuda_runtime.h> #include<stdio.h> #include<stdlib.h> #include<cmath> #define TILE_SIZE 32 //Tile size and block size, both are taken as 32 __device__ void store_full(float*,float*,int,int,int); __device__ void load_full(float*,float*,int,int,int); __device__ void store_lower(float*,...
0b2e525e28bf63535a971462000b29171deca63e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
0b2e525e28bf63535a971462000b29171deca63e.cu
/* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
53e2774dbeea96b4476f59b329afb70e0cd8960b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdlib.h> #include <stdio.h> #include <cstring> // needed for memset #include <typeinfo> #include <tune_quda.h> #include <blas_quda.h> #include <color_spinor_field.h> #include <jitify_helper.cuh> #include <kernels/multi_...
53e2774dbeea96b4476f59b329afb70e0cd8960b.cu
#include <stdlib.h> #include <stdio.h> #include <cstring> // needed for memset #include <typeinfo> #include <tune_quda.h> #include <blas_quda.h> #include <color_spinor_field.h> #include <jitify_helper.cuh> #include <kernels/multi_blas_core.cuh> namespace quda { namespace blas { cudaStream_t* getStream(); ...
ae8df8874550797c472b5e284610d99510acf511.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2009 NVIDIA Corporation. All rights reserved. NOTICE TO LICENSEE: This source code and/or documentation ("Licensed Deliverables") are subject to NVIDIA intellectual property rights under U.S. and in...
ae8df8874550797c472b5e284610d99510acf511.cu
/* Copyright 2009 NVIDIA Corporation. All rights reserved. NOTICE TO LICENSEE: This source code and/or documentation ("Licensed Deliverables") are subject to NVIDIA intellectual property rights under U.S. and international Copyright laws. These Licensed Deliverables contained herein is P...
d8543b9f7d7ec463ca55c264e4742e673bbb1a63.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void multKernel(float *a, float *b, float *ab, int width) { int tx = threadIdx.x, ty = threadIdx.y; int bx = blockIdx.x, by = blockIdx.y; // allocate tiles in __shared__ memory __shared__ float s_a[...
d8543b9f7d7ec463ca55c264e4742e673bbb1a63.cu
#include "includes.h" __global__ void multKernel(float *a, float *b, float *ab, int width) { int tx = threadIdx.x, ty = threadIdx.y; int bx = blockIdx.x, by = blockIdx.y; // allocate tiles in __shared__ memory __shared__ float s_a[TILE_WIDTH][TILE_WIDTH]; __shared__ float s_b[TILE_WIDTH][TILE_WIDTH]; // calculate the...
e24cc0b238611f7c3462698f0b0a10624dfad3aa.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "ed25519.h" #include <inttypes.h> #include <assert.h> #include <vector> #include <pthread.h> #include "gpu_common.h" #include "gpu_ctx.h" #define USE_CLOCK_GETTIME #include "perftime.h" #define PACKET_SIZE 512 typedef struct { ...
e24cc0b238611f7c3462698f0b0a10624dfad3aa.cu
#include <stdio.h> #include "ed25519.h" #include <inttypes.h> #include <assert.h> #include <vector> #include <pthread.h> #include "gpu_common.h" #include "gpu_ctx.h" #define USE_CLOCK_GETTIME #include "perftime.h" #define PACKET_SIZE 512 typedef struct { size_t size; uint64_t num_retransmits; uint16_t ad...
cafb4689ab3d3424f6f53be3849ceb3555c1ea18.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019-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 ...
cafb4689ab3d3424f6f53be3849ceb3555c1ea18.cu
/* * Copyright (c) 2019-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...
d968eac8040eff4c5670de5d06a2ae8e1abbcb0e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void mardas(int imax, int jmax, int kmax, int n1, int n2, int n3, int N, int iterations, float* V, float*...
d968eac8040eff4c5670de5d06a2ae8e1abbcb0e.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void mardas(int imax, int jmax, int kmax, int n1, int n2, int n3, int N, int iterations, float* V, float* g, float *R, float w, float h, int oddEven) { int index_x = threadIdx.x + blockDim....
3df36534ffbf85061d62c368a75c54b29e1b4b97.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cudaParticleMD.hh" #include "kernelfuncs.h" #include <assert.h> #include "kerneltemplate.hh" cudaParticleMD::~cudaParticleMD() { if (m!=NULL) hipFree(m); if (hdl!=NULL) hipblasDestroy(hdl); } void cudaParticleMD::s...
3df36534ffbf85061d62c368a75c54b29e1b4b97.cu
#include "cudaParticleMD.hh" #include "kernelfuncs.h" #include <assert.h> #include "kerneltemplate.hh" cudaParticleMD::~cudaParticleMD() { if (m!=NULL) cudaFree(m); if (hdl!=NULL) cublasDestroy(hdl); } void cudaParticleMD::setup(int n) { cudaParticleVV::setup(n); // alloc m 1/(1/mass) cudaMalloc((void **...
acd7272fa8371c3d8f7126c210ce02b133e441f9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <caffe2/core/context_gpu.h> #include <caffe2/operator/squared_l2_op.h> namespace caffe2 { namespace { template <typename T> __global__ void SquaredL2Kernel(const int N, const int D, const T* X, T* Y) { CUDA_1D_KERNEL_L...
acd7272fa8371c3d8f7126c210ce02b133e441f9.cu
#include <caffe2/core/context_gpu.h> #include <caffe2/operator/squared_l2_op.h> namespace caffe2 { namespace { template <typename T> __global__ void SquaredL2Kernel(const int N, const int D, const T* X, T* Y) { CUDA_1D_KERNEL_LOOP(i, N) { float sum = 0; for (int j = i * D, e = j + D; j != e; j++) { f...
a0ef4ce35677bd8859fb278192404a711677040b.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction,...
a0ef4ce35677bd8859fb278192404a711677040b.cu
/** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
ed3fc4070385635fa77048bb1c437b2a9db4ac71.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <math.h> #include <time.h> #include <hip/hip_runtime.h> //Code written by Alan Fleming //CONSTANTS #define MATRIXSIZE 2048 #define BLOCKSIZE 1024 void cpuHistogram(int* input, int* histogram, int size) { for(int i = 0; i < size; i...
ed3fc4070385635fa77048bb1c437b2a9db4ac71.cu
#include <stdio.h> #include <math.h> #include <time.h> #include <cuda.h> //Code written by Alan Fleming //CONSTANTS #define MATRIXSIZE 2048 #define BLOCKSIZE 1024 void cpuHistogram(int* input, int* histogram, int size) { for(int i = 0; i < size; i++) { histogram[input[i]]++; } } __global__ void histogram(int* in...
00ba7dd061e09c3e8fd3940ece094659d97d8f3e.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include "gtest/gtest.h" #include "helper_math.cuh" #include "strel.cuh" // For convenience using namespace gpho; using namespace gpho::detail; TEST(FlatBallApproxTest, NonPositiveRadius) { { SCOPED_TRACE("Radius = -...
00ba7dd061e09c3e8fd3940ece094659d97d8f3e.cu
#include <cuda_runtime.h> #include "gtest/gtest.h" #include "helper_math.cuh" #include "strel.cuh" // For convenience using namespace gpho; using namespace gpho::detail; TEST(FlatBallApproxTest, NonPositiveRadius) { { SCOPED_TRACE("Radius = -1"); auto lines = flatBallApprox(-1); for (con...
69310691d14bc120180217b0833df52574fc245b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2016 Google Inc, NYU. // // 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:/...
69310691d14bc120180217b0833df52574fc245b.cu
// Copyright 2016 Google Inc, NYU. // // 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 t...
4f342f328c80e9e4e3a376fafbc7164d9009dc5b.hip
// !!! This is a file automatically generated by hipify!!! // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <unistd.h> #include <sys/time.h> #include "srad.h" // includes, project #include <hip/hip_runtime.h> // includes, kernels #include "srad_kernel.hip" #in...
4f342f328c80e9e4e3a376fafbc7164d9009dc5b.cu
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <unistd.h> #include <sys/time.h> #include "srad.h" // includes, project #include <cuda.h> // includes, kernels #include "srad_kernel.cu" #include "cudaio.h" #include "timer.h" #include "cuhelper.h" #define R1 0...
1cffc74a29f953b5485f8f0b9eb5acef03934c31.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/hip/HIPContext.h> #include <c10/util/complex.h> #include <stdio.h> #include <torch/extension.h> #include <torch/python.h> #include <ATen/native/hip/block_reduce.cuh> #include <THH/THHAtomics.cuh> #define CHECK_DEVICE...
1cffc74a29f953b5485f8f0b9eb5acef03934c31.cu
#include <ATen/cuda/CUDAContext.h> #include <c10/util/complex.h> #include <stdio.h> #include <torch/extension.h> #include <torch/python.h> #include <ATen/native/cuda/block_reduce.cuh> #include <THC/THCAtomics.cuh> #define CHECK_DEVICE(x) \ TORCH_CHECK(x.device().type() == torch::kCUDA, #x " must be on CUDA") #define...
ffae6ebb5cabcdab4726e81b6f68eb8276c9d32f.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 @author Mark Gates @generated from zgemv_...
ffae6ebb5cabcdab4726e81b6f68eb8276c9d32f.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @author Mark Gates @generated from zgemv_fermi.cu normal z -> c, Fri Jan 30 19:00:10 2015 */ #include "common_magma.h" #include "...
0241e863940df3ae6f3d368868f6137dcd297fb7.hip
// !!! This is a file automatically generated by hipify!!! #define GLM_FORCE_CUDA #include <stdio.h> #include <hip/hip_runtime.h> #include <cmath> #include <glm/glm.hpp> #include "utilityCore.hpp" #include "kernel.h" // LOOK-2.1 potentially useful for doing grid-based neighbor search #ifndef imax #define imax( a, b ) ...
0241e863940df3ae6f3d368868f6137dcd297fb7.cu
#define GLM_FORCE_CUDA #include <stdio.h> #include <cuda.h> #include <cmath> #include <glm/glm.hpp> #include "utilityCore.hpp" #include "kernel.h" // LOOK-2.1 potentially useful for doing grid-based neighbor search #ifndef imax #define imax( a, b ) ( ((a) > (b)) ? (a) : (b) ) #endif #ifndef imin #define imin( a, b ) ...
4be2b590dfbe46a9ddba6519e53da62b038652e6.hip
// !!! This is a file automatically generated by hipify!!! // Copyright 2020 California Institute of Technology. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Author: Ethan Jaszewski #include "ce.h" #include <algorithm> #include <iostre...
4be2b590dfbe46a9ddba6519e53da62b038652e6.cu
// Copyright 2020 California Institute of Technology. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Author: Ethan Jaszewski #include "ce.h" #include <algorithm> #include <iostream> #include "cuda_runtime.h" #include "math.h" #include ...
6ddc0f76ddc9064669938588fa119560bc4e5efb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Naive matrix-matrix multiplication(mmm) By C. Liao */ #include <stdio.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif #define N 1024 #define M 1024 #define K 1024 #define REAL float #include "libxomp.h" #include ...
6ddc0f76ddc9064669938588fa119560bc4e5efb.cu
/* Naive matrix-matrix multiplication(mmm) By C. Liao */ #include <stdio.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif #define N 1024 #define M 1024 #define K 1024 #define REAL float #include "libxomp.h" #include "xomp_cuda_lib_inlined.cu" int i; int j; int k; float a[1024][1024]; float b[1024][1024...
819286de228d5486f5e783379c93cc9698a51120.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * NVIDIA MAKES NO REPRE...
819286de228d5486f5e783379c93cc9698a51120.cu
/* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE * CODE FOR ANY PURPOSE. IT IS PROVIDED...
64edf3b10ddeb600f1573360e00b13ecfb3b59c7.hip
// !!! This is a file automatically generated by hipify!!! #include "THHUNN.h" #include "TH/THHalf.h" #include "THHHalfAutoNumerics.cuh" #include <THH/THHApply.cuh> #if defined(_MSC_VER) || defined(__HIP_PLATFORM_HCC__) #define ZERO_MACRO zero<T>() template <typename T> inline __device__ typename std::enable_if<std::i...
64edf3b10ddeb600f1573360e00b13ecfb3b59c7.cu
#include "THCUNN.h" #include "TH/THHalf.h" #include "THCHalfAutoNumerics.cuh" #include <THC/THCApply.cuh> #if defined(_MSC_VER) || defined(__HIP_PLATFORM_HCC__) #define ZERO_MACRO zero<T>() template <typename T> inline __device__ typename std::enable_if<std::is_same<T, double>::value, T>::type zero() { return 0.; } ...
25122622ac75dad3b01ddc26ff71dd77cf8623d0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <heteroflow/heteroflow.hpp> #include <vector> #include <cassert> // Compilation: nvcc -O2 -g ./unittest/heteroflow.cu -std=c++14 -I . __global__ void assign_value(int n, float a, float *x) { // Get the corresponding idx...
25122622ac75dad3b01ddc26ff71dd77cf8623d0.cu
#include <heteroflow/heteroflow.hpp> #include <vector> #include <cassert> // Compilation: nvcc -O2 -g ./unittest/heteroflow.cu -std=c++14 -I . __global__ void assign_value(int n, float a, float *x) { // Get the corresponding idx int i = blockIdx.x*blockDim.x + threadIdx.x; if (i < n) { x[i] = a; } } __g...
cbb4ff711f4130869351fc4298ccfdaa0457ef10.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void ShortestPath1(float *Arr1,float *Arr2,int N,int rows, int rank){ //rowNum is number of rows for each process (full assigned to process) //Arr1 input array,Holds of (u,v) //Arr2 output array...
cbb4ff711f4130869351fc4298ccfdaa0457ef10.cu
#include "includes.h" __global__ void ShortestPath1(float *Arr1,float *Arr2,int N,int rows, int rank){ //rowNum is number of rows for each process (full assigned to process) //Arr1 input array,Holds of (u,v) //Arr2 output array int k; int col=blockIdx.x * blockDim.x + threadIdx.x; int row=blockIdx.y * blockDim.y +...