hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
73c3173a519bccad07855316ea20b7b6272b6462.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/reduction_ops.h" #include "caffe2/utils/conversions.h" #include <hipcub/hipcub.hpp> namespace caffe2 { REGISTER_CUDA_OPERATOR(SumElements, SumElementsOp<float, CUDAC...
73c3173a519bccad07855316ea20b7b6272b6462.cu
#include "caffe2/core/context_gpu.h" #include "caffe2/operators/reduction_ops.h" #include "caffe2/utils/conversions.h" #include <cub/cub.cuh> namespace caffe2 { REGISTER_CUDA_OPERATOR(SumElements, SumElementsOp<float, CUDAContext>); REGISTER_CUDA_OPERATOR(SumSqrElements, SumSqrElementsOp<float, CUDAContext>); REGIST...
8b0ae77731c10a84707d398c6e487447109edeb4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void current_calculate_postsynaptic_current_injection_kernel(float* d_synaptic_efficacies_or_weights, float* d_time_of_last_spike_to_reach_synapse, int* d_postsynaptic_neuron_indices, float* d_neuron...
8b0ae77731c10a84707d398c6e487447109edeb4.cu
#include "includes.h" __global__ void current_calculate_postsynaptic_current_injection_kernel(float* d_synaptic_efficacies_or_weights, float* d_time_of_last_spike_to_reach_synapse, int* d_postsynaptic_neuron_indices, float* d_neurons_current_injections, float current_time_in_seconds, size_t total_number_of_synapses){ ...
0875c7588d9e627275e3e8d95cd8c4f530f3b105.hip
// !!! This is a file automatically generated by hipify!!! #include "CUAPI.h" #if ( defined GPU && defined GRAVITY ) extern real (*d_Rho_Array_P )[ CUBE(RHO_NXT) ]; extern real (*d_Pot_Array_P_In )[ CUBE(POT_NXT) ]; extern real (*d_Pot_Array_P_Out)[ CUBE(GRA_NXT) ]; #ifdef UNSPLIT_GRAVITY extern real (*d_Pot_A...
0875c7588d9e627275e3e8d95cd8c4f530f3b105.cu
#include "CUAPI.h" #if ( defined GPU && defined GRAVITY ) extern real (*d_Rho_Array_P )[ CUBE(RHO_NXT) ]; extern real (*d_Pot_Array_P_In )[ CUBE(POT_NXT) ]; extern real (*d_Pot_Array_P_Out)[ CUBE(GRA_NXT) ]; #ifdef UNSPLIT_GRAVITY extern real (*d_Pot_Array_USG_F)[ CUBE(USG_NXT_F) ]; extern real (*d_Pot_Array_U...
ae629d33ff5bb54593e49a7bb352d02d2e7ebb9d.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include </usr/users/hpcgif/hpcgif_9/Deep_Learning_GPU_CUDA/Eigen/Dense> #include <vector> #include <math.h> #include <random> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "device_atomic_functions.h" #include "...
ae629d33ff5bb54593e49a7bb352d02d2e7ebb9d.cu
#include <iostream> #include </usr/users/hpcgif/hpcgif_9/Deep_Learning_GPU_CUDA/Eigen/Dense> #include <vector> #include <math.h> #include <random> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "device_atomic_functions.h" #include "timer.h" #include <stdio.h> #include <fstream> #include <stdli...
87f164ba0914be59560cc682a91a3befceb1591d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2022 Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
87f164ba0914be59560cc682a91a3befceb1591d.cu
/* * Copyright 2022 Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University * * 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/license...
1c66537f7864f6a3552bcfa4106ae1cf7b54899b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "ExampleUpdater_hip.cuh" /*! \file ExampleUpdater.cu \brief...
1c66537f7864f6a3552bcfa4106ae1cf7b54899b.cu
// Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "ExampleUpdater.cuh" /*! \file ExampleUpdater.cu \brief CUDA kernels for ExampleUpdater */ // First, the kernel code for zeroing the velocities on...
e889eb550d958504aaf8e91e79a647fc02564d98.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "ATen/ATen.h" #include "ATen/AccumulateType.h" #include "ATen/TensorUtils.h" #include "ATen/core/Error.h" #include "ATen/hip/HIPContext.h" #include <THH/THHDeviceUtils.cuh> #include <THH/THHTensorMathReduce.cuh> namespace...
e889eb550d958504aaf8e91e79a647fc02564d98.cu
#include "ATen/ATen.h" #include "ATen/AccumulateType.h" #include "ATen/TensorUtils.h" #include "ATen/core/Error.h" #include "ATen/cuda/CUDAContext.h" #include <THC/THCDeviceUtils.cuh> #include <THC/THCTensorMathReduce.cuh> namespace at { namespace native { namespace { // Block size for weight_norm_*_first_dim_kerne...
6f485a0be01914ffe52a859eb42ddb5681ca17a0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // This file defines a CUDA inorder walk microbenchmark, which traverses an // array in order. This will print the times for each *block* in each // kernel invocation. Specify the -zc command-line argument to use zero-copy // memory...
6f485a0be01914ffe52a859eb42ddb5681ca17a0.cu
// This file defines a CUDA inorder walk microbenchmark, which traverses an // array in order. This will print the times for each *block* in each // kernel invocation. Specify the -zc command-line argument to use zero-copy // memory, and -mm for managed memory. // // Usage: ./inorder_walk [-zc|-mm] #include <stdint.h> ...
dd10dcf6c728d48047b88233667da2166809acc7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> //#define DEVICE_ALLOC //#define UVM_ALLOC #define BLOCK_PER_SM 8 #define SM_NUM 56 #define BLOCK_NUM (SM_NUM * BLOCK_PER_SM) #define THREAD_PER_BLOCK 256 #define TOTAL_NUM (BLOCK_NUM * THREA...
dd10dcf6c728d48047b88233667da2166809acc7.cu
#include <stdio.h> #include <stdlib.h> //#define DEVICE_ALLOC //#define UVM_ALLOC #define BLOCK_PER_SM 8 #define SM_NUM 56 #define BLOCK_NUM (SM_NUM * BLOCK_PER_SM) #define THREAD_PER_BLOCK 256 #define TOTAL_NUM (BLOCK_NUM * THREAD_PER_BLOCK) #define SIZE (1024 * 1024 * 9 * 7 * 5 * 12L) //#define STEP (512) //#defin...
26f20064edf857b6d7304476102f6a52f0d7565f.hip
// !!! This is a file automatically generated by hipify!!! /** * \file dnn/src/cuda/conv_bias/int8_imma/kimpl/conv_bias_int8_implicit_gemm_imma16x16x16_cdiv4hwn4_reorder_filter_per_chan_id.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All ri...
26f20064edf857b6d7304476102f6a52f0d7565f.cu
/** * \file dnn/src/cuda/conv_bias/int8_imma/kimpl/conv_bias_int8_implicit_gemm_imma16x16x16_cdiv4hwn4_reorder_filter_per_chan_id.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 a...
1af01bb310c06d533d12a5df05b1eb371ee70567.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "hip/hip_runtime.h" #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1) void check_error (const char* message) { hipError_t error = hipG...
1af01bb310c06d533d12a5df05b1eb371ee70567.cu
#include <stdio.h> #include "cuda.h" #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1) void check_error (const char* message) { cudaError_t error = cudaGetLastError (); if (error != cudaSuccess) { printf ("CUDA error :...
70b8832b639448e28932255ad5e220bdfb58153d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <fstream> #include <time.h> // Generic utils typedef float3 pixel; void check_result(hipError_t value) { hipError_t status = value; if (status != hipSuccess) { printf("Error %s at line %d in file ...
70b8832b639448e28932255ad5e220bdfb58153d.cu
#include <stdio.h> #include <fstream> #include <time.h> // Generic utils typedef float3 pixel; void check_result(cudaError_t value) { cudaError_t status = value; if (status != cudaSuccess) { printf("Error %s at line %d in file %s\n", cudaGetErrorString(status), __LINE__, __FILE__); // exit(1); } } __devi...
8a6c1d0a44e270b26fc3527e29fedd0d29049228.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! \file VL_3D_cuda.cu * \brief Definitions of the cuda 3D VL algorithm functions. */ #ifdef CUDA #ifdef VL #include<stdio.h> #include<stdlib.h> #include<math.h> #include<cuda.h> #include"global.h" #include"global_cuda.h" #incl...
8a6c1d0a44e270b26fc3527e29fedd0d29049228.cu
/*! \file VL_3D_cuda.cu * \brief Definitions of the cuda 3D VL algorithm functions. */ #ifdef CUDA #ifdef VL #include<stdio.h> #include<stdlib.h> #include<math.h> #include<cuda.h> #include"global.h" #include"global_cuda.h" #include"hydro_cuda.h" #include"VL_3D_cuda.h" #include"pcm_cuda.h" #include"plmp_cuda.h" #inc...
99a308db8d35abb02c20db272f529f105b6337f7.hip
// !!! This is a file automatically generated by hipify!!! // generated by gen_cuda_conv_bias_kern_impls.py #include "../conv_bias_int8_implicit_gemm_cdiv4hwn4_ld_64bit_unroll_width.cuinl" template void megdnn::cuda::conv_bias_int8::do_conv_bias_int8_implicit_gemm_cdiv4hwn4_ld_64bit_unroll_width<PerChannelBiasVisitor,...
99a308db8d35abb02c20db272f529f105b6337f7.cu
// generated by gen_cuda_conv_bias_kern_impls.py #include "../conv_bias_int8_implicit_gemm_cdiv4hwn4_ld_64bit_unroll_width.cuinl" template void megdnn::cuda::conv_bias_int8::do_conv_bias_int8_implicit_gemm_cdiv4hwn4_ld_64bit_unroll_width<PerChannelBiasVisitor, IConvEpilogue<Activation<megdnn::param_enumv::Con...
e04916baff2ca8906aff462b96b87dd71a9f24c5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //#include <hip/hip_fp16.h> #include "cuda_math.h" //#include "cuda_math_double.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "structs.cuh" #include "im2D.h" #include "im3D.hpp" int type_diag_flag=0; im3D_p...
e04916baff2ca8906aff462b96b87dd71a9f24c5.cu
//#include <cuda_fp16.h> #include "cuda_math.h" //#include "cuda_math_double.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "structs.cuh" #include "im2D.h" #include "im3D.hpp" int type_diag_flag=0; im3D_pars im3DHost; LBMParamsHost parsHost; __constant__ LBMParams pars; __constant__ int3 e[Qn];...
ef0bc1b4161b2589c5435be3abbd55e4f2afa304.hip
// !!! This is a file automatically generated by hipify!!! // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
ef0bc1b4161b2589c5435be3abbd55e4f2afa304.cu
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distribut...
8d51105abb107ef78cc48ab2ace6cd08684d6de0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Gaussian Blur Computation * * Maximo, Andre -- Sep, 2011 * */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <cfloat> #include <hipfft.h> #include <util/ut...
8d51105abb107ef78cc48ab2ace6cd08684d6de0.cu
/** * Gaussian Blur Computation * * Maximo, Andre -- Sep, 2011 * */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <cfloat> #include <cufft.h> #include <util/util.h> #include <util/symbol.h> //#include <util/chronos.h> #include <util/dvector.h> #inc...
4c0e58753cf02693403e02bd54d6c041f5cc4b31.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http...
4c0e58753cf02693403e02bd54d6c041f5cc4b31.cu
/** * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
28e537cb23722cf6754415f89396f290a764aeef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.3.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver November 2012 @precisions normal z -> s d c */ #include "common_magma.h" ...
28e537cb23722cf6754415f89396f290a764aeef.cu
/* -- MAGMA (version 1.3.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver November 2012 @precisions normal z -> s d c */ #include "common_magma.h" // 512 is maximum number of threads for CUDA capability 1.x #define BLOCK_SIZE 512 #def...
1632c1ec4b0605fed526370c645d62a203c0f446.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 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 * *...
1632c1ec4b0605fed526370c645d62a203c0f446.cu
/* * Copyright (c) 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 law ...
75196e2558db825a1bf4d6786fc2966c37941152.hip
// !!! This is a file automatically generated by hipify!!! /*The basic model of Danying's 2012 PNAS paper, without explicitly track the adhesion sites. Instead, using a rhoM dependent manner to handle the friction and then the traction force*/ //Feb-22-2018: Looks like for the diffusion term, spectral method does not ...
75196e2558db825a1bf4d6786fc2966c37941152.cu
/*The basic model of Danying's 2012 PNAS paper, without explicitly track the adhesion sites. Instead, using a rhoM dependent manner to handle the friction and then the traction force*/ //Feb-22-2018: Looks like for the diffusion term, spectral method does not work well. This is the only term that used finite differeti...
2667c177918ebe602dcdbf53dbb4c900538da7e2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <hiprand/hiprand_kernel.h> #include <hip/device_functions.h> #include "device_launch_parameters.h" #include <cstdlib> #include <hip/hip_runtime.h> #include <stdio.h> #include <iostream> #include <stdlib.h> #include "bmp/Ea...
2667c177918ebe602dcdbf53dbb4c900538da7e2.cu
#include "cuda_runtime.h" #include <curand_kernel.h> #include <device_functions.h> #include "device_launch_parameters.h" #include <cstdlib> #include <cuda.h> #include <stdio.h> #include <iostream> #include <stdlib.h> #include "bmp/EasyBMP.h" #include <stdio.h> #include <time.h> using namespace std; #define WINDOW_SI...
8bc6f563670035a6285199782c581e2d872eeaea.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. // All Rights reserved. See files LICENSE and NOTICE for details. // // This file is...
8bc6f563670035a6285199782c581e2d872eeaea.cu
// Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. // All Rights reserved. See files LICENSE and NOTICE for details. // // This file is part of CEED, a collection of benchmarks, miniapps, software // libraries and APIs for ...
d81de28fccb7c7a0165cd7f010dc6e779d624d07.hip
// !!! This is a file automatically generated by hipify!!! /********************************************************************************** Copyright 2021 Charles W. Johnson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Sof...
d81de28fccb7c7a0165cd7f010dc6e779d624d07.cu
/********************************************************************************** Copyright 2021 Charles W. Johnson 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, inclu...
de3c5b55412d4cfc89d6820b571eb1620bdf7ca6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright 2020-2022 Huawei Technologies Co., Ltd * * 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 Licens...
de3c5b55412d4cfc89d6820b571eb1620bdf7ca6.cu
/** * Copyright 2020-2022 Huawei Technologies Co., Ltd * * 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 applicabl...
b00c999fee4dbe3ed40ecbca630d2f75d232f2ae.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/AccumulateType.h> #include <ATen/hip/Exceptions.h> #include <cmath> #include <limits> #include <thrust/device_ptr.h> #include <thrust/sequence.h> namespace at { namespace native { te...
b00c999fee4dbe3ed40ecbca630d2f75d232f2ae.cu
#include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/AccumulateType.h> #include <ATen/cuda/Exceptions.h> #include <cmath> #include <limits> #include <thrust/device_ptr.h> #include <thrust/sequence.h> namespace at { namespace native { template<typename T, typename accT = T> struct LinspaceOp { ...
a8a5f41857cc45234607e783e0c390351fce2a3b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* @author: lugao */ #include <cstdio> #include <cmath> #include <vector> #include <string> #include <ctime> #include <sstream> #include <chrono> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/e...
a8a5f41857cc45234607e783e0c390351fce2a3b.cu
/* @author: lugao */ #include <cstdio> #include <cmath> #include <vector> #include <string> #include <ctime> #include <sstream> #include <chrono> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/extrema.h> #include <thrust/random.h> #include "matplotlibcpp.h" namespace plt = matplo...
e49d64b488193c9188252539967db64291611c59.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // #include <stdio.h> #define BLOCKS_COUNT (2048 * 2048) #define THREADS_PER_BLOCK 512 __global__ void add(int *numberOne, int *numberTwo, int *addition, int count) { int index = threadIdx.x + blockIdx.x * blockDim.x; if(i...
e49d64b488193c9188252539967db64291611c59.cu
// #include <stdio.h> #define BLOCKS_COUNT (2048 * 2048) #define THREADS_PER_BLOCK 512 __global__ void add(int *numberOne, int *numberTwo, int *addition, int count) { int index = threadIdx.x + blockIdx.x * blockDim.x; if(index < count) { addition[index] = numberOne[index] + numberTwo[index]; }...
6ff165b5139a217359e5517c3e39e90ef61c0e95.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2020-2021, 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: * ...
6ff165b5139a217359e5517c3e39e90ef61c0e95.cu
/* * Copyright (c) 2020-2021, 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 ...
e47b52901ddf3b4b82b2b74fdc8fad9c103df5dd.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...
e47b52901ddf3b4b82b2b74fdc8fad9c103df5dd.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) { ...
5cc0c7f435f230ec56283f813bf39cb59131b27e.hip
// !!! This is a file automatically generated by hipify!!! #include "../include/Compute_On_GPU.cuh" #include "../include/Sci_Constant.h" #include "../include/Init_First_Second.cuh" #include "../include/Runge_Kutta.cuh" #include "../include/Laser.cuh" #include <cstdlib> #include <hip/hip_runtime.h> #include <cstdio> _...
5cc0c7f435f230ec56283f813bf39cb59131b27e.cu
#include "../include/Compute_On_GPU.cuh" #include "../include/Sci_Constant.h" #include "../include/Init_First_Second.cuh" #include "../include/Runge_Kutta.cuh" #include "../include/Laser.cuh" #include <cstdlib> #include <cuda_runtime.h> #include <cstdio> __global__ void pairs_init(particle_pair* pair_array, const si...
fd2541cbebe0f1f7ab4f0b80a7fc061091c19015.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "poisson2d.hpp" #include "timer.hpp" #include <algorithm> #include <iostream> #include <fstream> #include <vector> // DEFINES #define EX "ex10" #define CSV_NAME "ph_data_cuda.csv" #define N_MAX_PRINT 32 #define PRINT_ONLY ...
fd2541cbebe0f1f7ab4f0b80a7fc061091c19015.cu
#include "poisson2d.hpp" #include "timer.hpp" #include <algorithm> #include <iostream> #include <fstream> #include <vector> // DEFINES #define EX "ex10" #define CSV_NAME "ph_data_cuda.csv" #define N_MAX_PRINT 32 #define PRINT_ONLY 10 #define NUM_TESTS 10 // should be uneven so we dont have to copy after each iteration...
20cddc77ec543a8a440fbdae51c041535b594d60.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include"dropOutLayer.h" dropOutLayer::dropOutLayer(string name) { _name = name; _inputName = " "; srcData = NULL; dstData = NULL; nextLayer.clear(); prevLayer.clear(); outputPtr = NULL; configDropOut* curConfig = (c...
20cddc77ec543a8a440fbdae51c041535b594d60.cu
#include"dropOutLayer.h" dropOutLayer::dropOutLayer(string name) { _name = name; _inputName = " "; srcData = NULL; dstData = NULL; nextLayer.clear(); prevLayer.clear(); outputPtr = NULL; configDropOut* curConfig = (configDropOut*) config::instanceObjtce()->getLayersByName(_name); string prevLayerName =...
cb881c6cea0a903f984b222ffd0d5e9b7242fc8e.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2016, The Bifrost Authors. All rights reserved. * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
cb881c6cea0a903f984b222ffd0d5e9b7242fc8e.cu
/* * Copyright (c) 2016, The Bifrost Authors. All rights reserved. * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source co...
intro2.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> __device__ float fx(float x, float y) { return x + y; } __global__ void kernel(void) { printf("res = %f\n", fx(1.0, 2.0)); } int main(int argc, char* argv[]) { hipLaunchKernelGGL(( kernel), dim3(1), dim3(1), ...
intro2.cu
#include <stdio.h> #include <cuda_runtime.h> __device__ float fx(float x, float y) { return x + y; } __global__ void kernel(void) { printf("res = %f\n", fx(1.0, 2.0)); } int main(int argc, char* argv[]) { kernel<<<1, 1>>>(); cudaDeviceSynchronize(); return 0; }
dyadicAdd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void dyadicAdd(int * counter, const int length, const int shift) { if (shift > 0) { unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x; int adds = 2*shift; int Index = adds*(xIndex+1)-1; if...
dyadicAdd.cu
#include "includes.h" __global__ void dyadicAdd(int * counter, const int length, const int shift) { if (shift > 0) { unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x; int adds = 2*shift; int Index = adds*(xIndex+1)-1; if (Index < length) { counter[Index] = counter[Index] + counter[Index-shift]; } } }
68adee539fc8d722d4856a6b53c2dd08781d783e.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 "msecost.cu" #include<chrono> #include<iostream> using namespace ...
68adee539fc8d722d4856a6b53c2dd08781d783e.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 "msecost.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{...
a50c5f744d70f95b7d6e59af7aeea03f4a001e36.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 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/li...
a50c5f744d70f95b7d6e59af7aeea03f4a001e36.cu
/* * Copyright (c) 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 law ...
4301b3334075886c5360cab8fdfaea8eb7404c08.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 <Color.cuh> #include <Ray.cuh> #include <Camera.cuh> #...
4301b3334075886c5360cab8fdfaea8eb7404c08.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 <Color.cuh> #include <Ray.cuh> #include <Camera.cuh> #include <Sphere.cuh> #include <HittableList.cuh> #include <Mat...
1e4c3d15262740bf81903da91d89f40d6187c051.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). * * 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 * t...
1e4c3d15262740bf81903da91d89f40d6187c051.cu
/* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). * * 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, cop...
25690ee6f21d2b1eb26e2b1021a6e9aa582b98fe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void calc_avg_activation_kernel(float *src, float *dst, int size, int channels, int batches) { int i = blockIdx.x * blockDim.x + threadIdx.x; int xy = i % size; int b = i / size; if (i < size*batche...
25690ee6f21d2b1eb26e2b1021a6e9aa582b98fe.cu
#include "includes.h" __global__ void calc_avg_activation_kernel(float *src, float *dst, int size, int channels, int batches) { int i = blockIdx.x * blockDim.x + threadIdx.x; int xy = i % size; int b = i / size; if (i < size*batches) { dst[i] = 0; for (int c = 0; c < channels; ++c) { dst[i] += src[xy + size*(c + chann...
f0202f7022c0becdf4be1250a7951d99a81321a3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef _PRESCAN_CU_ #define _PRESCAN_CU_ // includes, kernels #include <assert.h> #define NUM_BANKS 32 #define LOG_NUM_BANKS 5 // Lab4: You can use any other block size you wish. #define BLOCK_SIZE 256 // Lab4: Host Helper Func...
f0202f7022c0becdf4be1250a7951d99a81321a3.cu
#ifndef _PRESCAN_CU_ #define _PRESCAN_CU_ // includes, kernels #include <assert.h> #define NUM_BANKS 32 #define LOG_NUM_BANKS 5 // Lab4: You can use any other block size you wish. #define BLOCK_SIZE 256 // Lab4: Host Helper Functions (allocate your own data structure...) __global__ void scan(float *g_odata, float ...
8272f4e885b9a4bff8242e5bd0904d1d56351d10.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBA...
8272f4e885b9a4bff8242e5bd0904d1d56351d10.cu
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
NonogramLineDevice.hip
// !!! This is a file automatically generated by hipify!!! // // Created by Benjamin Huang on 11/19/2018. // #include "NonogramLineDevice.h" // #define DEBUG __device__ bool ngline_dev_cell_solve(NonogramLineDevice *L, Board2DDevice *B, NonogramColor color, unsigned i) { if (L->data[i] ...
NonogramLineDevice.cu
// // Created by Benjamin Huang on 11/19/2018. // #include "NonogramLineDevice.h" // #define DEBUG __device__ bool ngline_dev_cell_solve(NonogramLineDevice *L, Board2DDevice *B, NonogramColor color, unsigned i) { if (L->data[i] != color) { unsigned x, y; if (L->line_is_r...
2103a118e2699f16aa734aac2af64c930ea502a6.hip
// !!! This is a file automatically generated by hipify!!! #include "../common/common.h" #include <hip/hip_runtime.h> #include <stdio.h> /* * This example implements matrix element-wise addition on the host and GPU. * sumMatrixOnHost iterates over the rows and columns of each matrix, adding * elements from A and B ...
2103a118e2699f16aa734aac2af64c930ea502a6.cu
#include "../common/common.h" #include <cuda_runtime.h> #include <stdio.h> /* * This example implements matrix element-wise addition on the host and GPU. * sumMatrixOnHost iterates over the rows and columns of each matrix, adding * elements from A and B together and storing the results in C. The current * offset i...
66352e52af228599a9bea70a83515f605ae17eb6.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdlib> #include <iostream> #include <cstdio> #include <fstream> #include "utils.h" #include "timer.h" #include <cstdio> #if defined(_WIN16) || defined(_WIN32) || defined(_WIN64) #include <Windows.h> #else #include <sys/time.h> #endif #include <thru...
66352e52af228599a9bea70a83515f605ae17eb6.cu
#include <cstdlib> #include <iostream> #include <cstdio> #include <fstream> #include "utils.h" #include "timer.h" #include <cstdio> #if defined(_WIN16) || defined(_WIN32) || defined(_WIN64) #include <Windows.h> #else #include <sys/time.h> #endif #include <thrust/host_vector.h> #include <thrust/device_vector.h> #inclu...
fd23188c832aa1e0e068a16b6f8c2cd6166f68f0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void min_output(float *input, float *output, float *indices, long nrows, long ncols) { // output offset: long o = threadIdx.x + blockDim.x * blockIdx.x; if (o >= nrows) return; // input offset: long...
fd23188c832aa1e0e068a16b6f8c2cd6166f68f0.cu
#include "includes.h" __global__ void min_output(float *input, float *output, float *indices, long nrows, long ncols) { // output offset: long o = threadIdx.x + blockDim.x * blockIdx.x; if (o >= nrows) return; // input offset: long i = o * ncols; // move pointers input = input + i; // compute min: float min = input[...
d5cfe5c0b2e9a2bef3855057575e419f0ae8f850.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <cstdlib> #include <algorithm> #include <climits> #include "utils.h" #include "reference.cpp" #define TPB 1024 __device__ unsigned int sum_reduce_warp(unsigned int * s_buf) { unsigned int i = threa...
d5cfe5c0b2e9a2bef3855057575e419f0ae8f850.cu
#include <cstdio> #include <cstdlib> #include <algorithm> #include <climits> #include "utils.h" #include "reference.cpp" #define TPB 1024 __device__ unsigned int sum_reduce_warp(unsigned int * s_buf) { unsigned int i = threadIdx.x; if ((i&0x1) == 0) s_buf[i] += s_buf[i|0x1]; if ((i&0x3) == 0) s_buf[i] +...
11d170ed032b586d4a3c869cb50409140227d58b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <iostream> #include <hip/hip_runtime.h> // For CUDA runtime API #include <helper_cuda.h> // For checkCudaError macro #include <helper_timer.h> // For CUDA SDK timers #include "wtime.h" #include "mmio.h" #includ...
11d170ed032b586d4a3c869cb50409140227d58b.cu
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <cuda_runtime.h> // For CUDA runtime API #include <helper_cuda.h> // For checkCudaError macro #include <helper_timer.h> // For CUDA SDK timers #include "wtime.h" #include "mmio.h" #include "matrixPreprocessing.h" #include "test.h" #include "matrixVe...
853f8a9909b2f0695ddff35691cb2d27793b3d9e.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 a...
853f8a9909b2f0695ddff35691cb2d27793b3d9e.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 agreed...
0b0971f078f1b6ab93e30fb8df15a7d13d1f5e37.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) Copyright-2020, 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: ...
0b0971f078f1b6ab93e30fb8df15a7d13d1f5e37.cu
/* * Copyright (c) Copyright-2020, 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 ...
ac429924fe76dc7a0bd938c3ca110fd36b15700c.hip
// !!! This is a file automatically generated by hipify!!! /******************************************************************************* * 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 availab...
ac429924fe76dc7a0bd938c3ca110fd36b15700c.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. * *...
a1e996a1573f8ffc49a9662cb64cfb938ef7a6a8.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstring> #include <sys/stat.h> //for filesize #include <vector> #include <stdlib.h> #include <stdio.h> #include <iomanip> #include "hip/hip_runtime.h" #include "device_launch...
a1e996a1573f8ffc49a9662cb64cfb938ef7a6a8.cu
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstring> #include <sys/stat.h> //for filesize #include <vector> #include <stdlib.h> #include <stdio.h> #include <iomanip> #include "cuda_runtime.h" #include "device_launch_parameters.h" using namespace std; #define BLOCK_SIZE_BIT 1...
d1e272ab1a880620d60a6f64a51a057952c80226.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include "common.h" #include "naive.h" namespace StreamCompaction { namespace Radix { using StreamCompaction::Common::PerformanceTimer; PerformanceTimer& timer(){ static PerformanceTimer timer; ...
d1e272ab1a880620d60a6f64a51a057952c80226.cu
#include <cuda.h> #include <cuda_runtime.h> #include "common.h" #include "naive.h" namespace StreamCompaction { namespace Radix { using StreamCompaction::Common::PerformanceTimer; PerformanceTimer& timer(){ static PerformanceTimer timer; return timer; } int *dev_Data[2]; int *dev_bArray; int *dev_e...
ac946c4fce310e82c80a20831b88a8bba5e1c7c2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions normal z -> s d c @author Azza...
ac946c4fce310e82c80a20831b88a8bba5e1c7c2.cu
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions normal z -> s d c @author Azzam Haidar @author Tingxing Dong */ #include "magma_internal.h" /***************...
570059aa09c223863bebd809484b7c5ab6784d80.hip
// !!! This is a file automatically generated by hipify!!! #include "CudaAlgorithm.hpp" #include "HelperFunctions.hpp" #include <cstdlib> #include <SFML/Graphics.hpp> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> __device__ void ali...
570059aa09c223863bebd809484b7c5ab6784d80.cu
#include "CudaAlgorithm.hpp" #include "HelperFunctions.hpp" #include <cstdlib> #include <SFML/Graphics.hpp> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> __device__ void alignChannel(int& channelValue) { channelValue = (channelValu...
00d0310c7c8d166a5e573b5fe21275d54fb99296.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Stacked-batch-data version of point interpolation, modified from the original implementation of official PointNet++ codes. Written by Shaoshuai Shi All Rights Reserved 2019-2020. */ #include <math.h> #include <stdio.h> #include...
00d0310c7c8d166a5e573b5fe21275d54fb99296.cu
/* Stacked-batch-data version of point interpolation, modified from the original implementation of official PointNet++ codes. Written by Shaoshuai Shi All Rights Reserved 2019-2020. */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include "cuda_utils.h" #include "interpolate_gpu.h" __global__ void thre...
8d4d79395b9f239ef1d037981adc498efaa2b291.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __device__ void MakeCountSegment_sharedAtomic(float *segment, int *bins, const int seglength, int *segCounter, int *s_counter, const int countlength, const float low, const float high, const float slope) { int ...
8d4d79395b9f239ef1d037981adc498efaa2b291.cu
#include "includes.h" __device__ void MakeCountSegment_sharedAtomic(float *segment, int *bins, const int seglength, int *segCounter, int *s_counter, const int countlength, const float low, const float high, const float slope) { int bin; float temp; for (int jj=0; jj<seglength; jj++){ temp = abs(segment[jj]); if ( ( tem...
efb46f29e6b4a77aa923a2032e8c764b1f529e55.hip
// !!! This is a file automatically generated by hipify!!! // Includes #include <stdio.h> #include <stdlib.h> // includes from project // includes from CUDA #include <hip/hip_runtime.h> //#include <helper_math.h> #define THREADS_PER_BLOCK 256 #define NUM_OF_BLOCKS 640 // Variables float* h_A; float* h_B; float* h_...
efb46f29e6b4a77aa923a2032e8c764b1f529e55.cu
// Includes #include <stdio.h> #include <stdlib.h> // includes from project // includes from CUDA #include <cuda_runtime.h> //#include <helper_math.h> #define THREADS_PER_BLOCK 256 #define NUM_OF_BLOCKS 640 // Variables float* h_A; float* h_B; float* h_C; float* d_A; float* d_B; float* d_C; // Functions void Clea...
66427f1bc3dc9f79b25a2fd6e1e295709ab8e975.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/SegmentReduce.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/NumericUtils.h> #include <ATen/hip/HIPContext.h> #include <ATen/hip/detail/Ke...
66427f1bc3dc9f79b25a2fd6e1e295709ab8e975.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/SegmentReduce.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/NumericUtils.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/detail/KernelUtils.h> #include <ATen/cuda/cub.cuh> #ifndef AT_PER_OPERATOR_HEADERS #include <...
weems_emmart_texture_memory.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.hu" #include <hip/hip_cooperative_groups.h> #define PI 3.141592654f texture<DATA_TYPE, hipTextureType2D, hipReadModeElementType> texRef; __device__ __forceinline__ DATA_TYPE mul(DATA_TYPE a, DATA_TYPE b) { re...
weems_emmart_texture_memory.cu
#include "common.hu" #include <cooperative_groups.h> #define PI 3.141592654f texture<DATA_TYPE, cudaTextureType2D, cudaReadModeElementType> texRef; __device__ __forceinline__ DATA_TYPE mul(DATA_TYPE a, DATA_TYPE b) { return make_float2(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x); } __device__ __forceinline__ ...
ef2874478646f05217d7525636c8ba73186f9647.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...
ef2874478646f05217d7525636c8ba73186f9647.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 2 #define TW 4 #define TC 16 #define C 192 #define N 96 #defin...
94282aa2839972c27f8195e6652352ef64cab144.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.2) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date May 2015 @generated from ziterilu.cu normal z -> c, Sun May 3 11:22:...
94282aa2839972c27f8195e6652352ef64cab144.cu
/* -- MAGMA (version 1.6.2) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date May 2015 @generated from ziterilu.cu normal z -> c, Sun May 3 11:22:58 2015 */ #include "common_magmasparse.h" #define PRECISION_c __global__ void magm...
a1455cf2412fe7a44a26156adcd4d2c08b45996b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif #ifndef CAST #define CAST(fun) fun ## f #endif #ifndef REAL2o3 #define REAL2o3 (REAL)0.6666666666666667 #endif #ifndef REAL3o2 #define REAL3o2 (REAL)1.5 #...
a1455cf2412fe7a44a26156adcd4d2c08b45996b.cu
#include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif #ifndef CAST #define CAST(fun) fun ## f #endif #ifndef REAL2o3 #define REAL2o3 (REAL)0.6666666666666667 #endif #ifndef REAL3o2 #define REAL3o2 (REAL)1.5 #endif ...
b04cbacf107eefc566051e25b0cd54e9e9983c7a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <math.h> #include <stdio.h> #include <algorithm> #include <stdlib.h> #include <time.h> //#include <mpir.h> using namespace std; struct Point { int x = 0; int y = 0; }; __device__ int xgcd(int a, int...
b04cbacf107eefc566051e25b0cd54e9e9983c7a.cu
#include <iostream> #include <math.h> #include <stdio.h> #include <algorithm> #include <stdlib.h> #include <time.h> //#include <mpir.h> using namespace std; struct Point { int x = 0; int y = 0; }; __device__ int xgcd(int a, int b, int *x, int *y) { int prevx = 1, x1 = 0, prevy = 0, y1 = 1; while (b) { ...
66bc505b4b828abe925542ae0d03cc8468def19d.hip
// !!! This is a file automatically generated by hipify!!! #include "LF_Utils.cuh" uint8_t* alloc_uint8(size_t size, std::string alloc_type) { hipError_t err; uint8_t* buf; if (alloc_type == "pinned") { err = hipHostMalloc((void**)&buf, size); assert(err == hipSuccess); memset(buf, 0, size); } else if (al...
66bc505b4b828abe925542ae0d03cc8468def19d.cu
#include "LF_Utils.cuh" uint8_t* alloc_uint8(size_t size, std::string alloc_type) { cudaError_t err; uint8_t* buf; if (alloc_type == "pinned") { err = cudaMallocHost((void**)&buf, size); assert(err == cudaSuccess); memset(buf, 0, size); } else if (alloc_type == "pageable") { buf = new uint8_t[size](); ...
9b8247884add8e569f5ca239988fcc3aea3c08d0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017, Geometric Computation Group of Stanford University // The MIT License (MIT) // Copyright (c) 2017 Charles R. Qi // Permission is hereby granted, free of charge, to any person obtaining a copy // of this sof...
9b8247884add8e569f5ca239988fcc3aea3c08d0.cu
// Copyright (c) 2017, Geometric Computation Group of Stanford University // The MIT License (MIT) // Copyright (c) 2017 Charles R. Qi // 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 wi...
dbbf0e518ef4dff980359e27c991d3831b4a9bb7.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (M...
dbbf0e518ef4dff980359e27c991d3831b4a9bb7.cu
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...
6c020201bae801addc50177681d8f805fe2afc30.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #include <device_launch_parameters.h> #include <stdio.h> #include "common_hip.cuh" #include "math.h" //Const to set TILE_SIZE of the device const float TILE_SIZE = 1024; //Kernel method for vector ...
6c020201bae801addc50177681d8f805fe2afc30.cu
#include <cuda.h> #include <cuda_runtime_api.h> #include <device_launch_parameters.h> #include <stdio.h> #include "common.cuh" #include "math.h" //Const to set TILE_SIZE of the device const float TILE_SIZE = 1024; //Kernel method for vector addition __global__ void VectoraddKernel(float* Agpu, float* Bgpu, float* Cgp...
a64faa2fa65a9c349850c149915e3dd64f4303f3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void sobelEdgeDetectionSharedMem2(int *input, int *output, int width, int height, int thresh) { int regArr[4][4]; int i = (blockIdx.x * blockDim.x + threadIdx.x) * 2; int j = (blockIdx.y * blockDim...
a64faa2fa65a9c349850c149915e3dd64f4303f3.cu
#include "includes.h" __global__ void sobelEdgeDetectionSharedMem2(int *input, int *output, int width, int height, int thresh) { int regArr[4][4]; int i = (blockIdx.x * blockDim.x + threadIdx.x) * 2; int j = (blockIdx.y * blockDim.y + threadIdx.y) * 2; if ( i > 0 && j > 0 && i < width - 1 && j < height - 1) { regAr...
20a737912dbd3a85a18f472009b1fdce4ad25cb7.hip
// !!! This is a file automatically generated by hipify!!! #include "external/book-professional-cuda-c-programming/CodeSamples/common/common.h" #include <hip/hip_runtime.h> #include <iostream> #include <stdio.h> static void info() { // http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/docs/online/struc...
20a737912dbd3a85a18f472009b1fdce4ad25cb7.cu
#include "external/book-professional-cuda-c-programming/CodeSamples/common/common.h" #include <cuda_runtime.h> #include <iostream> #include <stdio.h> static void info() { // http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/docs/online/structcudaDeviceProp.html int nDevices; cudaGetDeviceCount(&nDev...
e5a197a50b50e315bfb86914610004d9b8850320.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* // Cython function from 'thinc' library class NumpyOps(Ops): def mean_pool(self, float[:, ::1] X, int[::1] lengths): cdef int B = lengths.shape[0] cdef int O = X.shape[1] cdef int T = X.shape[0] ...
e5a197a50b50e315bfb86914610004d9b8850320.cu
/* // Cython function from 'thinc' library class NumpyOps(Ops): def mean_pool(self, float[:, ::1] X, int[::1] lengths): cdef int B = lengths.shape[0] cdef int O = X.shape[1] cdef int T = X.shape[0] cdef Pool mem = Pool() means = <float*>mem.alloc(B * O, sizeof(float)) ...
678ef0b6c4ae7857c4c68126aaee4fa17a85e4a8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors */ #include <algorithm> #include "hipcub/hipcub.hpp" #include "k2/csrc/array_ops.h"...
678ef0b6c4ae7857c4c68126aaee4fa17a85e4a8.cu
/** * Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) * * See LICENSE for clarification regarding multiple authors */ #include <algorithm> #include "cub/cub.cuh" #include "k2/csrc/array_ops.h" #include "k2/csrc/macros.h" #include "k2/csrc/math.h" #include "k2/csrc/moderngpu_allocator.h...
6adb3a6bea5f672bce01cc9eb3aa13baabee2c60.hip
// !!! This is a file automatically generated by hipify!!! #include "cp.h" #include <hip/hip_runtime.h> #include <cmath> #include <stdio.h> #include <iostream> #define CHECK_CUDA_ERROR(call) do { \ hipError_t result_ = (call); \ if (result_ != hipSuccess) { \ fprintf(stderr, #call " failed: %s\n", \ hipGetErr...
6adb3a6bea5f672bce01cc9eb3aa13baabee2c60.cu
#include "cp.h" #include <cuda_runtime.h> #include <cmath> #include <stdio.h> #include <iostream> #define CHECK_CUDA_ERROR(call) do { \ cudaError_t result_ = (call); \ if (result_ != cudaSuccess) { \ fprintf(stderr, #call " failed: %s\n", \ cudaGetErrorString(result_)); \ exit(1); \ } \ } while(0) double...
d4d0056dd3b4555ee2ebc91eb008d6b6a7acfc45.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <chrono> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "bbcu/bbcu.h" #include "bbcu/bbcu_util.h" ////////////////////////////// // forward ////////////////////////////// __global__ void kernal_fp...
d4d0056dd3b4555ee2ebc91eb008d6b6a7acfc45.cu
#include <iostream> #include <chrono> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "bbcu/bbcu.h" #include "bbcu/bbcu_util.h" ////////////////////////////// // forward ////////////////////////////// __global__ void kernal_fp32_BinaryToReal_Forward( const float* x_buf, ...
b0e6f8bb876e1ffcb76ab81eb7081e03e4dbf125.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //n<=4096, m<=1024 __global__ void approxmatch(int b,int n,int m,const float * __restrict__ xyz1,const float * __restrict__ xyz2,float * __restrict__ match){ const int MaxN=4096,MaxM=1024; __shared__ float remainL[MaxN],rema...
b0e6f8bb876e1ffcb76ab81eb7081e03e4dbf125.cu
//n<=4096, m<=1024 __global__ void approxmatch(int b,int n,int m,const float * __restrict__ xyz1,const float * __restrict__ xyz2,float * __restrict__ match){ const int MaxN=4096,MaxM=1024; __shared__ float remainL[MaxN],remainR[MaxM],ratioR[MaxM],ratioL[MaxN]; __shared__ int listR[MaxM],lc; float multiL...
084bc418589a65c33f2f94bdf53a0e706af5ed8a.hip
// !!! This is a file automatically generated by hipify!!! //use shared memory #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <ctime> #include <vector> using namespace std; #define MESH_W 4 #de...
084bc418589a65c33f2f94bdf53a0e706af5ed8a.cu
//use shared memory #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <ctime> #include <vector> using namespace std; #define MESH_W 4 #define MESH_H 4 #define M (MESH_W+1)*(MESH_H+1) //size of matri...
4c9e975e2ae0399988d1585cd6e6a948a11816e4.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <string> #include <stdexcept> #include <random> #include <thrust/functional.h> // for binary_function #include <thrust/host_vector.h> // for binary_function #include <thrust/device_vector.h> // for binary_function typedef float (*...
4c9e975e2ae0399988d1585cd6e6a948a11816e4.cu
#include <iostream> #include <string> #include <stdexcept> #include <random> #include <thrust/functional.h> // for binary_function #include <thrust/host_vector.h> // for binary_function #include <thrust/device_vector.h> // for binary_function typedef float (*nvstdfunction)(float x,float y); int _M; #define MEMCPY_TO...
1d38375e3dbcd0acc5ac5b6fae20c71d77f25926.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------- // This source code is distributed under the terms of LICENSE.TXT // in th...
1d38375e3dbcd0acc5ac5b6fae20c71d77f25926.cu
// ---------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------- // This source code is distributed under the terms of LICENSE.TXT // in the root directory of this source distribution. // ----------...
f4c571e74751a60b5baee8c67a23110cf86e21df.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "dspk.h" using namespace std; namespace kso { namespace img { namespace dspk { void denoise(buf * data_buf, float tmin, float tmax, uint Niter){ buf * db = data_buf; uint ndim = db->ndim; uint nmet = db->nmet; ...
f4c571e74751a60b5baee8c67a23110cf86e21df.cu
#include "dspk.h" using namespace std; namespace kso { namespace img { namespace dspk { void denoise(buf * data_buf, float tmin, float tmax, uint Niter){ buf * db = data_buf; uint ndim = db->ndim; uint nmet = db->nmet; uint ksz1 = db->ksz; // dim3 ksz(25, 25, 25); dim3 ksz(ksz1,ksz1,ksz1); float * dt =...
ba921ddf30f896356395ddff99681b97ac95f3d1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include "ising_cuda.h" #define N 700 #define K 200 #define SPINS_PER_THREAD_DIM 3 #define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ )) static void HandleEr...
ba921ddf30f896356395ddff99681b97ac95f3d1.cu
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "ising_cuda.h" #define N 700 #define K 200 #define SPINS_PER_THREAD_DIM 3 #define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ )) static void HandleError( cudaError_t err, const char *file, int line ) { if (err != cudaSuccess) { ...
400a574c6a0a95bd02f877fbfc8b4aaf2aa3c957.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2012-2013 Indian Institute of Technology Kanpur. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. ...
400a574c6a0a95bd02f877fbfc8b4aaf2aa3c957.cu
/* Copyright 2012-2013 Indian Institute of Technology Kanpur. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
b7ec88843a020b97b5a3c6fe0e1a8de23b6565c5.hip
// !!! This is a file automatically generated by hipify!!! #include "page_rank.h" #include <stdlib.h> #include <iostream> #include <iomanip> #include <cusp/format.h> #include <cusp/exception.h> #include <thrust/sort.h> #include <thrust/count.h> #include <thrust/extrema.h> #include <thrust/functional.h> #include <ss...
b7ec88843a020b97b5a3c6fe0e1a8de23b6565c5.cu
#include "page_rank.h" #include <stdlib.h> #include <iostream> #include <iomanip> #include <cusp/format.h> #include <cusp/exception.h> #include <thrust/sort.h> #include <thrust/count.h> #include <thrust/extrema.h> #include <thrust/functional.h> #include <sstream> using namespace std; void read_matrix(CAST(COO) &...
df5ae2037e735fd22a3dfedb9d2231ab95a66b6a.hip
// !!! This is a file automatically generated by hipify!!! #include "ModerGpuWrapper.h" #include "moderngpu\include\util\mgpucontext.h" #include "moderngpu\include\moderngpu.cuh" #include <algorithm> #include <hip/device_functions.h> #include <helper_math.h> using namespace mgpu; namespace modergpu_wrapper { Context...
df5ae2037e735fd22a3dfedb9d2231ab95a66b6a.cu
#include "ModerGpuWrapper.h" #include "moderngpu\include\util\mgpucontext.h" #include "moderngpu\include\moderngpu.cuh" #include <algorithm> #include <device_functions.h> #include <helper_math.h> using namespace mgpu; namespace modergpu_wrapper { ContextPtr g_context; static void create_context() { if (g_contex...
11474c3ba9f0aca3620e31ebfc04d7525ba81d49.hip
// !!! This is a file automatically generated by hipify!!! // define DEFINE_GLOBAL to declare all constant variables here // --> must define it BEFORE including CUAPI.h since the latter will include "Macro.h" to set SET_GLOBAL() #define DEFINE_GLOBAL #include "CUAPI.h" #include "CUDA_ConstMemory.h" #undef DEFINE_GLOBAL...
11474c3ba9f0aca3620e31ebfc04d7525ba81d49.cu
// define DEFINE_GLOBAL to declare all constant variables here // --> must define it BEFORE including CUAPI.h since the latter will include "Macro.h" to set SET_GLOBAL() #define DEFINE_GLOBAL #include "CUAPI.h" #include "CUDA_ConstMemory.h" #undef DEFINE_GLOBAL #ifdef GPU extern real *d_EoS_Table[EOS_NTABLE_MAX]; #i...
1f34879d53b32ace0ded6bc3884098c083be0b16.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_reset_field_kernel1; int xdim0_reset_field_kernel1_h = -1; __constant__ int ydim0_reset_field_kernel1; int ydim0_reset_field_kernel1_h = -1; __constant__ int xdim1_reset_field...
1f34879d53b32ace0ded6bc3884098c083be0b16.cu
// // auto-generated by ops.py // __constant__ int xdim0_reset_field_kernel1; int xdim0_reset_field_kernel1_h = -1; __constant__ int ydim0_reset_field_kernel1; int ydim0_reset_field_kernel1_h = -1; __constant__ int xdim1_reset_field_kernel1; int xdim1_reset_field_kernel1_h = -1; __constant__ int ydim1_reset_field_kerne...
e16102ca3b68cbf4a999ff18ba374dd18576cffe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <cstdlib> #include <cstri...
e16102ca3b68cbf4a999ff18ba374dd18576cffe.cu
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <cstdlib> #include <cstring> #include "itf/engine/common.hpp" #include "itf/engine/util/math_functions.hpp" nam...
c92370f18b4be5bbfac1ed50c9fbbf4a27882d69.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <math.h> #include <hip/hip_runtime.h> #include "common.h" #define NUM_THREADS 256 extern double size; // // benchmarking program // __device__ void apply_force_gpu(particle_t &particle, par...
c92370f18b4be5bbfac1ed50c9fbbf4a27882d69.cu
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <math.h> #include <cuda.h> #include "common.h" #define NUM_THREADS 256 extern double size; // // benchmarking program // __device__ void apply_force_gpu(particle_t &particle, particle_t &neighbor) { } __global__ void compute_forces_gpu(particle_t...
1dba268fb86fc6eefe3f522bd53c5c1f8f8148ea.hip
// !!! This is a file automatically generated by hipify!!! /* * unit_tests.cu * * Created on: Jul 12, 2013 * Author: brandonkelly */ // standard includes #include <iostream> #include <time.h> // local includes #include "UnitTests.cuh" /* list of unit tests: * * - test rank-1 cholesky update * - make su...
1dba268fb86fc6eefe3f522bd53c5c1f8f8148ea.cu
/* * unit_tests.cu * * Created on: Jul 12, 2013 * Author: brandonkelly */ // standard includes #include <iostream> #include <time.h> // local includes #include "UnitTests.cuh" /* list of unit tests: * * - test rank-1 cholesky update * - make sure Chi::Propose follows a multivariate normal distribution ...
483d2e6cdd3a97d69544e8154c59871cf2ebbde8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef _MSC_VER #define _USE_MATH_DEFINES // For M_PI #endif // _MSC_VER #include <cmath> #include "caffe2/operators/roi_align_rotated_gradient_op.h" #include <stdio.h> #include <cfloat> #include "caffe2/core/context_gpu.h" #inclu...
483d2e6cdd3a97d69544e8154c59871cf2ebbde8.cu
#ifdef _MSC_VER #define _USE_MATH_DEFINES // For M_PI #endif // _MSC_VER #include <cmath> #include "caffe2/operators/roi_align_rotated_gradient_op.h" #include <stdio.h> #include <cfloat> #include "caffe2/core/context_gpu.h" #include "caffe2/utils/math.h" namespace caffe2 { namespace { template <typename T> inline ...
ac78e04206d7805eee1bb53fcdd057d6820f9a28.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __constant__ float *c_Kernel; __global__ void average(float *d_ip_v, float *d_ip_ir, int app_len) { const int X = blockIdx.x * blockDim.x + threadIdx.x; if (X < app_len) { d_ip_v[X] = (d_ip_v[X] + d_ip_ir[X...
ac78e04206d7805eee1bb53fcdd057d6820f9a28.cu
#include "includes.h" __constant__ float *c_Kernel; __global__ void average(float *d_ip_v, float *d_ip_ir, int app_len) { const int X = blockIdx.x * blockDim.x + threadIdx.x; if (X < app_len) { d_ip_v[X] = (d_ip_v[X] + d_ip_ir[X]) / 2; } }
eda964416c5b8df896083e3ba695469c5d60818a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (C) 2015 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include "cuda_utils.h" #include "cuda_dlib.h" // --------------------------------------------------...
eda964416c5b8df896083e3ba695469c5d60818a.cu
// Copyright (C) 2015 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include "cuda_utils.h" #include "cuda_dlib.h" // ------------------------------------------------------------------------------------ __global__ void cuda_add_arrays(const float* a, cons...
5da904d4834937f66395a7dc508c0349fb4cecd4.hip
// !!! This is a file automatically generated by hipify!!! # include "taylor_shift.cu" # include "taylor_shift_cpu.cu" # include "taylor_shift_conf.h" # include "taylor_shift_kernel.cu" int main(int argc, char* argv[]) { // temporal data float total_time; hipEvent_t start, stop; /* Initial and final time */ ...
5da904d4834937f66395a7dc508c0349fb4cecd4.cu
# include "taylor_shift.cu" # include "taylor_shift_cpu.cu" # include "taylor_shift_conf.h" # include "taylor_shift_kernel.cu" int main(int argc, char* argv[]) { // temporal data float total_time; cudaEvent_t start, stop; /* Initial and final time */ // TIME cudaEventCreate(&start); cudaEventCreate(&...
6e9807a11baa4c352824761433fadcd815b794cf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is...
6e9807a11baa4c352824761433fadcd815b794cf.cu
/* * ****************************************************************************** * * * * * * 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. * * * * See the NOT...
5a114877b2d732ce9d7758f9f56e5e0b678afde3.hip
// !!! This is a file automatically generated by hipify!!! /****************************************************** * * Program used to test texture object and reference API * * a : zhonghy * date: 2018-4-24 ********************************************************/ #include "hip/hip_runtime.h" #include "device_laun...
5a114877b2d732ce9d7758f9f56e5e0b678afde3.cu
/****************************************************** * * Program used to test texture object and reference API * * a : zhonghy * date: 2018-4-24 ********************************************************/ #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "helper_cuda.h" #include <iostream>...
c1f697033be735a66a6cc2dc44d294697498116d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #define FILENAME(line) \ FILENAME_FOR_EXCEPTIONS_CUDA("src/cuda-kernels/awkward_reduce_...
c1f697033be735a66a6cc2dc44d294697498116d.cu
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #define FILENAME(line) \ FILENAME_FOR_EXCEPTIONS_CUDA("src/cuda-kernels/awkward_reduce_count_64.cu", \ line) #include "standard_parallel_algori...
4623391d6e1a62e41a240877ea9d55976dfda69d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include "hip/hip_runtime.h" #include <device_launch_parameters.h> #include <stdlib.h> using namespace std; //variables globales #define num_filas_RGB 32 // num filas matriz RGB #define num_columnas_RGB 32 ...
4623391d6e1a62e41a240877ea9d55976dfda69d.cu
 #include <stdio.h> #include <iostream> #include "cuda_runtime.h" #include <device_launch_parameters.h> #include <stdlib.h> using namespace std; //variables globales #define num_filas_RGB 32 // num filas matriz RGB #define num_columnas_RGB 32 // num columnas matriz RGB #define width_RGB 32 ...
0b94bf941fe02f6de38420829b2e8cd421c331c0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define TORCH_ASSERT_NO_OPERATORS #define _USE_MATH_DEFINES #include <ATen/native/Activation.h> #include <cmath> #include <thrust/tuple.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/core/TensorBas...
0b94bf941fe02f6de38420829b2e8cd421c331c0.cu
#define TORCH_ASSERT_NO_OPERATORS #define _USE_MATH_DEFINES #include <ATen/native/Activation.h> #include <cmath> #include <thrust/tuple.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/core/TensorBase.h> #include <c10/core/Scalar.h> #include <c10/cuda/CUDAMathCompat.h> #include <ATen/cu...
3dbcf517a296364f4975f9e52794be6b240fe162.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <cmath> #include <stdio.h> #include <string.h> __device__ __constant__ float D_H[ 3*3 ]; __device__ float norm(float val, int length) { float mean = length/2; float std = length/2; return (...
3dbcf517a296364f4975f9e52794be6b240fe162.cu
#include <iostream> #include <cmath> #include <stdio.h> #include <string.h> __device__ __constant__ float D_H[ 3*3 ]; __device__ float norm(float val, int length) { float mean = length/2; float std = length/2; return (val-mean)/std; } __device__ float unorm(float val, int length) { float mean = lengt...
7b1bc1686d0f5c53d58a6fe1a8443aae47ba35e4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <stdlib.h> #include <cstring> #include <limits> // radi definiranja beskonanosti #include <ctime> // radi mjerenja vremena izvravanja #include <cmath> // radi "strop" funkcije using...
7b1bc1686d0f5c53d58a6fe1a8443aae47ba35e4.cu
#include <iostream> #include <fstream> #include <stdlib.h> #include <cstring> #include <limits> // radi definiranja beskonačnosti #include <ctime> // radi mjerenja vremena izvršavanja #include <cmath> // radi "strop" funkcije using namespace std; /* Definiramo beskonačnost kao najveći mogući integer broj. */ #defin...