hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
bbab5307064a9f9df5e0495a950ee996d2d229ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "THHTensorRandom.h"
#include "THHDeviceUtils.cuh"
#include "THHGeneral.h"
#include "THHTensorCopy.h"
#include "THHTensorMath.h"
#include "THHReduceApplyUtils.cuh"
#include "THHTensorRandom.cuh"
#include <thrust/functional.... | bbab5307064a9f9df5e0495a950ee996d2d229ba.cu | #include "THCTensorRandom.h"
#include "THCDeviceUtils.cuh"
#include "THCGeneral.h"
#include "THCTensorCopy.h"
#include "THCTensorMath.h"
#include "THCReduceApplyUtils.cuh"
#include "THCTensorRandom.cuh"
#include <thrust/functional.h>
#include <curand.h>
#include <curand_kernel.h>
#include <curand_mtgp32_host.h>
#inclu... |
localized_slot_sparse_embedding_hash.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
*
*... | localized_slot_sparse_embedding_hash.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 ... |
97d904c4f33aa65ef2b793f15b4c635826fe5223.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <mkl.h>
#include <math.h>
#include <omp.h>
#include <assert.h>
#include <iostream>
#include <hip/hip_runtime.h>
//#define VERBOSE
using std::cout;
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define nullptr NULL
#define safeCall... | 97d904c4f33aa65ef2b793f15b4c635826fe5223.cu | #include <stdio.h>
#include <mkl.h>
#include <math.h>
#include <omp.h>
#include <assert.h>
#include <iostream>
#include <cuda_runtime.h>
//#define VERBOSE
using std::cout;
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define nullptr NULL
#define safeCall(err) __safeCall(err, __FILE__, __LINE__)
inline void __safeC... |
824666a9e16062270e88b105d7b058ac134f3a2e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// y_load.cu
//
// Ghost loading based on threadIdx.y. Requires NX_TILE = NY_TILE.
//
__global__ void
grad_kernel_y_load(const real * __restrict f, real * __restrict u, const real xfactor, const real yfactor,
const real zfactor... | 824666a9e16062270e88b105d7b058ac134f3a2e.cu | // y_load.cu
//
// Ghost loading based on threadIdx.y. Requires NX_TILE = NY_TILE.
//
__global__ void
grad_kernel_y_load(const real * __restrict f, real * __restrict u, const real xfactor, const real yfactor,
const real zfactor)
{
__shared__ real fs[NY_TILE + 2 * NGHOST][NX_TILE + 2 * NGHOST];
const int ghostMul... |
684de1301655a6dfa365372f4fb02b0c5236adf5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ------------------------------------------------------------------
// GroupNorm op in Caffe2 for GPU
// Written by Kaiming He
// Improved by Xiaomeng Yang
// see https://arxiv.org/abs/1803.08494
// This is a stand-alone op: Y = g... | 684de1301655a6dfa365372f4fb02b0c5236adf5.cu | // ------------------------------------------------------------------
// GroupNorm op in Caffe2 for GPU
// Written by Kaiming He
// Improved by Xiaomeng Yang
// see https://arxiv.org/abs/1803.08494
// This is a stand-alone op: Y = gamma * (X - mu) / sig + beta
// --------------------------------------------------------... |
972911af9b23bc749f3e0030b2ab3660d74f3fd5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <cstdlib>
#include <cmath>
#include "kernels.h"
#define cudaCheckError() { \
hipError_t e=hipGetLastError(); ... | 972911af9b23bc749f3e0030b2ab3660d74f3fd5.cu | #include <iostream>
#include <cstdlib>
#include <cmath>
#include "kernels.h"
#define cudaCheckError() { \
cudaError_t e=cudaGetLastError(); \
if(e!=cudaSuccess) { ... |
batch_norm_add_relu.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THHNumerics.cuh>
#include "THH/THH.h"
#include "batch_norm_add_relu.h"
#include <hip/hip_runtime.h>
//FIXME move the common stuff to common h file
#define cudaCheckErrors(msg) \
do { ... | batch_norm_add_relu.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THCNumerics.cuh>
#include "THC/THC.h"
#include "batch_norm_add_relu.h"
#include <cuda.h>
//FIXME move the common stuff to common h file
#define cudaCheckErrors(msg) \
do { \
cudaError_t __err = cudaGetLastError(); \
if (__er... |
ff3eaf4202427dc6e7260315527686e532be8aba.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | ff3eaf4202427dc6e7260315527686e532be8aba.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* dis... |
c1f7a66b53f81a2c8703de74387ee578816d6626.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "anchor_target_kernel.h"
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDi... | c1f7a66b53f81a2c8703de74387ee578816d6626.cu | #ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "anchor_target_kernel.h"
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
i += blockDim.x * gridDim.x)
__device__ in... |
f0d95226826d7447caef39c83749508a051bece0.hip | // !!! This is a file automatically generated by hipify!!!
//nvcc -arch=sm_30 -lcufft fft_batched.cu
#include <hip/hip_runtime.h>
#include <hipfft.h>
#include <stdio.h>
#include <math.h>
#define DATASIZE 8
#define BATCH 3
#define GRID_DIMENSION 3
#define BLOCK_DIMENSION 3
/********************/
/* CUDA ERROR CH... | f0d95226826d7447caef39c83749508a051bece0.cu | //nvcc -arch=sm_30 -lcufft fft_batched.cu
#include <cuda.h>
#include <cufft.h>
#include <stdio.h>
#include <math.h>
#define DATASIZE 8
#define BATCH 3
#define GRID_DIMENSION 3
#define BLOCK_DIMENSION 3
/********************/
/* CUDA ERROR CHECK */
/********************/
#define gpuErrchk(ans) { gpuAssert((ans),... |
d429c5cfd198edff652491ac9f505e5b050c320e.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... | d429c5cfd198edff652491ac9f505e5b050c320e.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... |
49ad9075aed88603308bceeef4650ebb6b9b7a4c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "rd_kernel.h"
#include "uint_util.hcu"
#include <stdlib.h>
#include <stdio.h>
/*
* Utility function to initialize U and V
*/
__host__
void initializeConcentrations(unsigned int width, unsigned int height, float *U, floa... | 49ad9075aed88603308bceeef4650ebb6b9b7a4c.cu | #include "rd_kernel.h"
#include "uint_util.hcu"
#include <stdlib.h>
#include <stdio.h>
/*
* Utility function to initialize U and V
*/
__host__
void initializeConcentrations(unsigned int width, unsigned int height, float *U, float *V) {
float *_U = new float[width*height];
float *_V = new float[width*height];
... |
038e649e676539db24bfff7cf53fab91c809167c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <float.h>
#include <sys/time.h>
#define BLOCK_X 16
#define BLOCK_Y 16
//3D matrix consi... | 038e649e676539db24bfff7cf53fab91c809167c.cu | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <float.h>
#include <sys/time.h>
#define BLOCK_X 16
#define BLOCK_Y 16
//3D matrix consisting the picture and the frames
unsigned char * I;
//dimension X of the picture in pixe... |
8a418f97c5bec48ee129e4fe56ac5aebbe18f359.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* publis... | 8a418f97c5bec48ee129e4fe56ac5aebbe18f359.cu | /* ***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that... |
c5f6bc417d4af5e71cf8783f257f6e08e7a75fa6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "MedV4D/Imaging/cuda/detail/EdgeDetection.cuh"
template< typename RegionType >
void
Sobel3D( RegionType input, RegionType output, typename RegionType::ElementType threshold )
{
typedef typename RegionType::ElementType TE... | c5f6bc417d4af5e71cf8783f257f6e08e7a75fa6.cu | #include "MedV4D/Imaging/cuda/detail/EdgeDetection.cuh"
template< typename RegionType >
void
Sobel3D( RegionType input, RegionType output, typename RegionType::ElementType threshold )
{
typedef typename RegionType::ElementType TElement;
typedef Buffer3D< TElement > Buffer;
Buffer inBuffer = CudaBuffer3DFromImageR... |
7a20d4fc05275e7277e5ef3c51ae11e412e49718.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void normal_kernel(int seed, float *data, int n, float mean, float std) {
if (threadIdx.x != 0) return;
hiprandState_t state;
hiprand_init(seed, 0, 0, &state);
for (size_t i(0); i < n; ++i)
data[i] ... | 7a20d4fc05275e7277e5ef3c51ae11e412e49718.cu | #include "includes.h"
__global__ void normal_kernel(int seed, float *data, int n, float mean, float std) {
if (threadIdx.x != 0) return;
curandState state;
curand_init(seed, 0, 0, &state);
for (size_t i(0); i < n; ++i)
data[i] = curand_normal(&state) * std + mean;
} |
fabc82aab4675272467fc75df58d8d3b079672be.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "custom_cuda_layers.h"
#include "general_kernels.h"
namespace cg = cooperative_groups;
// Fused attention + softmax
template <int tbSize, int blockStride, int tbSeq>
__global__ void attn_softmax(float* vals,
... | fabc82aab4675272467fc75df58d8d3b079672be.cu | #include "custom_cuda_layers.h"
#include "general_kernels.h"
namespace cg = cooperative_groups;
// Fused attention + softmax
template <int tbSize, int blockStride, int tbSeq>
__global__ void attn_softmax(float* vals,
const float* attn_mask,
int heads,
... |
2d18fd6f8d775062d1320ff973ce69831d8cc986.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <book.h>
#include <cpu_anim.h>
#define DIM 1024
#define PI 3.1415926535897932f
#define MAX_TEMP 1.0f
#define MIN_TEMP 0.0001f
#define SPEED 0.25f
// these exist on the GPU side
texture<float> texConstSrc;
texture<float... | 2d18fd6f8d775062d1320ff973ce69831d8cc986.cu | #include <cuda.h>
#include <book.h>
#include <cpu_anim.h>
#define DIM 1024
#define PI 3.1415926535897932f
#define MAX_TEMP 1.0f
#define MIN_TEMP 0.0001f
#define SPEED 0.25f
// these exist on the GPU side
texture<float> texConstSrc;
texture<float> texIn;
texture<float> texOut;
// this kernel takes in a 2-d arr... |
9f4e8bc117460d1a726e657de804b7f777086e3c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 9f4e8bc117460d1a726e657de804b7f777086e3c.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
aa74b69fa4c04f63f48a80278bd878aea7bb7946.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void MatrixMul(float *darray_1, float *darray_2 , float *dres_arr, int n){
// cols and rows definition
int col = threadIdx.x + blockIdx.x * blockDim.x;
int row = threadIdx.y + blockIdx.y * blockDim.y... | aa74b69fa4c04f63f48a80278bd878aea7bb7946.cu | #include "includes.h"
__global__ void MatrixMul(float *darray_1, float *darray_2 , float *dres_arr, int n){
// cols and rows definition
int col = threadIdx.x + blockIdx.x * blockDim.x;
int row = threadIdx.y + blockIdx.y * blockDim.y;
// Mat mult operation
for(int i = 0; i<n; i++){
dres_arr[row*n+col]+= darray_1[row*n+i... |
8d1e60804b9f377a33930f4ed19ecf04753caf98.hip | // !!! This is a file automatically generated by hipify!!!
#include "finalProject.cuh"
// CUDA Runtime
#include <hip/hip_runtime.h>
// Utilities and system includes
#include <helper_cuda.h>
#include <helper_functions.h>
#include <algorithm>
#include <chrono>
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LIN... | 8d1e60804b9f377a33930f4ed19ecf04753caf98.cu | #include "finalProject.cuh"
// CUDA Runtime
#include <cuda_runtime.h>
// Utilities and system includes
#include <helper_cuda.h>
#include <helper_functions.h>
#include <algorithm>
#include <chrono>
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cudaError_t code, const char *fi... |
8c128c26226d39979e3136d37fed73fe9f76b92c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2020-2022, 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:
* ... | 8c128c26226d39979e3136d37fed73fe9f76b92c.cu | /*
* Copyright (c) 2020-2022, 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
*... |
d8fbe08672b5783c7ef2e53757b84e6721792f50.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<stdbool.h>
typedef unsigned long long int ull;
__device__ bool getval(int v, ull id, ull ie){
if (v<0) v=-v;
if (v<=30) return (id & (1llu<<v)) ? true : false;
return (ie & (1llu<<(v-31))) ? ... | d8fbe08672b5783c7ef2e53757b84e6721792f50.cu | #include<stdio.h>
#include<stdbool.h>
typedef unsigned long long int ull;
__device__ bool getval(int v, ull id, ull ie){
if (v<0) v=-v;
if (v<=30) return (id & (1llu<<v)) ? true : false;
return (ie & (1llu<<(v-31))) ? true : false;
}
__device__ bool test(int n, int* raw, ull id, ull ie){
bool ret = t... |
9ffc9bc7ebc5f006837a18e7cfb922d42fc881b6.hip | // !!! This is a file automatically generated by hipify!!!
//MIT License
//
//Copyright(c) 2020 Zheng Jiaqi @NUSComputing
//
//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... | 9ffc9bc7ebc5f006837a18e7cfb922d42fc881b6.cu | //MIT License
//
//Copyright(c) 2020 Zheng Jiaqi @NUSComputing
//
//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, copy, m... |
d6dfec405b3f11e5043e9319f6e93b841595c46d.hip | // !!! This is a file automatically generated by hipify!!!
//
// Created by fabian on 28.05.21.
//
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include <assert.h>
#include "main.cuh"
#include "helper.cuh"
#include "GPUStream.cuh"
#include "StreamFunctions.cuh"
#include "device_information.cuh"
#include "StreamFu... | d6dfec405b3f11e5043e9319f6e93b841595c46d.cu | //
// Created by fabian on 28.05.21.
//
#include <cuda_runtime.h>
#include <sys/time.h>
#include <assert.h>
#include "main.cuh"
#include "helper.cuh"
#include "GPUStream.cuh"
#include "StreamFunctions.cuh"
#include "device_information.cuh"
#include "StreamFunctionHelper.cuh"
#define MAX_STREAMS 10
// Internal functio... |
c9fac91a28a791b00e036521137ad2f7cb87e6cc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lic... | c9fac91a28a791b00e036521137ad2f7cb87e6cc.cu | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
0775ace83485be232869441dcaea1de3738210b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this soft... | 0775ace83485be232869441dcaea1de3738210b0.cu | /*
* Copyright 1993-2010 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... |
687c2952ac2f85236c8455cca2fded1aaa07e8b5.hip | // !!! This is a file automatically generated by hipify!!!
/*----------------------------------------------------------------------------------*
* Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, *
* Sergio Losilla, Elias Toivanen, Jonas Juselius *
* ... | 687c2952ac2f85236c8455cca2fded1aaa07e8b5.cu | /*----------------------------------------------------------------------------------*
* Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, *
* Sergio Losilla, Elias Toivanen, Jonas Juselius *
* ... |
0eefd5a954f24a5930d5daa5d7e3f0c2db2e01f9.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 "GPU_mt_info.cu"
#include<chrono>
#include<iostream>
using namesp... | 0eefd5a954f24a5930d5daa5d7e3f0c2db2e01f9.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 "GPU_mt_info.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,2... |
cd5a992e4b0dd586eafdbb1763b050e97034e04a.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#define THREADS_PER_BLOCK 512
// Global function means it will be executed on the device (GPU)
__global__ void add(int *in1, int *in2, int *out)
{
int index = th... | cd5a992e4b0dd586eafdbb1763b050e97034e04a.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_runtime.h>
#define THREADS_PER_BLOCK 512
// Global function means it will be executed on the device (GPU)
__global__ void add(int *in1, int *in2, int *out)
{
int index = threadIdx.x + blockIdx.x * blockDim.x;
out[index] = in1[index] + in2[index... |
b738df05f49a7d7b257f3f96c189ad2f964c1f11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
using namespace std;
const int tread_size=1024;
#define CSC(call) do { \
hipError_t e = call; \
if (e != hipSuccess) { \
fprintf(stderr, "CUDA Error in %s:%d: %s\n"\
... | b738df05f49a7d7b257f3f96c189ad2f964c1f11.cu | #include <stdio.h>
#include <stdlib.h>
using namespace std;
const int tread_size=1024;
#define CSC(call) do { \
cudaError_t e = call; \
if (e != cudaSuccess) { \
fprintf(stderr, "CUDA Error in %s:%d: %s\n"\
, __FILE__, __LINE__, cudaGetErrorString(e)); \
exit(0); \
... |
0e1f45815320b1ca02e6cd1c6aece33b9191c5e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include "timer.h"
#include "cuda_utils.h"
typedef float dtype;
#define N_ (8 * 1024 * 1024)
#define MAX_THREADS 256
#define MAX_BLOCKS 64
#define MIN(x,y) ((x < y) ? x : y)
/* return the... | 0e1f45815320b1ca02e6cd1c6aece33b9191c5e5.cu | #include <stdlib.h>
#include <stdio.h>
#include "timer.h"
#include "cuda_utils.h"
typedef float dtype;
#define N_ (8 * 1024 * 1024)
#define MAX_THREADS 256
#define MAX_BLOCKS 64
#define MIN(x,y) ((x < y) ? x : y)
/* return the next power of 2 number that is larger than x */
unsigned int nextPow2( unsigned int x )... |
4af8f81fbf50a6e1d0c058e251b262208ea8ae05.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
using namespace std;
__global__ void SumaColMatrizKernel(int f,int c,float*Md,float*Nd){
float Pvalue=0;
for(int k=threadIdx.x;k<f*c;k+=c){
Pvalue=Pvalue+Md[k];
}
Nd[threadIdx.x]=Pvalue;
}
void SumaColMat... | 4af8f81fbf50a6e1d0c058e251b262208ea8ae05.cu | #include <iostream>
using namespace std;
__global__ void SumaColMatrizKernel(int f,int c,float*Md,float*Nd){
float Pvalue=0;
for(int k=threadIdx.x;k<f*c;k+=c){
Pvalue=Pvalue+Md[k];
}
Nd[threadIdx.x]=Pvalue;
}
void SumaColMatrizHost(int f,int c,float*Mh){
float *P;
P=new float[c];
for (int j=0;j<c;j++){
P[j... |
e0c6a772d80019896a0f90dbeffe2e654a02852a.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <builtin_types.h>
//no need for extern c according to stackoverflow answer by nvidia employee
extern "C"
__global__ void vectorAdditionCUDA(const float* a, const float* b, float* c, int n)
{
... | e0c6a772d80019896a0f90dbeffe2e654a02852a.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include <builtin_types.h>
//no need for extern c according to stackoverflow answer by nvidia employee
extern "C"
__global__ void vectorAdditionCUDA(const float* a, const float* b, float* c, int n)
{
int ii = blockDim.x * blockIdx.x + threadIdx.x;
if (ii < n)
... |
002c770003c4822fc2c24cb5fbfc30d9c2785bd8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../SDDK/GPU/cuda_common.h"
__global__ void spline_inner_product_gpu_kernel_v3(int num_points__,
int const* idx_ri__,
do... | 002c770003c4822fc2c24cb5fbfc30d9c2785bd8.cu | #include "../SDDK/GPU/cuda_common.h"
__global__ void spline_inner_product_gpu_kernel_v3(int num_points__,
int const* idx_ri__,
double const* x__,
double const* dx__,
... |
f5b6590fc18a12fc63dc62147626df35a91a6c8f.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 "pointwise_add.cu"
#include<chrono>
#include<iostream>
using name... | f5b6590fc18a12fc63dc62147626df35a91a6c8f.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 "pointwise_add.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24... |
ae52b482233dd243bd93dca968d360366751d073.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <arbor/gpu/gpu_common.hpp>
#include <arbor/gpu/math_cu.hpp>
#include <arbor/gpu/reduce_by_key.hpp>
#include <arbor/mechanism_abi.h>
namespace arb {
namespace allen_catalogue {
#define PPACK_IFACE_BLOCK \
auto _pp_var_wid... | ae52b482233dd243bd93dca968d360366751d073.cu | #include <arbor/gpu/gpu_common.hpp>
#include <arbor/gpu/math_cu.hpp>
#include <arbor/gpu/reduce_by_key.hpp>
#include <arbor/mechanism_abi.h>
namespace arb {
namespace allen_catalogue {
#define PPACK_IFACE_BLOCK \
auto _pp_var_width __attribute__((unused)) = params_.width;\
auto _pp_var_n_detectors ... |
a3a94d7f123cdc5ba29f43af257f3b6cbed87455.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright 2017 the arraydiff authors
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
Un... | a3a94d7f123cdc5ba29f43af257f3b6cbed87455.cu | /*
Copyright 2017 the arraydiff authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
54ea1ac608a60981d7ab5fa448acc0e23157f78a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
@precisions mixed zc -> ds
@author Mark Gates
*/... | 54ea1ac608a60981d7ab5fa448acc0e23157f78a.cu | /*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
@precisions mixed zc -> ds
@author Mark Gates
*/
#include "magma_internal.h"
// mixed precision generation has issues with COMPLEX, so ... |
fc52ad9f1a0f42719d8f9a17e6033d96ded88a53.hip | // !!! This is a file automatically generated by hipify!!!
#include "../include/imageMatrix.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
//ImMatG function definition
ImMatG::ImMatG(){
rows = 0;
cols = 0;
}
ImMatG::ImMatG(size_t rows, size_t cols, double * data, bool onDev... | fc52ad9f1a0f42719d8f9a17e6033d96ded88a53.cu | #include "../include/imageMatrix.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
//ImMatG function definition
ImMatG::ImMatG(){
rows = 0;
cols = 0;
}
ImMatG::ImMatG(size_t rows, size_t cols, double * data, bool onDeviceMemory){
this->rows = rows;
this->cols = cols;
if (onDev... |
2a03ae6203c81abd3b5fbf96c2ad6c36b3b20666.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Device code
__global__ void VecAdd(float* A, float* B, float* C, int N)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
if (i < N)
C[i] = A[i] + B[i];
}
// Host code
int main()
{
int N = ...;
... | 2a03ae6203c81abd3b5fbf96c2ad6c36b3b20666.cu | // Device code
__global__ void VecAdd(float* A, float* B, float* C, int N)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
if (i < N)
C[i] = A[i] + B[i];
}
// Host code
int main()
{
int N = ...;
size_t size = N * sizeof(float);
// Allocate input vectors h_A and h_B in host mem... |
b8085a78023ffee6dd140c93505d316bebfeb889.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 "p2pPingPongLatencyTest.cu"
#include<chrono>
#include<iostream>
u... | b8085a78023ffee6dd140c93505d316bebfeb889.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 "p2pPingPongLatencyTest.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{1... |
6fa3b3b54e20a5f457b0a3d1aedb681e9f34fc85.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2019, 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... | 6fa3b3b54e20a5f457b0a3d1aedb681e9f34fc85.cu | /*
* Copyright (c) 2018-2019, 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 required ... |
c45711c41457143ef093b781bdc8f4caaf96a6d6.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include "datadef.h"
__global__ void absorb_kernel(unsigned N, unsigned* active, unsigned * rxn , unsigned* done){
//PLACEHOLDER FOR FISSIONS, NEED TO READ NU TABLES LATER
int tid = threadIdx.x+blockIdx.x*b... | c45711c41457143ef093b781bdc8f4caaf96a6d6.cu | #include <cuda.h>
#include <stdio.h>
#include "datadef.h"
__global__ void absorb_kernel(unsigned N, unsigned* active, unsigned * rxn , unsigned* done){
//PLACEHOLDER FOR FISSIONS, NEED TO READ NU TABLES LATER
int tid = threadIdx.x+blockIdx.x*blockDim.x;
if (tid >= N){return;} //return if out of bounds
... |
b0fd91a2ac2f231607f434026e6fe3be8803428f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Find BLANK and replace your own code.
* And submit report why do you replace the blank that way.
*/
#include<stdlib.h>
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
#define TILE_WIDTH 16 /* set TI... | b0fd91a2ac2f231607f434026e6fe3be8803428f.cu | /*
* Find BLANK and replace your own code.
* And submit report why do you replace the blank that way.
*/
#include<stdlib.h>
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
#define TILE_WIDTH 16 /* set TILE_WIDTH 16 for the evaluation! */
#define MAXPOOL_INPUT_FILENAME "input.txt"
#define A_... |
9ed83b7e597825d060a4456d60adc7fdc6c8bfb4.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <getopt.h>
#include <cstdio>
#define checkError(err) ... | 9ed83b7e597825d060a4456d60adc7fdc6c8bfb4.cu | #include <cuda.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <getopt.h>
#include <cstdio>
#define checkError(err) \
if ((err) != cudaSuccess) { ... |
3cdd13b06ed94a16c027008e3a3466cf383f78c9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void loop()
{
/*
*
*/
int i = blockIdx.x * blockDim.x + threadIdx.x;
printf("%d\n", i);
}
int main()
{
/*
*
*
* <<<5, 2>>>
* <<<10, 1>>>
*/
hipLaunchKernelGGL(( loop)... | 3cdd13b06ed94a16c027008e3a3466cf383f78c9.cu | #include <stdio.h>
__global__ void loop()
{
/*
* 以下の慣用表現では、各スレッドにグリッド全体で一意のインデックスを割り当てます。
*/
int i = blockIdx.x * blockDim.x + threadIdx.x;
printf("%d\n", i);
}
int main()
{
/*
* 演習の制約を満たしたうえで動作する追加の実行構成は次のとおりです。
*
* <<<5, 2>>>
* <<<10, 1>>>
*/
loop<<<2, 5>>>();
cudaDeviceSynchroniz... |
5cd10a605d299c2ec70a7526941f35b2690d2e66.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 "shared4R1W1G.cu"
#include<chrono>
#include<iostream>
using names... | 5cd10a605d299c2ec70a7526941f35b2690d2e66.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 "shared4R1W1G.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,... |
135e6048230f9dd9ada8efff607d4d472712b54b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms,... | 135e6048230f9dd9ada8efff607d4d472712b54b.cu | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
edd7bb68d5dc3eba9bb89d56aec531465bf91b59.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@precisions normal d -> s
*/
#include "common_magma.h... | edd7bb68d5dc3eba9bb89d56aec531465bf91b59.cu | /*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@precisions normal d -> s
*/
#include "common_magma.h"
#include "commonblas_d.h"
/*
* daxpy computes c += alpha*b, where b and c are 16-ele... |
205572ca765497d70a807fbb80008ca506c24fa3.hip | // !!! This is a file automatically generated by hipify!!!
//xfail:BOOGIE_ERROR
//--blockDim=8 --gridDim=1 --no-inline
// The statically given values for A are not preserved when we translate CUDA
// since the host is free to change the contents of A.
// cf. testsuite/OpenCL/globalarray/pass2
#include <call_kernel.h>... | 205572ca765497d70a807fbb80008ca506c24fa3.cu | //xfail:BOOGIE_ERROR
//--blockDim=8 --gridDim=1 --no-inline
// The statically given values for A are not preserved when we translate CUDA
// since the host is free to change the contents of A.
// cf. testsuite/OpenCL/globalarray/pass2
#include <call_kernel.h>
#include <stdio.h>
#include <assert.h>
#include <cuda.h>
#... |
f72cd2df6454d5db826eb563c44188e04cadb047.hip | // !!! This is a file automatically generated by hipify!!!
#include <cmath>
#include "SamplingPoint.cuh"
#include "CUDAHelper.cuh"
SamplingPoint::SamplingPoint(const SamplingPoint &other) : _x(other._x), _y(other._y), _i (other._i),
_s(other._s), _t(other._t), _fo(other._fo), _kernelSize(other._kernelSize), _kernel... | f72cd2df6454d5db826eb563c44188e04cadb047.cu | #include <cmath>
#include "SamplingPoint.cuh"
#include "CUDAHelper.cuh"
SamplingPoint::SamplingPoint(const SamplingPoint &other) : _x(other._x), _y(other._y), _i (other._i),
_s(other._s), _t(other._t), _fo(other._fo), _kernelSize(other._kernelSize), _kernel(nullptr), d_kernel(nullptr) {
if (other._kernel != nullpt... |
3a135182ae79615c82b9e43b64d2f038fd244236.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@precisions normal z -> s d c
@author Adrien Remy
@autho... | 3a135182ae79615c82b9e43b64d2f038fd244236.cu | /*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@precisions normal z -> s d c
@author Adrien Remy
@author Azzam Haidar
*/
#include "magma_internal.h"
#include "zgerbt.h"
#define block_height ... |
62f027a32795fa1dfa9bec4f0d64f079b5835096.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hiprand/hiprand_kernel.h>
#define CURAND_CALL(x) do { \
if((x)!=HIPRAND_STATUS_SUCCESS) { \
printf("Error at %s:%d\n",__FILE__,__LINE__); \
return EXIT_FAILURE;}} while(0)
int main(int argc, char *argv[]) {
int n ... | 62f027a32795fa1dfa9bec4f0d64f079b5835096.cu | #include <stdio.h>
#include <curand_kernel.h>
#define CURAND_CALL(x) do { \
if((x)!=CURAND_STATUS_SUCCESS) { \
printf("Error at %s:%d\n",__FILE__,__LINE__); \
return EXIT_FAILURE;}} while(0)
int main(int argc, char *argv[]) {
int n = 100;
int i;
curandGenerator_t gen;
float *devData, *... |
ebac250dd19d04af66f5e407ad6ea622092302f0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include"stdio.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include"math.h"
#include <ctype.h>
#include <assert.h>
/* Euclidean distance calculation */
__host__ __device__ long distD(int i,int j,float *x,float*y)
{... | ebac250dd19d04af66f5e407ad6ea622092302f0.cu | #include"stdio.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include"math.h"
#include <ctype.h>
#include <assert.h>
/* Euclidean distance calculation */
__host__ __device__ long distD(int i,int j,float *x,float*y)
{
float dx=x[i]-x[j];
float dy=y[i]-y[j];
return(sqrtf( (dx*dx) + (dy*dy) ));
}
//all... |
93078f41756c9b7e8f6ba0e52759c8813b0ac4cc.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
__global__ void addVectors(int N, float *a, float *b, float *c) {
int n = threadIdx.x + blockIdx.x*blockDim.x;
if(n<N) {
c[n] = a[n] + b[n];
}
}
int main(int argc, char **argv) {
... | 93078f41756c9b7e8f6ba0e52759c8813b0ac4cc.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
__global__ void addVectors(int N, float *a, float *b, float *c) {
int n = threadIdx.x + blockIdx.x*blockDim.x;
if(n<N) {
c[n] = a[n] + b[n];
}
}
int main(int argc, char **argv) {
int N = 100;
//Host memory allocation
float *h_a = (float*) malloc... |
8a056a860406d5a0e20a5d93c13593df1f2bec35.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <pbrt/pbrt.h>
#include <pbrt/gpu/accel.h>
#inc... | 8a056a860406d5a0e20a5d93c13593df1f2bec35.cu | // pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <pbrt/pbrt.h>
#include <pbrt/gpu/accel.h>
#include <pbrt/gpu/optix.h>
#include <pbrt/interaction.h>
#include <pbrt/materials.h>
#inclu... |
f9cb982146b968b7fa5797d1bb199f7c7c67cd05.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#include "cudakernel/common/common.h"
#include "cudakernel/gemm/gemm.h"
#include "cudakernel/nn/lstm.h"
#include <stdio.h>
__device__ float sigmoidf(float a)
{
return expf(a) / (1 + expf(a));
}
//(seq... | f9cb982146b968b7fa5797d1bb199f7c7c67cd05.cu | #include <cuda.h>
#include <cuda_fp16.h>
#include "cudakernel/common/common.h"
#include "cudakernel/gemm/gemm.h"
#include "cudakernel/nn/lstm.h"
#include <stdio.h>
__device__ float sigmoidf(float a)
{
return expf(a) / (1 + expf(a));
}
//(seq, batch, dir, 4*hidden)
//(dir, batch, 4*hidden)
// P: (dir, 3*hidden)
/... |
1b610f33fabde27188eeaddc0157346e9cb191e2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Created by Huy Vo on 11/21/18.
//
#include "fspmat_hyb_kernels.h"
namespace cuFSP{
__global__
void fspmat_hyb_fill_data(int n_species, int n_reactions, int n_states, int *fsp_bounds, int *states, cuFSP::CSRMatInt stoi... | 1b610f33fabde27188eeaddc0157346e9cb191e2.cu | //
// Created by Huy Vo on 11/21/18.
//
#include "fspmat_hyb_kernels.h"
namespace cuFSP{
__global__
void fspmat_hyb_fill_data(int n_species, int n_reactions, int n_states, int *fsp_bounds, int *states, cuFSP::CSRMatInt stoich,
cuFSP::PropFun propensity,
... |
c5edb2f0dce373d39ca3c85374eaa4e2eecfd8af.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>
#include <string>
#define GPUJOULE_DIR ""
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 4096
int num_blocks;
int num_thre... | c5edb2f0dce373d39ca3c85374eaa4e2eecfd8af.cu | #include <stdio.h>
#include <iostream>
#include <cuda_profiler_api.h>
//#include <cutil.h>
#include <cuda_runtime.h>
#include <string>
#define GPUJOULE_DIR ""
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 4096
int num_blocks;
int num_threads_per_block;
int num_iterations;
int divergence;
float* h_A;
... |
f91b7b835104e5b4d43f0b6e9935227550e0c754.hip | // !!! This is a file automatically generated by hipify!!!
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// I... | f91b7b835104e5b4d43f0b6e9935227550e0c754.cu | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
3694adb5407955f3f272d45385da366d56f575d7.hip | // !!! This is a file automatically generated by hipify!!!
#include "KNNBinDataV1.cuh"
#include "CUDAGlobals.cuh"
//#include "DebugUtils.h"
using namespace OpenSteer;
extern "C"
{
// Bind the textures to the input hipArray.
__host__ void KNNBinningV1BindTexture( hipArray * pCudaArray );
// Unbind the textures.
... | 3694adb5407955f3f272d45385da366d56f575d7.cu | #include "KNNBinDataV1.cuh"
#include "CUDAGlobals.cuh"
//#include "DebugUtils.h"
using namespace OpenSteer;
extern "C"
{
// Bind the textures to the input cudaArray.
__host__ void KNNBinningV1BindTexture( cudaArray * pCudaArray );
// Unbind the textures.
__host__ void KNNBinningV1UnbindTexture( void );
}
KNNBi... |
8aa6050ea40eb9afc70645278f2dc147b5c5279e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/activation/repmat_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
static __global__ void repmat_kernel(int count, int channels,int spatial_dim, const float *in, floa... | 8aa6050ea40eb9afc70645278f2dc147b5c5279e.cu |
#include <vector>
#include "caffe/layers/activation/repmat_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
static __global__ void repmat_kernel(int count, int channels,int spatial_dim, const float *in, float *out)
{
CUDA_KERNEL_LOOP(i, count)
{
int n = i / spatial_dim / channels;
int c ... |
e3a8a9f32ead4d6c0a54817ceac4c6795a68e64e.hip | // !!! This is a file automatically generated by hipify!!!
#include "CrystalBallThrustFunctor.hh"
__device__ fptype device_CrystalBall (fptype* evt, fptype* p, unsigned int* indices) {
// Left-hand tail if alpha is less than 0,
// right-hand tail if greater, pure Gaussian if 0.
//return 1;
fptype x ... | e3a8a9f32ead4d6c0a54817ceac4c6795a68e64e.cu | #include "CrystalBallThrustFunctor.hh"
__device__ fptype device_CrystalBall (fptype* evt, fptype* p, unsigned int* indices) {
// Left-hand tail if alpha is less than 0,
// right-hand tail if greater, pure Gaussian if 0.
//return 1;
fptype x = evt[indices[2 + indices[0]]];
fptype mean = p[indice... |
92a879266909fd45d968b5bf7666f73398f79e2c.hip | // !!! This is a file automatically generated by hipify!!!
#include "sample-common.h"
#include <stdio.h>
#include <sys/time.h>
double cpuSecond(){
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
double sec = ts.tv_sec;
double usec = (double)ts.tv_nsec / (double)(1000 * 1000 * 1000);
// p... | 92a879266909fd45d968b5bf7666f73398f79e2c.cu | #include "sample-common.h"
#include <stdio.h>
#include <sys/time.h>
double cpuSecond(){
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
double sec = ts.tv_sec;
double usec = (double)ts.tv_nsec / (double)(1000 * 1000 * 1000);
// printf("sec = %f\n", sec);
// printf("usec = %f\n", u... |
502aec0f94a126d4d0e341ad39f834649fc88ae0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void MaskByNaN( float* inputImage, float* mask, float* outputImage, int count ) {
int id = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x;
if (id < count)
{
if (mask[id] == 0.... | 502aec0f94a126d4d0e341ad39f834649fc88ae0.cu | #include "includes.h"
__global__ void MaskByNaN( float* inputImage, float* mask, float* outputImage, int count ) {
int id = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x;
if (id < count)
{
if (mask[id] == 0.0f)
{
outputImage[id] = NAN;
}
else {
outputImage[id] = inputImage[id];
}
}
} |
b85d2ab4c9b14dd9d180f990869abbc9f839108e.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include"pathalg.h"
static const int WORK_SIZE =258;
void parallelor::copydata(int s,vector<edge>&edges,int nodenum){
};
void parallelor::dellocate(){
};
void parallelor::allocate(int maxn,in... | b85d2ab4c9b14dd9d180f990869abbc9f839108e.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include"pathalg.h"
static const int WORK_SIZE =258;
void parallelor::copydata(int s,vector<edge>&edges,int nodenum){
};
void parallelor::dellocate(){
};
void parallelor::allocate(int maxn,int maxedge){
}
void parallelor::topsort()
{
cout<<" in top sort "<<end... |
9ec529171bd5e2ec52de42c881f56d4ea6e764ea.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 "reg_GetConjugateGradient2_kernel.cu"
#include<chrono>
#include<i... | 9ec529171bd5e2ec52de42c881f56d4ea6e764ea.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 "reg_GetConjugateGradient2_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] =... |
6e7a130fa38a622af7b6ba61e65cf7706435e27c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@generated from zlarf.cu normal z -> d, Sat Nov 15 19:5... | 6e7a130fa38a622af7b6ba61e65cf7706435e27c.cu | /*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@generated from zlarf.cu normal z -> d, Sat Nov 15 19:53:59 2014
@author Azzam Haidar
*/
#include "common_magma.h"
#include "magma_temp... |
c4fab504c2fd408e5048a1136d5366c695b41621.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* test_search.cpp
*
* Created on: Oct 19, 2011
* Author: mac
*/
#include <iostream>
#include "universal_header.h"
using namespace std;
#include "hash_test.cu"
int test_cuda(void) {
int ref_num = loadRef("toy_ref_0"... | c4fab504c2fd408e5048a1136d5366c695b41621.cu | /*
* test_search.cpp
*
* Created on: Oct 19, 2011
* Author: mac
*/
#include <iostream>
#include "universal_header.h"
using namespace std;
#include "hash_test.cu"
int test_cuda(void) {
int ref_num = loadRef("toy_ref_0");
long long coord_num = loadHash("toy_hash_0");
hash_test(coord_num);
ref_test(ref_... |
45ad17b184abc0d61183a9048c911a395b3a4f35.hip | // !!! This is a file automatically generated by hipify!!!
static char *Ptxdata =
" .version 1.4\n"
" .target sm_10, map_f64_to_f32\n"
" // compiled with /usr/local/cuda4.1/cuda/open64/lib//be\n"
" // nvopencc 4.1 built on 2012-01-12\n"
"\n"
" //-------------------------------------------------... | 45ad17b184abc0d61183a9048c911a395b3a4f35.cu | static char *Ptxdata =
" .version 1.4\n"
" .target sm_10, map_f64_to_f32\n"
" // compiled with /usr/local/cuda4.1/cuda/open64/lib//be\n"
" // nvopencc 4.1 built on 2012-01-12\n"
"\n"
" //-----------------------------------------------------------\n"
" // Compiling /tmp/tmpxft_000072dc_00000... |
e27d07bf4b976eb45f43cf8dc6ab5f28817ed199.hip | // !!! This is a file automatically generated by hipify!!!
#include <hipcub/hipcub.hpp>
int main() {
hipcub::CachingDeviceAllocator allocator;
void *d;
allocator.DeviceAllocate(&d, 1024);
allocator.DeviceFree(d);
}
| e27d07bf4b976eb45f43cf8dc6ab5f28817ed199.cu | #include <cub/cub.cuh>
int main() {
cub::CachingDeviceAllocator allocator;
void *d;
allocator.DeviceAllocate(&d, 1024);
allocator.DeviceFree(d);
}
|
43654a60cddb86925036c591a4f4125819b284fc.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2013 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, ... | 43654a60cddb86925036c591a4f4125819b284fc.cu | /*
* Copyright 1993-2013 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... |
3bdedf6c38c4c8c6e7b56756f04e2282da5155fb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//#include "histogram_atomics.cuh"
#include <stdio.h>
#include <float.h>
//#include "hip/device_functions.h"
#define %(c_precision_def)s
#define fType %(c_ftype)s
#define iType %(c_itype)s
#define uiType %(c_uitype)s
#define chang... | 3bdedf6c38c4c8c6e7b56756f04e2282da5155fb.cu |
//#include "histogram_atomics.cuh"
#include <stdio.h>
#include <float.h>
//#include "device_functions.h"
#define %(c_precision_def)s
#define fType %(c_ftype)s
#define iType %(c_itype)s
#define uiType %(c_uitype)s
#define changeType %(c_changetype)s
// See ieee floating point specification
#define CUDART_INF_F __ull_a... |
f9920ad043b07950c6dd936d6fa58a248b27cfeb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | f9920ad043b07950c6dd936d6fa58a248b27cfeb.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
8d0a1d5a56e902836a08a4a3c40b6d536e1768d0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "struct.h"
#include "settings.h"
#include "jobcore.h"
#include <stdio.h>
// maybe it should be dynamic...
__constant__ Ampl_mod_coeff amod_d[MAX_DETECTORS];
void copy_amod_coeff(int nifo) {
int i;
Ampl_mod_coeff amod... | 8d0a1d5a56e902836a08a4a3c40b6d536e1768d0.cu | #include "struct.h"
#include "settings.h"
#include "jobcore.h"
#include <stdio.h>
// maybe it should be dynamic...
__constant__ Ampl_mod_coeff amod_d[MAX_DETECTORS];
void copy_amod_coeff(int nifo) {
int i;
Ampl_mod_coeff amod_coeff_tmp[nifo];
for(i=0; i<nifo; ++i){
amod_coeff_tmp[i] = ifo[i].amod;
}
cu... |
a0ccd6289e87cef54749abd42f8263f50f0926f9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef _TIMER_
#include "hip/hip_runtime_api.h"
#endif
#include "stdio.h"
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define min(a,b) FORMA_MIN(... | a0ccd6289e87cef54749abd42f8263f50f0926f9.cu | #include "cuda.h"
#ifdef _TIMER_
#include "cuda_profiler_api.h"
#endif
#include "stdio.h"
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define min(a,b) FORMA_MIN(a,b)
#define FORMA_CEIL(a,b) ( (a) % (b) == 0 ? (a) / (b) : ((a) / (b)) ... |
943b03a210775fb3c21083990451ea8213df1736.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/detail/KernelUtils.h>
#include <c10/util/Exception.h>
namespace at {
namespace native {
us... | 943b03a210775fb3c21083990451ea8213df1736.cu | #include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <c10/util/Exception.h>
namespace at {
namespace native {
using namespace at::cuda::detail;
template <typename T>
__host__ __device__ __forceinl... |
736efcbd95b8f0c7d61ff97119404ce4669f04d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
__global__ void
jacobikernel( float* a, float* newa, float* lchange, int n, int m, float w0, float w1, float w2, int sz )
{
int ti = threadIdx.x;
... | 736efcbd95b8f0c7d61ff97119404ce4669f04d6.cu | #include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
__global__ void
jacobikernel( float* a, float* newa, float* lchange, int n, int m, float w0, float w1, float w2, int sz )
{
int ti = threadIdx.x;
int tj = threadIdx.y;
int i = blockIdx.x * blockDim.x + ti + 1;
int j = block... |
497e22cd79712fc9593135dcc7e4e6e3608d69a9.hip | // !!! This is a file automatically generated by hipify!!!
#include "kernel.h"
#include "kernels.h"
#include "hip/hip_runtime.h"
#include "corecrt_math.h"
#include "utils.h"
// __syncthreads()
#ifndef __HIPCC__
#define __HIPCC__
#endif // !__HIPCC__
#include "device_launch_parameters.h"
#include "hip/device_functions.... | 497e22cd79712fc9593135dcc7e4e6e3608d69a9.cu | #include "kernel.h"
#include "kernels.h"
#include "cuda_runtime.h"
#include "corecrt_math.h"
#include "utils.h"
// 为了让__syncthreads()通过语法检查
#ifndef __CUDACC__
#define __CUDACC__
#endif // !__CUDACC__
#include "device_launch_parameters.h"
#include "device_functions.h"
#include <cstdio>
namespace cudaKernel{
__global_... |
849cb0ece0c63ce08fd10299318df65883903332.hip | // !!! This is a file automatically generated by hipify!!!
//##############################################################################
//# #
//# Virus Model #
//# ... | 849cb0ece0c63ce08fd10299318df65883903332.cu | //##############################################################################
//# #
//# Virus Model #
//# ... |
4086edae5b93633316ef4302ad37e885f8d5b41b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Blur filter. Device code. */
#ifndef _BLUR_FILTER_KERNEL_H_
#define _BLUR_FILTER_KERNEL_H_
#include "blur_filter.h"
__global__ void
blur_filter_kernel (const float *in, float *out, int size)
{
/* Obtain thread location wi... | 4086edae5b93633316ef4302ad37e885f8d5b41b.cu | /* Blur filter. Device code. */
#ifndef _BLUR_FILTER_KERNEL_H_
#define _BLUR_FILTER_KERNEL_H_
#include "blur_filter.h"
__global__ void
blur_filter_kernel (const float *in, float *out, int size)
{
/* Obtain thread location within the block */
int tx, ty;
tx = threadIdx.x;
ty = threadIdx.y;
int b... |
4221b64246b92457e562e3d13e8ff71973eb2c9c.hip | // !!! This is a file automatically generated by hipify!!!
#pragma comment(lib, "cudart.lib")
#pragma comment(lib, "hiprand.lib")
#include "../include/global_funcs.h"
#include "../include/sci_const.h"
#include "../include/device_compute_funcs.cuh"
#include "../include/common.hpp"
#include "../include/PrintStruct.h"
#i... | 4221b64246b92457e562e3d13e8ff71973eb2c9c.cu | #pragma comment(lib, "cudart.lib")
#pragma comment(lib, "curand.lib")
#include "../include/global_funcs.h"
#include "../include/sci_const.h"
#include "../include/device_compute_funcs.cuh"
#include "../include/common.hpp"
#include "../include/PrintStruct.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#inc... |
baf6c3b65e107a7649f5720e5f13bd225d1d8abc.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,... | baf6c3b65e107a7649f5720e5f13bd225d1d8abc.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... |
58bc8c6a694e2d596b5d77cac453f7c39d721ebf.hip | // !!! This is a file automatically generated by hipify!!!
/*
* gpu_tol_4learn is a program that will perform localization tolerance
* to molecules in parallel
*
* This function will be called by matlab as
* [N, Nc, O, Oc, Sx, Sxc, Sy, Syc, X, Xc, Y, Yc, llv, Fn, lp] = gpu_tol(N, Nc, O, Oc, Sx, Sxc, Sy, Syc, X, X... | 58bc8c6a694e2d596b5d77cac453f7c39d721ebf.cu | /*
* gpu_tol_4learn is a program that will perform localization tolerance
* to molecules in parallel
*
* This function will be called by matlab as
* [N, Nc, O, Oc, Sx, Sxc, Sy, Syc, X, Xc, Y, Yc, llv, Fn, lp] = gpu_tol(N, Nc, O, Oc, Sx, Sxc, Sy, Syc, X, Xc, Y, Yc, llv, Fn, lp, Nl, Nh, Ncl, Nch, Ol, Oh, Xcl, Xch, ... |
51760e61319797962ebc400bc37be1a942ea0d82.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 25-Oct-2011 14:59:20
//
// user function
__device__ ... | 51760e61319797962ebc400bc37be1a942ea0d82.cu | //
// auto-generated by op2.m on 25-Oct-2011 14:59:20
//
// user function
__device__
#include "res_calc.h" ... |
3a0efdc4e2c4585c806bf7e08134093a5ae4cced.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <zlib.h>
#include <png.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <memory>
#include <hip/hip_vector_types.h>
#define MASK_N 2
#define MASK_X 5
#define MASK_Y 5
#d... | 3a0efdc4e2c4585c806bf7e08134093a5ae4cced.cu |
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <zlib.h>
#include <png.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <memory>
#include <vector_types.h>
#define MASK_N 2
#define MASK_X 5
#define MASK_Y 5
#define SCALE 8
#define TH_DIM 32
const dim3 thread_dim(TH_DIM, TH_DIM);
const int... |
9e9059d2528e0bce07b90ce596ee633b0e749472.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "BvhHash.cuh"
namespace bvhhash {
void computePrimitiveHash(KeyValuePair * dst, Aabb * leafBoxes, uint numLeaves, uint buffSize,
Aabb * bigBox)
{
dim3 block(512, 1, 1);
unsigned nblk = iDivUp(buffSize, 512);
... | 9e9059d2528e0bce07b90ce596ee633b0e749472.cu | #include "BvhHash.cuh"
namespace bvhhash {
void computePrimitiveHash(KeyValuePair * dst, Aabb * leafBoxes, uint numLeaves, uint buffSize,
Aabb * bigBox)
{
dim3 block(512, 1, 1);
unsigned nblk = iDivUp(buffSize, 512);
dim3 grid(nblk, 1, 1);
calculateLeafHash_kernel<<< grid, block >>>(dst, leafBo... |
bc7d11e6af47324cc4922fe9dbd653ce39fcc1d3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/pad_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void PadImageConstNCHW(
const int nthreads, const T* const bottom_... | bc7d11e6af47324cc4922fe9dbd653ce39fcc1d3.cu | #include <algorithm>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/pad_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void PadImageConstNCHW(
const int nthreads, const T* const bottom_data, const int num,
const int channels, const int height, const int width,
cons... |
9156e9f808c598b210a174d09458e9e174d32a44.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ########################### CPU JULIA FXN ###############################
// struct complex
// {
// float r ;
// float i ;
// } ;
// float magnitude (struct complex a)
// {
// return ((a.r*a.r) + (a.i*a.i)) ;
// }
// vo... | 9156e9f808c598b210a174d09458e9e174d32a44.cu |
// ########################### CPU JULIA FXN ###############################
// struct complex
// {
// float r ;
// float i ;
// } ;
// float magnitude (struct complex a)
// {
// return ((a.r*a.r) + (a.i*a.i)) ;
// }
// void add(struct complex a , struct complex b)
// {
// res->r = a.r + b.r ;
// res->i = ... |
fea3b112c59e40dddec27b7e22e651aca6b6fc8f.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 <vector>
#include "k2/csrc/array.h"
#include "k2/c... | fea3b112c59e40dddec27b7e22e651aca6b6fc8f.cu | /**
* Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu)
*
* See LICENSE for clarification regarding multiple authors
*/
#include <algorithm>
#include <vector>
#include "k2/csrc/array.h"
#include "k2/csrc/array_ops.h"
#include "k2/csrc/macros.h"
namespace k2 {
// See documentation in he... |
7948983d280314bd85e94cc1086983957475717b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Vector-Matrix multiplication: Y = A * X.
* Device code.
*/
#ifndef _MATRIXMUL_KERNEL_H_
#define _MATRIXMUL_KERNEL_H_
#include "vec_mat_mult.h"
__global__ void vec_mat_kernel_naive(float *Ad, float *Xd, float *Yd)
{
//Thread... | 7948983d280314bd85e94cc1086983957475717b.cu | /* Vector-Matrix multiplication: Y = A * X.
* Device code.
*/
#ifndef _MATRIXMUL_KERNEL_H_
#define _MATRIXMUL_KERNEL_H_
#include "vec_mat_mult.h"
__global__ void vec_mat_kernel_naive(float *Ad, float *Xd, float *Yd)
{
//Thread Index
int threadX = threadIdx.x;
//Block Index
int blockX = blockIdx.x;
//Absol... |
8d0c2d063d1da3a6ae868b9780e060c15f83c1ee.hip | // !!! This is a file automatically generated by hipify!!!
// Written by Vasily Volkov.
// Copyright (c) 2008, The Regents of the University of California.
// All rights reserved.
#include <time.h>
#include "sgemmN.cuh"
#include "hip/hip_runtime.h"
#define BLOCK_SIZE 32
__device__ void saxpy( float a, float *b, fl... | 8d0c2d063d1da3a6ae868b9780e060c15f83c1ee.cu | // Written by Vasily Volkov.
// Copyright (c) 2008, The Regents of the University of California.
// All rights reserved.
#include <time.h>
#include "sgemmN.cuh"
#include "cuda_runtime.h"
#define BLOCK_SIZE 32
__device__ void saxpy( float a, float *b, float *c )
{
c[0] += a*b[0];
c[1] += a*b[1];
c[2] +=... |
e9a68d1f4900e1beb4dfef6476e4c7a9804750ac.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
DataStructure.cu
*
*/
#include "../include/DataStructure.cuh"
__global__ void setupMonteCarloMPCVectors(MonteCarloMPC *Out)
{
unsigned int id = threadIdx.x + blockDim.x * blockIdx.x;
Out[id].L = 0.0f;
Out[id]... | e9a68d1f4900e1beb4dfef6476e4c7a9804750ac.cu | /*
DataStructure.cu
*構造体の初期化
*/
#include "../include/DataStructure.cuh"
__global__ void setupMonteCarloMPCVectors(MonteCarloMPC *Out)
{
unsigned int id = threadIdx.x + blockDim.x * blockIdx.x;
Out[id].L = 0.0f;
Out[id].W = 0.0f;
for(int i = 0; i < HORIZON; i++){
for(int k = 0; k < DIM_O... |
95cd65764f0eb7510a975c154258c0167edb9c32.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuda_pack_density.hpp"
#include "cuda_device_properties.hpp"
namespace GauXC {
namespace integrator {
namespace cuda {
using namespace GauXC::cuda;
template <typename T>
__global__ void submat_set_combined_ke... | 95cd65764f0eb7510a975c154258c0167edb9c32.cu | #include "cuda_pack_density.hpp"
#include "cuda_device_properties.hpp"
namespace GauXC {
namespace integrator {
namespace cuda {
using namespace GauXC::cuda;
template <typename T>
__global__ void submat_set_combined_kernel( size_t ntasks,
XCTaskDevice<... |
d448c5b13e0bd69cc9c6d6282dd379bec60e5edc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<iostream>
#include<stdio.h>
#include<malloc.h>
#include<opencv2/opencv.hpp>
#include <time.h>
using namespace std;
using namespace cv;
#define RED 2
#define GREEN 1
#define BLUE 0
#define TILE_SIZE 32
#define MAX_MASK_WIDT... | d448c5b13e0bd69cc9c6d6282dd379bec60e5edc.cu | #include<iostream>
#include<stdio.h>
#include<malloc.h>
#include<opencv2/opencv.hpp>
#include <time.h>
using namespace std;
using namespace cv;
#define RED 2
#define GREEN 1
#define BLUE 0
#define TILE_SIZE 32
#define MAX_MASK_WIDTH 9
#define MASK_WIDTH 3
__constant__ char M[MASK_WIDTH*MASK_WIDTH];
__device__
unsign... |
dc5a40719cf78d81254ffa5311bbcbf433b263cd.hip | // !!! This is a file automatically generated by hipify!!!
#if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/in... | dc5a40719cf78d81254ffa5311bbcbf433b263cd.cu | #if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl"
usi... |
0e509fb201cbe709468f8fd78ac001921558c320.hip | // !!! This is a file automatically generated by hipify!!!
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wi... | 0e509fb201cbe709468f8fd78ac001921558c320.cu | /******************************************************************************
* Copyright 2018 The Apollo 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
... |
ed43e81e9e845d3a7f32a0306c23db2b613a2292.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_yvel_plus_4_front;
int xdim0_update_halo_kernel2_yvel_plus_4_front_h = -1;
__constant__ int ydim0_update_halo_kernel2_yvel_plus_4_front;
int ydim0_update_h... | ed43e81e9e845d3a7f32a0306c23db2b613a2292.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_yvel_plus_4_front;
int xdim0_update_halo_kernel2_yvel_plus_4_front_h = -1;
__constant__ int ydim0_update_halo_kernel2_yvel_plus_4_front;
int ydim0_update_halo_kernel2_yvel_plus_4_front_h = -1;
__constant__ int xdim1_update_halo_kernel2_yvel_pl... |
e472af953a49356899cf7e3fd1f8d55d204bbace.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath>
#include <iostream>
#include <random>
#include <ctime>
double fRand(double fMin, double fMax)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> dis(fMin, fMax);
doub... | e472af953a49356899cf7e3fd1f8d55d204bbace.cu | #include <cmath>
#include <iostream>
#include <random>
#include <ctime>
double fRand(double fMin, double fMax)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> dis(fMin, fMax);
double a = dis(gen);
return a;
}
struct Obstacle
{
public:
double _x, _y, v_x, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.