hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
d9efa53a65f9717fd41f1b4bbdc51c65092eb56d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ static void ShiftFinalData(float* AfterFFTData, float* ShiftData, int SizeX, int SizeY, int FinalSizeZ, int FinalDataSize)
{
//
//
// => | ->
// ("->" "=>" )
int id = blockIdx.y * gridDim.x * grid... | d9efa53a65f9717fd41f1b4bbdc51c65092eb56d.cu | #include "includes.h"
__global__ static void ShiftFinalData(float* AfterFFTData, float* ShiftData, int SizeX, int SizeY, int FinalSizeZ, int FinalDataSize)
{
// 這邊要做位移
// 由於硬體是這樣子 ↓
// => | ->
// ("->" 是指第一段,"=>" 是指第二段)
int id = blockIdx.y * gridDim.x * gridDim.z * blockDim.x + // Y => Y * 250 * (2 * 1024)
blockIdx.x... |
a669a93988c4b86d3964b59c02b109e681bd1d06.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----------------------------------------------------------------------------
// Gunrock -- Fast and Efficient GPU Graph Library
// ----------------------------------------------------------------------------
// This source code i... | a669a93988c4b86d3964b59c02b109e681bd1d06.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 dis... |
c0366e2c51ea0526f86ea0fecd254c536214dc76.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#include <hip/hip_runtime.h>
#define N 100
#define DIM 2
#define PamM 2e-11
#define S 0.5
char le_entrada(... | c0366e2c51ea0526f86ea0fecd254c536214dc76.cu | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cuda.h>
#include <curand_kernel.h>
#include <cuda_runtime.h>
#define N 100
#define DIM 2
#define PamM 2e-11
#define S 0.5
char le_entrada();
char inicializa_parametros();
float *aloca_matriz(int, int);
void cal_cond_robi... |
b6c47fe2ed94696b96aa2eeb5bf6672b95897f05.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 2018-present Antonio Mallia <me@antoniomallia.it>
*
* 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://... | b6c47fe2ed94696b96aa2eeb5bf6672b95897f05.cu | /**
* Copyright 2018-present Antonio Mallia <me@antoniomallia.it>
*
* 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 b... |
7d5e0f9e32ddabdc19885e529cf4a77df55f088a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Image Blurring
//
// In this kernel we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the... | 7d5e0f9e32ddabdc19885e529cf4a77df55f088a.cu | // Image Blurring
//
// In this kernel we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the image such that the center
// of the weight array is aligned with the current pixel. To... |
c40855ff28ebe8489d55c90494296435e0269191.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
// Lattice dimensions and thread_num
#define thread_num 512// Must be 2^k
#define grid_dim_x 128
#define grid_dim_z 163... | c40855ff28ebe8489d55c90494296435e0269191.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <cuda_runtime.h>
#include <curand_kernel.h>
// Lattice dimensions and thread_num
#define thread_num 512// Must be 2^k
#define grid_dim_x 128
#define grid_dim_z 16384
#define grid_size 2097152
#define iter 250
#define iterbal 50
void ... |
d2c724cd55dc0f4f5cecdc833eadbdb3080f5c35.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <assert.h>
#define N 2//64
__device__ int bar () {
return 0;
}
__global__ void foo() {
__assert(bar () !=0);
}
| d2c724cd55dc0f4f5cecdc833eadbdb3080f5c35.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <assert.h>
#define N 2//64
__device__ int bar () {
return 0;
}
__global__ void foo() {
__assert(bar () !=0);
}
|
c26c3123ecaecf5f98d807be3a83a8cfb22d3ec9.hip | // !!! This is a file automatically generated by hipify!!!
/* Host code for the Jacobi method of solving a system of linear equations
* by iteration.
* Build as follws: make clean && make
* Author: Naga Kandasamy
* Date modified: February 23, 2021
*
* Student name(s); Kevin Connell, Casey Adams
* Date modified: 3/2/2... | c26c3123ecaecf5f98d807be3a83a8cfb22d3ec9.cu | /* Host code for the Jacobi method of solving a system of linear equations
* by iteration.
* Build as follws: make clean && make
* Author: Naga Kandasamy
* Date modified: February 23, 2021
*
* Student name(s); Kevin Connell, Casey Adams
* Date modified: 3/2/2021
*/
#include <stdlib.h>
#include <stdio.h>
#include <sy... |
93d847ec1bfc6dcc8e64f0656b28720b8db4b898.hip | // !!! This is a file automatically generated by hipify!!!
#include "common_hip.cuh"
// The current ray and its payload.
rtDeclareVariable(optix::Ray, ray, rtCurrentRay , );
rtDeclareVariable(RayPayload, payload, rtPayload, );
// Environment map texture sampler.
rtTextureSampler<float4, 2> env_map;
RT_PROGRAM void m... | 93d847ec1bfc6dcc8e64f0656b28720b8db4b898.cu | #include "common.cuh"
// The current ray and its payload.
rtDeclareVariable(optix::Ray, ray, rtCurrentRay , );
rtDeclareVariable(RayPayload, payload, rtPayload, );
// Environment map texture sampler.
rtTextureSampler<float4, 2> env_map;
RT_PROGRAM void miss_environment_constant() {
// Azimuth; angle from the ray'... |
8a4d8d38b0a101bf81e2bd5a8562b37825a2250d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
#ifdef USE_ROCM
template<typename Dtype>
__global__ void LRNFillScale(const int_tp nthreads, const Dtype* const in,
... | 8a4d8d38b0a101bf81e2bd5a8562b37825a2250d.cu | #include <vector>
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
#ifdef USE_CUDA
template<typename Dtype>
__global__ void LRNFillScale(const int_tp nthreads, const Dtype* const in,
const int_tp num, const int_tp channels,
... |
0a53fc5fdd7deea7d3b0fa4c38013b94574e9a11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* a simple test
*/
__shared__ float data1[32][32];
__shared__ float data2[32][32];
__shared__ float data3[32][32];
__device__ void mult(__shared__ float d1[32][32],
__shared__ float d2[32][32],
... | 0a53fc5fdd7deea7d3b0fa4c38013b94574e9a11.cu | /*
* a simple test
*/
__shared__ float data1[32][32];
__shared__ float data2[32][32];
__shared__ float data3[32][32];
__device__ void mult(__shared__ float d1[32][32],
__shared__ float d2[32][32],
__shared__ float d3[32][32],
int idx)
{
int i;
for ... |
93f17e0433af518d2f49b484de125480a4c7e81b.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include<limits>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <hip/hip_runtime.h>
#include <stdint.h>
#include <math.h>
#include <unistd.h>
#include <omp.h>
#include <algorithm>
using n... | 93f17e0433af518d2f49b484de125480a4c7e81b.cu | #include <iostream>
#include<limits>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cuda.h>
#include <stdint.h>
#include <math.h>
#include <unistd.h>
#include <omp.h>
#include <algorithm>
using namespace std;
// 8 byte. how to be 128byte?
// Parameter need to ... |
526cfc043ae848c58738a2341f87f523c9818416.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 526cfc043ae848c58738a2341f87f523c9818416.cu | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
38fdf3792b069d36f608a745db9bf34e8b28b2b7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow 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
... | 38fdf3792b069d36f608a745db9bf34e8b28b2b7.cu | /*
Copyright 2020 The OneFlow 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 agre... |
d22dedee565e7621b7fd9082e54c4cad43064f13.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
extern "C"
__global__ void dist2_1(float *in1, float *in2, float *out, int rows, int columns){
int column = threadIdx.x + b... | d22dedee565e7621b7fd9082e54c4cad43064f13.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#include <stdio.h>
#include <cuda.h>
extern "C"
__global__ void dist2_1(float *in1, float *in2, float *out, int rows, int columns){
int column = threadIdx.x + blockIdx.x*blockDim.x;
if (column < columns)
{
out[col... |
c9ca963d58a0ada7ccabd5027fa4a1ec6a9646d9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h>
#include <stdio.h>
#define N 200
__global__ void reverse(int *a, int *b) {
int idx = blockIdx.x * blockDim.x + threadIdx.x;
b[gridDim.x - idx - 1] = a[idx];
}
void random_ints(int *p, int n) {
int i;
for... | c9ca963d58a0ada7ccabd5027fa4a1ec6a9646d9.cu | #include <math.h>
#include <stdio.h>
#define N 200
__global__ void reverse(int *a, int *b) {
int idx = blockIdx.x * blockDim.x + threadIdx.x;
b[gridDim.x - idx - 1] = a[idx];
}
void random_ints(int *p, int n) {
int i;
for (i = 0; i < n; i++) {
p[i] = rand() % 100;
}
}
int main(void) {
int *a, *b; ... |
cbba3463ec59e16ee322a0d32b10279d0e082f16.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
extern "C"
__global__ void kern(int *out)
{
out[0] = 1;
}
| cbba3463ec59e16ee322a0d32b10279d0e082f16.cu | #include <cuda.h>
extern "C"
__global__ void kern(int *out)
{
out[0] = 1;
}
|
93888832a99915dc908036752bc9dc6fa985f4be.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "common.h"
#include "device_launch_parameters.h"
#define imin(a, b) (a < b ? a : b)
#define sum_squares(x) (x * (x + 1) * (2 * x + 1) / 6)
const int N = 33 * 1024;
const int threadsPerBlock = 256;
const int blocksPerGrid... | 93888832a99915dc908036752bc9dc6fa985f4be.cu |
#include "common.h"
#include "device_launch_parameters.h"
#define imin(a, b) (a < b ? a : b)
#define sum_squares(x) (x * (x + 1) * (2 * x + 1) / 6)
const int N = 33 * 1024;
const int threadsPerBlock = 256;
const int blocksPerGrid = imin(32, (N + threadsPerBlock - 1) / threadsPerBlock);
__global__ void dot(float *a,... |
4400cb0be36466c31c9c6bfd2513b68be14885a1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modi... | 4400cb0be36466c31c9c6bfd2513b68be14885a1.cu | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modifications thereto. Any use, reproduction, disclosure, or distribution
* of this softwa... |
c2f325be8fe3f533bd6e25f62292d0d63a65b412.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Reads a cell at (x+dx, y+dy)
__device__ int read_cell(int * source_domain, int x, int y, int dx, int dy,
unsigned int domain_x, unsigned int domain_y)
{
x = (unsigned int)(x + dx) % domain_x; // Wrap around
y = (unsi... | c2f325be8fe3f533bd6e25f62292d0d63a65b412.cu |
// Reads a cell at (x+dx, y+dy)
__device__ int read_cell(int * source_domain, int x, int y, int dx, int dy,
unsigned int domain_x, unsigned int domain_y)
{
x = (unsigned int)(x + dx) % domain_x; // Wrap around
y = (unsigned int)(y + dy) % domain_y;
return source_domain[y * domain_x + x];
}
// Compute ... |
192659b846255d584f38229662a5862e4f044625.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2020-2021, 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
... | 192659b846255d584f38229662a5862e4f044625.cu | /*
* Copyright (c) 2020-2021, 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... |
acdac74933f8e29b40df88f05c599f93fe79214c.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... | acdac74933f8e29b40df88f05c599f93fe79214c.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... |
04b335d3afb5cfacb055bf425aad648701007d86.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__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];
};
extern "C" void invoke_VecAdd(float* d_A, float* d_B, float* d_C, int N)... | 04b335d3afb5cfacb055bf425aad648701007d86.cu | __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];
};
extern "C" void invoke_VecAdd(float* d_A, float* d_B, float* d_C, int N) {
int threadsPerBlock = 256;
int blocksPerGrid = N / threadsPerBlock;
VecAdd<<... |
106b6f65a16d73c55993b8ec0c80b51becd4f144.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 "difference.cu"
#include<chrono>
#include<iostream>
using namespa... | 106b6f65a16d73c55993b8ec0c80b51becd4f144.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 "difference.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24... |
3ecd75e9713d37a4e7871c1563e6e4f69ed26d2b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2016 Fixstars 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... | 3ecd75e9713d37a4e7871c1563e6e4f69ed26d2b.cu | /*
Copyright 2016 Fixstars 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 or agreed to in writing, softwa... |
d1537b77cb23b0c3526489bd2d27174f8236d0b3.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are... | d1537b77cb23b0c3526489bd2d27174f8236d0b3.cu | /***************************************************************************************************
* Copyright (c) 2017-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 me... |
f859fe1117109b4b5821c9f355a988747c5408db.hip | // !!! This is a file automatically generated by hipify!!!
#include "THHApply.cuh"
#include "utils.h"
struct LeakyReLUUpdateOutput {
const float slope_;
LeakyReLUUpdateOutput(float slope): slope_(slope) {}
__device__ __forceinline__ void operator()(float* out, float* in) {
float x = *in;
*out = (x > 0)... | f859fe1117109b4b5821c9f355a988747c5408db.cu | #include "THCApply.cuh"
#include "utils.h"
struct LeakyReLUUpdateOutput {
const float slope_;
LeakyReLUUpdateOutput(float slope): slope_(slope) {}
__device__ __forceinline__ void operator()(float* out, float* in) {
float x = *in;
*out = (x > 0) ? x : x*slope_;
}
};
// in-place variant
struct LeakyRe... |
4af5ce5a5b5a8c86c6abd1378a7b149de1f2c8cd.hip | // !!! This is a file automatically generated by hipify!!!
#include <iso646.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#include "lab3.h"
#include <cstdio>
__device__ __host__ int CeilDiv(int a, int b) { return (a-1)/b + 1; }
__device__ __host_... | 4af5ce5a5b5a8c86c6abd1378a7b149de1f2c8cd.cu | #include <iso646.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#include "lab3.h"
#include <cstdio>
__device__ __host__ int CeilDiv(int a, int b) { return (a-1)/b + 1; }
__device__ __host__ int CeilAlign(int a, int b) { return CeilDiv(a, b) * b; }
__global__ v... |
9cb954e8bf52fe14dd0cb717b3ec9247cae94d72.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void NodesApplyTramplingEffectKernel(float* target, float* distanceToPath, int graphW, int graphH, float pathThickness, float tramplingCoefficient)
{
int i = 1 + blockIdx.x * blockDim.x + threadIdx.x... | 9cb954e8bf52fe14dd0cb717b3ec9247cae94d72.cu | #include "includes.h"
__global__ void NodesApplyTramplingEffectKernel(float* target, float* distanceToPath, int graphW, int graphH, float pathThickness, float tramplingCoefficient)
{
int i = 1 + blockIdx.x * blockDim.x + threadIdx.x;
int j = 1 + blockIdx.y * blockDim.y + threadIdx.y;
if(i <= graphW && j <= graphH) {
in... |
a4d717a20fdfaf6576ce67da563f022676d805af.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... | a4d717a20fdfaf6576ce67da563f022676d805af.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 6
#define TC 32
#define C 160
#define N 96
#defin... |
71aec6b920902b740e0ab1472546134c978078de.hip | // !!! This is a file automatically generated by hipify!!!
///////////////////////////////////////////////////////////////////////////////
//
// The MIT License
//
// Copyright (c) 2006 Scientific Computing and Imaging Institute,
// University of Utah (USA)
//
// License for the specific language governing rights and l... | 71aec6b920902b740e0ab1472546134c978078de.cu | ///////////////////////////////////////////////////////////////////////////////
//
// The MIT License
//
// Copyright (c) 2006 Scientific Computing and Imaging Institute,
// University of Utah (USA)
//
// License for the specific language governing rights and limitations under
// Permission is hereby granted, free of c... |
7b4b9b598880b8fd3f8c62c29268b138648a514a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright 2019 XGBoost contributors
*/
#include <xgboost/data.h>
#include "./ellpack_page.cuh"
#include "../common/hist_util.h"
#include "../common/random.h"
namespace xgboost {
EllpackPage::EllpackPage() : impl_{new Ell... | 7b4b9b598880b8fd3f8c62c29268b138648a514a.cu | /*!
* Copyright 2019 XGBoost contributors
*/
#include <xgboost/data.h>
#include "./ellpack_page.cuh"
#include "../common/hist_util.h"
#include "../common/random.h"
namespace xgboost {
EllpackPage::EllpackPage() : impl_{new EllpackPageImpl()} {}
EllpackPage::EllpackPage(DMatrix* dmat, const BatchParam& param)
... |
786c96e5671417acea3c4bc6cb4e58502c932fe6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <cfloat>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "mymath.cuh"
#include "sphere_hip.cuh"
#include "ray.cuh"
extern "C" hipError_t InitCuda(int w, int h, unsigned char** dev_bi... | 786c96e5671417acea3c4bc6cb4e58502c932fe6.cu | #include <stdio.h>
#include <stdlib.h>
#include <cfloat>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "mymath.cuh"
#include "sphere.cuh"
#include "ray.cuh"
extern "C" cudaError_t InitCuda(int w, int h, unsigned char** dev_bitmap);
extern "C" cudaError_t CalculateCuda(int w, int h, unsigne... |
e118f4c796b0de47e7bb620a2b8a134292897991.hip | // !!! This is a file automatically generated by hipify!!!
#include "gpu_runtime.h"
void convert_F_to_C_order(float *data, int m, int n)
{
/*
convert an F order matrix to C order:
sample data:
1, 2, 3, 4
5, 6, 7, 8
9, 10, 11, 12
output:
1, 4, 7, 10
2, 5, 8, 11
3, 6, 9, 12
*/
size_t workspace_s... | e118f4c796b0de47e7bb620a2b8a134292897991.cu | #include "gpu_runtime.h"
void convert_F_to_C_order(float *data, int m, int n)
{
/*
convert an F order matrix to C order:
sample data:
1, 2, 3, 4
5, 6, 7, 8
9, 10, 11, 12
output:
1, 4, 7, 10
2, 5, 8, 11
3, 6, 9, 12
*/
size_t workspace_size = m*n;
float *work_data = (float*)malloc(workspace_si... |
3e6f88b5d264f9759a5676023107e3665cec29df.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_minus_2_bot;
int xdim0_update_halo_kernel2_yvel_minus_2_bot_h = -1;
__constant__ int ydim0_update_halo_kernel2_yvel_minus_2_bot;
int ydim0_update_halo... | 3e6f88b5d264f9759a5676023107e3665cec29df.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_yvel_minus_2_bot;
int xdim0_update_halo_kernel2_yvel_minus_2_bot_h = -1;
__constant__ int ydim0_update_halo_kernel2_yvel_minus_2_bot;
int ydim0_update_halo_kernel2_yvel_minus_2_bot_h = -1;
__constant__ int xdim1_update_halo_kernel2_yvel_minus_... |
b19941cd0ed5d7e3c7072276cf77ef9d90ddb6a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <LinearLayerGPU.h>
#include <GpuUtils.h>
#include <algorithm>
#define trPerBlock 1024
template <typename T>
__global__ void k_dense_forward(T* output, const T* weights, const T* input... | b19941cd0ed5d7e3c7072276cf77ef9d90ddb6a6.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <LinearLayerGPU.h>
#include <GpuUtils.h>
#include <algorithm>
#define trPerBlock 1024
template <typename T>
__global__ void k_dense_forward(T* output, const T* weights, const T* input, size_t inputSize, const T* bias, size_t outputSize)
{
co... |
94bb87c7a39c45fdd0bc5fcaefa5e12f78d80ee3.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*modification, a... | 94bb87c7a39c45fdd0bc5fcaefa5e12f78d80ee3.cu | /***************************************************************************************************
* Copyright (c) 2017-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... |
a4d30596efbcec9692699105097d9fcc67794d59.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THH/generic/THHTensorMathPointwise.hip"
#else
#include <ATen/MemoryOverlap.h>
#include <ATen/NamedTensorUtils.h>
void THCTensor_(cbitand)(THCState* state, THCTensor *self_, THCTensor *src1, THCTensor *src2)
{... | a4d30596efbcec9692699105097d9fcc67794d59.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THC/generic/THCTensorMathPointwise.cu"
#else
#include <ATen/MemoryOverlap.h>
#include <ATen/NamedTensorUtils.h>
void THCTensor_(cbitand)(THCState* state, THCTensor *self_, THCTensor *src1, THCTensor *src2)
{
#if defined(THC_REAL_IS_HALF) || defined(THC_REAL_IS_FLOAT)... |
2b119a53323684b093edcac237a59054c6dd2a61.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Host Side Code for Cross-correlation in GPU
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <fstream>
#include "corr2cuda.h"
#include "normXcorr_GPUKernel_Cuda.cu"
using namespace std;
Ma... | 2b119a53323684b093edcac237a59054c6dd2a61.cu | // Host Side Code for Cross-correlation in GPU
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <fstream>
#include "corr2cuda.h"
#include "normXcorr_GPUKernel_Cuda.cu"
using namespace std;
Matrix AllocateDeviceMatrix(const Matrix M);
Matrix AllocateMatrix_Pre(int height, int wid... |
2ae4f892f0374a630b8165ed111a486410381ccc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Implementing histogram equalization in CUDA
// @Jiangyan Feng, jf8@illinois.edu
// Sparse Matrix Vector Multiplication (JDS)
#include <wb.h>
#define wbCheck(stmt) \
do { ... | 2ae4f892f0374a630b8165ed111a486410381ccc.cu | // Implementing histogram equalization in CUDA
// @Jiangyan Feng, jf8@illinois.edu
// Sparse Matrix Vector Multiplication (JDS)
#include <wb.h>
#define wbCheck(stmt) \
do { \
cudaError_t err ... |
eb852e6289aa19b88cd0baeda3b799fc05e3dd69.hip | // !!! This is a file automatically generated by hipify!!!
#include "math_functions.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
__global__ void compute_hiddenDW_kernel( double *weight_hidden, const double *u, const double * input, const int nInput, const int nHidden,const in... | eb852e6289aa19b88cd0baeda3b799fc05e3dd69.cu | #include "math_functions.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
__global__ void compute_hiddenDW_kernel( double *weight_hidden, const double *u, const double * input, const int nInput, const int nHidden,const int T_size, const int nT, const int *Time, const double * weight... |
c2c3a6999aeaca9b1ba3c8082c96b81887d1878c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass: checka se o parmetro passado com sucesso
//--blockDim=1024 --gridDim=1 --no-inline
#include <stdio.h>
#include <stdlib.h>
#define N 8
__device__ float multiplyByTwo(float *v, unsigned int tid) {
return v[tid] * 2.0f;... | c2c3a6999aeaca9b1ba3c8082c96b81887d1878c.cu | //pass: checka se o parâmetro é passado com sucesso
//--blockDim=1024 --gridDim=1 --no-inline
#include <stdio.h>
#include <stdlib.h>
#define N 8
__device__ float multiplyByTwo(float *v, unsigned int tid) {
return v[tid] * 2.0f;
}
__device__ float divideByTwo(float *v, unsigned int tid) {
return v[tid] * 0.... |
5838917c293cba8e6c89234dfa48c1f33ad468ed.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licen... | 5838917c293cba8e6c89234dfa48c1f33ad468ed.cu | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... |
ee03dc7483f528f6183bb968012275183ff5bc15.hip | // !!! This is a file automatically generated by hipify!!!
/******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
******... | ee03dc7483f528f6183bb968012275183ff5bc15.cu | /******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*****************************************************************... |
6fc841414f43e48b39466d57d1a6edb917d2ad0e.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 available at
*... | 6fc841414f43e48b39466d57d1a6edb917d2ad0e.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 NOTICE file distributed wit... |
8e57d3823af89eaede21f1fdff6b5830bcb491d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#define CHECK_CUDA_ERROR(exp) { \
hipError_t ret = (exp); \
if (ret != hipSuccess) { \
fprintf(stderr, "[error]... | 8e57d3823af89eaede21f1fdff6b5830bcb491d6.cu | #include <stdlib.h>
#include <stdio.h>
#define CHECK_CUDA_ERROR(exp) { \
cudaError_t ret = (exp); \
if (ret != cudaSuccess) { \
fprintf(stderr, "[error] %s:%d: %s (%s)\n", \
__FILE__, __LINE__, \
... |
531547a1f4baedf72323b8a3d83c5d86693f3c85.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
//#include <cutil.h>
#include "coefficient.h"
#define THREAD_NUM 8
#define BLOCK_NUM 1
#define ARRAY_LENGTH PRICE_LIST_SIZE
#define BLOCK_SIZE 8
const int threadsPerBlock = 256;
static void HandleError( hipErro... | 531547a1f4baedf72323b8a3d83c5d86693f3c85.cu | #include <stdio.h>
//#include <cutil.h>
#include "coefficient.h"
#define THREAD_NUM 8
#define BLOCK_NUM 1
#define ARRAY_LENGTH PRICE_LIST_SIZE
#define BLOCK_SIZE 8
const int threadsPerBlock = 256;
static void HandleError( cudaError_t err, const char *file, int line ) {
if (err != cudaSuccess) {
printf( ... |
42bddec94f25104283695c18ac6cbc61a685ed42.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 42bddec94f25104283695c18ac6cbc61a685ed42.cu | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
64402121d10ce882c574efa501f49c72d31bc56e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void devInverseReindexInt3Bool(int N, int3 *destArray, int3 *srcArray, unsigned int *reindex, int realSize, int nDims, int maxValue, bool ignoreValue)
{
for (unsigned int n = 0; n < nDims; n++) {
int... | 64402121d10ce882c574efa501f49c72d31bc56e.cu | #include "includes.h"
__global__ void devInverseReindexInt3Bool(int N, int3 *destArray, int3 *srcArray, unsigned int *reindex, int realSize, int nDims, int maxValue, bool ignoreValue)
{
for (unsigned int n = 0; n < nDims; n++) {
int i = blockIdx.x*blockDim.x + threadIdx.x;
while (i < N) {
int ret = -1;
int tmp = srcAr... |
eeb880cc5f2c7be756bb2eaf3d7926c25602bbf0.hip | // !!! This is a file automatically generated by hipify!!!
/*
* solver.cu
*
* Created on: Apr 27, 2014
* Author: mark
*/
#include "hip/hip_runtime.h"
#include <climits>
#include "solver.h"
#include "pathfinder_common.h"
#include "scene.h"
__device__ void addToList(nodeList_t *list, node_t *node) {
node_... | eeb880cc5f2c7be756bb2eaf3d7926c25602bbf0.cu | /*
* solver.cu
*
* Created on: Apr 27, 2014
* Author: mark
*/
#include "cuda.h"
#include <climits>
#include "solver.h"
#include "pathfinder_common.h"
#include "scene.h"
__device__ void addToList(nodeList_t *list, node_t *node) {
node_t *cur = list->head;
list->size++;
if (cur) {
while (cur->next)
... |
bab3940e0e736dd9c669554e11983c7aaf055e06.hip | // !!! This is a file automatically generated by hipify!!!
#include "../catch.hpp"
#define TEST_CUDA_CHECK_RETURN
//--------------------------------------------------------------
#include <thrust/device_vector.h>
#include "../BaseCudaTestHandler.h"
#include "../../GPUPatternMining.Contract/IPairColocationsProvider.... | bab3940e0e736dd9c669554e11983c7aaf055e06.cu | #include "../catch.hpp"
#define TEST_CUDA_CHECK_RETURN
//--------------------------------------------------------------
#include <thrust/device_vector.h>
#include "../BaseCudaTestHandler.h"
#include "../../GPUPatternMining.Contract/IPairColocationsProvider.h"
#include "../../GPUPatternMining/HashMap/gpuhashmapper.h... |
42215d227d324e35ab96954fa9780a36373b179b.hip | // !!! This is a file automatically generated by hipify!!!
// Andrew Gloster
// February 2019
// Program to solve the 2D Cahn-Hilliard equation on a periodic domain using the ADI method
// Outputs timing
// Copyright 2019 Andrew Gloster
// Licensed under the Apache License, Version 2.0 (the "License");
// you m... | 42215d227d324e35ab96954fa9780a36373b179b.cu | // Andrew Gloster
// February 2019
// Program to solve the 2D Cahn-Hilliard equation on a periodic domain using the ADI method
// Outputs timing
// Copyright 2019 Andrew Gloster
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.... |
d6162093d40ebbf55ad57fdfc17cbc6bf19b2170.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../include/DeviceHashTable.cuh"
#include "../src/HashFunc.cuh"
#include "../util/util.cuh"
#include <stdio.h>
__device__
void
DeviceHashTable::init(const DHTInitBlock &init_blk) {
_bkts_p = init_blk.bkts_p;
if ... | d6162093d40ebbf55ad57fdfc17cbc6bf19b2170.cu | #include "../include/DeviceHashTable.cuh"
#include "../src/HashFunc.cuh"
#include "../util/util.cuh"
#include <stdio.h>
__device__
void
DeviceHashTable::init(const DHTInitBlock &init_blk) {
_bkts_p = init_blk.bkts_p;
if (init_blk.alloc_p != nullptr)
_alloc_p = init_blk.alloc_p;
else {
_... |
54ab1802418f245a390f51bf8be77e213b3d89b9.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in sour... | 54ab1802418f245a390f51bf8be77e213b3d89b9.cu | /***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
8f55ec935a0085f6ddb91ba1e566ef7575b62107.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* \file dnn/src/cuda/warp_perspective/backward_mat.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applic... | 8f55ec935a0085f6ddb91ba1e566ef7575b62107.cu | /**
* \file dnn/src/cuda/warp_perspective/backward_mat.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distribut... |
7478a9f56da0006fe7de3ba60d51d36962c19f47.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
#define N 100
__global__ void setupRandStates(hiprandState_t* state, unsigned int seed) {
unsigned block_id = blockIdx.y * gridDim.x + blockIdx.x;
int thread_id = threadIdx.x + block_id * blockDim.x;
// ... | 7478a9f56da0006fe7de3ba60d51d36962c19f47.cu | #include "includes.h"
#define N 100
__global__ void setupRandStates(curandState_t* state, unsigned int seed) {
unsigned block_id = blockIdx.y * gridDim.x + blockIdx.x;
int thread_id = threadIdx.x + block_id * blockDim.x;
// Each thread gets same seed, a different sequence number, no offset
curand_init(seed, thre... |
0c055d2193236082d4745bf09a6b6ad64a563e1c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright (c) 2020 by Contributors
* \file array/cuda/spmat_op_impl_csr.cu
* \brief CSR operator CPU implementation
*/
#include <dgl/array.h>
#include <vector>
#include <unordered_set>
#include <numeric>
#include "../../r... | 0c055d2193236082d4745bf09a6b6ad64a563e1c.cu | /*!
* Copyright (c) 2020 by Contributors
* \file array/cuda/spmat_op_impl_csr.cu
* \brief CSR operator CPU implementation
*/
#include <dgl/array.h>
#include <vector>
#include <unordered_set>
#include <numeric>
#include "../../runtime/cuda/cuda_common.h"
#include "./utils.h"
namespace dgl {
using runtime::NDArray... |
6c6781387a8ef44ec8dd919359b7d137f8fd7b0b.hip | // !!! This is a file automatically generated by hipify!!!
#include <torch/extension.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <vector>
namespace {
template <typename scalar_t>
static __forceinline__ __device__
scalar_t grid_sampler_unnormalize(scalar_t coord, int size, bool align_corners... | 6c6781387a8ef44ec8dd919359b7d137f8fd7b0b.cu | #include <torch/extension.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>
namespace {
template <typename scalar_t>
static __forceinline__ __device__
scalar_t grid_sampler_unnormalize(scalar_t coord, int size, bool align_corners) {
if (align_corners) {
// unnormalize coord from [-1, 1] to [0, s... |
e19460b6755c2cba04d0b53e323ee463647b3829.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,... | e19460b6755c2cba04d0b53e323ee463647b3829.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... |
f46c87dccf966973e261d73353945778b1dc0ace.hip | // !!! This is a file automatically generated by hipify!!!
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <hip/hip_runtime.h>
#include "backprop.h"
// cuda kernels
#include "bpnn_layerforward.h"
#include "bpnn_adjust_weights.h"
double ... | f46c87dccf966973e261d73353945778b1dc0ace.cu | // includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <cuda.h>
#include "backprop.h"
// cuda kernels
#include "bpnn_layerforward.h"
#include "bpnn_adjust_weights.h"
double get_time() {
struct timeval t;
gettimeofday(&t,NULL);
return t.t... |
ec01c7baa398e8eb7fffbf1924da28b406f40709.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Mark Gates
@generated from zlanhe.cu norm... | ec01c7baa398e8eb7fffbf1924da28b406f40709.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Mark Gates
@generated from zlanhe.cu normal z -> c, Fri Jan 30 19:00:09 2015
*/
#include "common_magma.h"
#define inf_bs 32
#de... |
smithwaterman_change_4_stage2_orignal_real_data.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <hip/hip_runtime.h>
#include <stdint.h>
#include <math.h>
#include <unistd.h>
#include <omp.h>
#include<limits>
double diff(timespec start, timespec end)
... | smithwaterman_change_4_stage2_orignal_real_data.cu | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cuda.h>
#include <stdint.h>
#include <math.h>
#include <unistd.h>
#include <omp.h>
#include<limits>
double diff(timespec start, timespec end)
{
double a=0;
if((end.tv_nsec-start.tv_nsec)<0)
{
... |
b5d3281296b792f02be91fa262d1ab7db0b9a6e6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <accelerate_cuda.h>
extern "C" __global__ void generate(const Int64 shOut_2, const Int64 shOut_1, const Int64 shOut_0, double* __restrict__ arrOut_0)
{
const int shapeSize = shOut_2 * (shOut_1 * shOut_0);
const int gridSize... | b5d3281296b792f02be91fa262d1ab7db0b9a6e6.cu | #include <accelerate_cuda.h>
extern "C" __global__ void generate(const Int64 shOut_2, const Int64 shOut_1, const Int64 shOut_0, double* __restrict__ arrOut_0)
{
const int shapeSize = shOut_2 * (shOut_1 * shOut_0);
const int gridSize = blockDim.x * gridDim.x;
int ix;
for (ix = blockDim.x * blockIdx.x + threadIdx.x; ix ... |
ff9a8b7e1bbbb10f009f140bc7ce68d22851f0d4.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
static void HandleError( hipError_t err, const char *file, int line ) {
if (err != hipSuccess) {
printf( "%s in %s at line %d\n", hipGetErrorString( err ), ... | ff9a8b7e1bbbb10f009f140bc7ce68d22851f0d4.cu | #include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
static void HandleError( cudaError_t err, const char *file, int line ) {
if (err != cudaSuccess) {
printf( "%s in %s at line %d\n", cudaGetErrorString( err ), file, line );
exit( EXIT_FAILURE );
}
... |
f8b5a05dfaeb0d824fe9476a596ef161fa200882.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// includes, system
#include "datatypes.h"
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <vector>
#include <shrUtils.h>
#include <cutil_inline.h>
using namespace std;
... | f8b5a05dfaeb0d824fe9476a596ef161fa200882.cu | // includes, system
#include "datatypes.h"
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <vector>
#include <shrUtils.h>
#include <cutil_inline.h>
using namespace std;
/** sample function: sum up path from root to node */
__device__ void computation(TreeNo... |
1f3d34c6f0157439b0eaab0e883c64d76d83e9ad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "head.h"
#define tpb 256
extern double *d_t;
extern double *d_it;
extern double *d_V;
extern double *d_dV2;
extern double *d_Vnew;
extern double *d_m;
extern double *d_h;
extern double *d_jj;
extern double *d_d;
extern ... | 1f3d34c6f0157439b0eaab0e883c64d76d83e9ad.cu | #include "head.h"
#define tpb 256
extern double *d_t;
extern double *d_it;
extern double *d_V;
extern double *d_dV2;
extern double *d_Vnew;
extern double *d_m;
extern double *d_h;
extern double *d_jj;
extern double *d_d;
extern double *d_f;
extern double *d_X;
extern double *d_cai;
__global__ void comp_dV2(doubl... |
33cddf20352d91f0e4f6323889a500d5cef6a58e.hip | // !!! This is a file automatically generated by hipify!!!
/*
This version assigns one thread per 16 bytes of text.(one text block)
Stores the plaintext/ciphertext in registers.
Stores the encryption keys in shared memory.
Stores the S-boxes in shared memory.
The blocksize is 512.
*/
#include <iostream>
#include <fstr... | 33cddf20352d91f0e4f6323889a500d5cef6a58e.cu | /*
This version assigns one thread per 16 bytes of text.(one text block)
Stores the plaintext/ciphertext in registers.
Stores the encryption keys in shared memory.
Stores the S-boxes in shared memory.
The blocksize is 512.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <chrono>
#include <cuda_r... |
363d5ec0edbd76fde9f0c44affe1e7de573f7882.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <cmath>
#include "../parser.h"
#include "../Method/mc.h"
#include "cudaLib.h"
#include "pricer_kernel.cuh"
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_... | 363d5ec0edbd76fde9f0c44affe1e7de573f7882.cu | #include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <cmath>
#include "../parser.h"
#include "../Method/mc.h"
#include "cudaLib.h"
#include "pricer_kernel.cuh"
#include <curand.h>
#include <curand_kernel.h>
#include <sys/time.h>
int main(int argc, char ** argv) {
const char *infile = argv[1];
Pa... |
9f25a17ff00e630944162632ee9f23aef88f7479.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... | 9f25a17ff00e630944162632ee9f23aef88f7479.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... |
ae221e7ddc5990ed04d2ff63f4e3fdb44fb30dcc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <accelerate_cuda.h>
extern "C" __global__ void generate(const Int64 shIn0_2, const Int64 shIn0_1, const Int64 shIn0_0, const double* __restrict__ arrIn0_0, const Int64 shIn1_2, const Int64 shIn1_1, const Int64 shIn1_0, cons... | ae221e7ddc5990ed04d2ff63f4e3fdb44fb30dcc.cu | #include <accelerate_cuda.h>
extern "C" __global__ void generate(const Int64 shIn0_2, const Int64 shIn0_1, const Int64 shIn0_0, const double* __restrict__ arrIn0_0, const Int64 shIn1_2, const Int64 shIn1_1, const Int64 shIn1_0, const double* __restrict__ arrIn1_0, const Int64 shIn2_2, const Int64 shIn2_1, const Int64 s... |
bf9213c33fba7273c4cbf0144661845be3394912.hip | // !!! This is a file automatically generated by hipify!!!
/*
* cuTS: Scaling Subgraph Isomorphism on Distributed Multi-GPU Systems Using
* Trie Based Data Structure
*
* Copyright (C) 2021 APPL Laboratories (aravind_sr@outlook.com)
*
* This software is available under the MIT license, a copy of which can ... | bf9213c33fba7273c4cbf0144661845be3394912.cu | /*
* cuTS: Scaling Subgraph Isomorphism on Distributed Multi-GPU Systems Using
* Trie Based Data Structure
*
* Copyright (C) 2021 APPL Laboratories (aravind_sr@outlook.com)
*
* This software is available under the MIT license, a copy of which can be
* found in the file 'LICENSE' in the top-level director... |
b18ab4be9896b5b17201000d7af1561ce3a7f17f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2023 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... | b18ab4be9896b5b17201000d7af1561ce3a7f17f.cu | // Copyright (c) 2023 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... |
6f998452a954a9400e1b1ffc7af95d44b8afc5e3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* This work is part of the Core Imaging Library developed by
* Visual Analytics and Imaging System Group of the Science Technology
* Facilities Council, STFC and Diamond Light Source Ltd.
*
* Copyright 2017 Daniil Kazantsev
... | 6f998452a954a9400e1b1ffc7af95d44b8afc5e3.cu | /*
* This work is part of the Core Imaging Library developed by
* Visual Analytics and Imaging System Group of the Science Technology
* Facilities Council, STFC and Diamond Light Source Ltd.
*
* Copyright 2017 Daniil Kazantsev
* Copyright 2017 Srikanth Nagella, Edoardo Pasca
* Copyright 2018 Diamond Light Source... |
dbdc8646c53f25c1334e12524612de2d199dbdf9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hiprand/hiprand.h"
#include "rocblas.h"
#include <assert.h>
extern "C" {
#include "blas.h"
#include "hip/hip_runtime.h"
#include "utils.h"
}
__global__ void scale_bias_kernel(float *output, float *biases, int n, int size... | dbdc8646c53f25c1334e12524612de2d199dbdf9.cu | #include "cuda_runtime.h"
#include "curand.h"
#include "cublas_v2.h"
#include <assert.h>
extern "C" {
#include "blas.h"
#include "cuda.h"
#include "utils.h"
}
__global__ void scale_bias_kernel(float *output, float *biases, int n, int size)
{
int offset = blockIdx.x * blockDim.x + threadIdx.x;
int filter = bl... |
22c18dde7c51c9615db38184fb1b0bea87e4efc1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void hello_cuda() {
printf("Hello Cuda!\n");
}
int main() {
dim3 block(4);
dim3 grid(8);
hipLaunchKernelGGL(( hello_cuda), dim3(grid), dim3(block), 0, 0, );;
hipDeviceSynchronize();
hipDeviceR... | 22c18dde7c51c9615db38184fb1b0bea87e4efc1.cu | #include <stdio.h>
__global__ void hello_cuda() {
printf("Hello Cuda!\n");
}
int main() {
dim3 block(4);
dim3 grid(8);
hello_cuda<<<grid, block>>>();;
cudaDeviceSynchronize();
cudaDeviceReset();
return 0;
}
|
8a0cbc6e04934267544f6cc7859e31e81a176911.hip | // !!! This is a file automatically generated by hipify!!!
/// ---------------------------------------------------------------------------
/// CUDA Workshop 2018
/// Universidad de Alicante
/// Prctica 0 - Suma de Vectores
/// Cdigo preparado por: Albert Garca <agarcia@dtic.ua.es>
/// Sergio Orts ... | 8a0cbc6e04934267544f6cc7859e31e81a176911.cu | /// ---------------------------------------------------------------------------
/// CUDA Workshop 2018
/// Universidad de Alicante
/// Práctica 0 - Suma de Vectores
/// Código preparado por: Albert García <agarcia@dtic.ua.es>
/// Sergio Orts <sorts@ua.es>
/// --------------------------------------... |
d9a0f59d974205c8404d0312265eb8d50fa69f34.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain... | d9a0f59d974205c8404d0312265eb8d50fa69f34.cu | // Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... |
68baabf3568358581ba1d49165c5c01a155d5964.hip | // !!! This is a file automatically generated by hipify!!!
#include <gauge_field.h>
#include <color_spinor_field.h>
#include <clover_field.h>
#include <dslash.h>
#include <worker.h>
#include <dslash_policy.cuh>
#include <kernels/dslash_wilson_clover.cuh>
/**
This is the Wilson-clover linear operator
*/
namespace ... | 68baabf3568358581ba1d49165c5c01a155d5964.cu | #include <gauge_field.h>
#include <color_spinor_field.h>
#include <clover_field.h>
#include <dslash.h>
#include <worker.h>
#include <dslash_policy.cuh>
#include <kernels/dslash_wilson_clover.cuh>
/**
This is the Wilson-clover linear operator
*/
namespace quda
{
template <typename Arg> class WilsonClover : publ... |
e715bfbc2c485b1e88799859c39d63249ad46d4d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | e715bfbc2c485b1e88799859c39d63249ad46d4d.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
1ebc1dbb0475034f74b94f85f6d0c7b3c70a0552.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <unistd.h>
#include <stdlib.h>
#include<cuda.h>
#define N 1000
//__host__ => only callable by host
//__device__ => only callable by device
//__global__ 0 => only callable by host
__global__ void mat_vec_mul(float *... | 1ebc1dbb0475034f74b94f85f6d0c7b3c70a0552.cu | #include <unistd.h>
#include <stdlib.h>
#include<cuda.h>
#define N 1000
//__host__ => only callable by host
//__device__ => only callable by device
//__global__ 0 => only callable by host
__global__ void mat_vec_mul(float *A, float *x, florat *c, int N){
// blockIdx ,blockDim, threadIdx are provided by cuda en... |
86c6cb261508d22924b4826b4d5c142f3003eca6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <THH/THHAtomics.cuh>
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
i += blockDim.x * gridDim.x)
#define THREADS... | 86c6cb261508d22924b4826b4d5c142f3003eca6.cu | #include <ATen/ATen.h>
#include <THC/THCAtomics.cuh>
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
i += blockDim.x * gridDim.x)
#define THREADS_PER_BLOCK 1024
inline int GET_BLOCKS(const int N) {
int optimal_block_num = (N + THR... |
42e0dacc56aa9cc780432415ea3f72f7bf8a43c5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Author Oleksandr Borysov
* Task2
*/
#include <stdio.h>
#include <stdlib.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include <math.h>
#include <time.h>
#include <mpi.h>
#define MAX 32767
#define PLOT_... | 42e0dacc56aa9cc780432415ea3f72f7bf8a43c5.cu | /*
* Author Oleksandr Borysov
* Task2
*/
#include <stdio.h>
#include <stdlib.h>
#include <curand.h>
#include <curand_kernel.h>
#include <math.h>
#include <time.h>
#include <mpi.h>
#define MAX 32767
#define PLOT_DATA_FILE "plot_data2.txt"
__global__ void getCounts(unsigned long* result, unsigned long* steps, unsigne... |
4e917a1dc8a9681742d25f2cda0bf869548ea154.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cstdio>
#include <chrono>
typedef std::chrono::high_resolution_clock Clock;
#define ITER 65535
// CPU version of the vector add function
void vector_add_cpu(int... | 4e917a1dc8a9681742d25f2cda0bf869548ea154.cu | #include "cuda_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cstdio>
#include <chrono>
typedef std::chrono::high_resolution_clock Clock;
#define ITER 65535
// CPU version of the vector add function
void vector_add_cpu(int *a, int *b, int *c, int n) {
int i;
// Add the vecto... |
c12341f401346646b6bad5312334995e72530093.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... | c12341f401346646b6bad5312334995e72530093.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 )... |
999871803e5b34221f6896ee06689f255aaf0547.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... | 999871803e5b34221f6896ee06689f255aaf0547.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... |
357849ee3ca0c6ee7e80f0d86aa74ac421b7e45f.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... | 357849ee3ca0c6ee7e80f0d86aa74ac421b7e45f.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 ... |
e2fb829179d14dea2dc7532e5c2f4f1962f58d17.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void _setPrecisionKernel(float* data, size_t size, int* precision)
{
unsigned int idx = blockDim.x * blockIdx.x + threadIdx.x;
if (idx >= size) return;
int prec = precision[idx];
int mul = 1;
while(p... | e2fb829179d14dea2dc7532e5c2f4f1962f58d17.cu | #include "includes.h"
__global__ void _setPrecisionKernel(float* data, size_t size, int* precision)
{
unsigned int idx = blockDim.x * blockIdx.x + threadIdx.x;
if (idx >= size) return;
int prec = precision[idx];
int mul = 1;
while(prec--) mul *= 10;
data[idx] = (float)(int)(data[idx]*mul);
data[idx] /= mul;
} |
32fe114267a48273f74243d809c6afe1c6f07717.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
**************************************************************************
*/
#include "Common.h"
#define SCALEOUTPUT
#define GETLIMITS
#define SCALE
#define OUTPUT
//include Kernels
#include "laplacian_kernel.cu"
void W... | 32fe114267a48273f74243d809c6afe1c6f07717.cu | /**
**************************************************************************
*/
#include "Common.h"
#define SCALEOUTPUT
#define GETLIMITS
#define SCALE
#define OUTPUT
//include Kernels
#include "laplacian_kernel.cu"
void WrapperCUDA_pixME(byte *ImgSrc, byte *ImgDst, int Stride, ROI Size)
{
//allocate device... |
2a96d5c137ac050b64dffac3cb1ab1cda8b573fb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath>
#include "matvec.h"
#include "struct.h"
#include "constants.h"
__global__ void frameNmlKernel(double *d_nmlMat, double *d_lmkMat, int *d_nmlVtxMat, int lmkNum, int elmNum)
{
int elmIdx = blockIdx.x * blockDim.x + ... | 2a96d5c137ac050b64dffac3cb1ab1cda8b573fb.cu | #include <cmath>
#include "matvec.h"
#include "struct.h"
#include "constants.h"
__global__ void frameNmlKernel(double *d_nmlMat, double *d_lmkMat, int *d_nmlVtxMat, int lmkNum, int elmNum)
{
int elmIdx = blockIdx.x * blockDim.x + threadIdx.x;
if ( elmIdx < elmNum )
{
vector nmlSumVec = {0.0, 0.0, 0.0};
for ( i... |
8e0658a508b4734b8a85f6f9c2f61c900a790ce9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define BLOCK_SIZE 512 //@@ You can change this
#define wbCheck(stmt) do { \
hipError_t err = stmt; \
if (err != hipSuccess) { \
... | 8e0658a508b4734b8a85f6f9c2f61c900a790ce9.cu |
#define BLOCK_SIZE 512 //@@ You can change this
#define wbCheck(stmt) do { \
cudaError_t err = stmt; \
if (err != cudaSuccess) { \
wbLog(ERROR, "Failed to run stmt ", #stmt); \
return -1; ... |
c84900e08cb596edbe573974eb7f822df6d15022.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 "callOperation.hip"
#include<chrono>
#include<iostream>
using nam... | c84900e08cb596edbe573974eb7f822df6d15022.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 "callOperation.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24... |
09cfa6f9d9681213d8b12f43f152e03461a47ca0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 09cfa6f9d9681213d8b12f43f152e03461a47ca0.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
b76979751061db69a676bb516247426f2d01c6ff.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | b76979751061db69a676bb516247426f2d01c6ff.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
4556b6e756908b068ff03136d8dc6c10e8c24d1a.hip | // !!! This is a file automatically generated by hipify!!!
#include <opencv2/cudafeatures2d.hpp>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "labeling_algorithms.h"
#include "register.h"
// Label Equivalence con ottimizzazioni introdotte da Kalentev (OLE stand for Optimized Label Equi... | 4556b6e756908b068ff03136d8dc6c10e8c24d1a.cu | #include <opencv2/cudafeatures2d.hpp>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "labeling_algorithms.h"
#include "register.h"
// Label Equivalence con ottimizzazioni introdotte da Kalentev (OLE stand for Optimized Label Equivalence or equivalently for Oleksander (Kalentev) Label Equiva... |
78b94eed51be46d4e942516cb7bc3c473c7b0e7d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define BLOCK_SIZE 256
#define STR_SIZE 256
#define DEVICE 0
#define HALO \
1 // halo ... | 78b94eed51be46d4e942516cb7bc3c473c7b0e7d.cu | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define BLOCK_SIZE 256
#define STR_SIZE 256
#define DEVICE 0
#define HALO \
1 // halo width along one direction when advancing to the next iteration
#define BENCH_PRINT
voi... |
8cdb80933164a9fb5d93e61f4b02676641b3369b.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2018 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:... | 8cdb80933164a9fb5d93e61f4b02676641b3369b.cu | // Copyright (c) 2018 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... |
43eaea7bc3aa01112b6688f204b57625c7272e84.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "book.h"
#define UF 8
__global__ void orcu_kernel6(int n, int orcu_var3, double a1, double a2, double* y, double* x1, double* x2) {
int tid=blockIdx.x*blockDim.x+threadIdx.x+orcu_var3;
int k=(n/UF);
if (tid<=orcu_va... | 43eaea7bc3aa01112b6688f204b57625c7272e84.cu | #include "book.h"
#define UF 8
__global__ void orcu_kernel6(int n, int orcu_var3, double a1, double a2, double* y, double* x1, double* x2) {
int tid=blockIdx.x*blockDim.x+threadIdx.x+orcu_var3;
int k=(n/UF);
if (tid<=orcu_var3+k-1) {
{
y[tid]=y[tid]+a1*x1[tid]+a2*x2[tid];
int index = tid+k;
... |
9843af0b118079002aab91e2fa67357b46946a7d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "CudaStuff.cuh"
//#include "AllModels.cu"
#include "AllModels_hip.cuh"
#define ILP16
__constant__ MYFTYPE cCm[NSEG];
__constant__ MYSECONDFTYPE cE[NSEG];
__constant__ MYSECONDFTYPE cF[NSEG];
__constant__ MYDTYPE cFIdxs[NSEG... | 9843af0b118079002aab91e2fa67357b46946a7d.cu | #include "CudaStuff.cuh"
//#include "AllModels.cu"
#include "AllModels.cuh"
#define ILP16
__constant__ MYFTYPE cCm[NSEG];
__constant__ MYSECONDFTYPE cE[NSEG];
__constant__ MYSECONDFTYPE cF[NSEG];
__constant__ MYDTYPE cFIdxs[NSEG*LOG_N_DEPTH];
__constant__ MYDTYPE cKs[NSEG];
__constant__ MYDTYPE cSegToComp[NSEG];
__cons... |
a05b92eb75b6d5bac81dcd848b423b0ec5a214be.hip | // !!! This is a file automatically generated by hipify!!!
#define WIN32
#include <stdio.h>
#include <assert.h>
// CUDA runtime
#include <hip/hip_runtime.h>
// Helper functions and utilities to work with CUDA
#include <helper_functions.h>
/**
* Matrix multiplication (CUDA Kernel) on the device: C = A * B
* wA is A... | a05b92eb75b6d5bac81dcd848b423b0ec5a214be.cu | #define WIN32
#include <stdio.h>
#include <assert.h>
// CUDA runtime
#include <cuda_runtime.h>
// Helper functions and utilities to work with CUDA
#include <helper_functions.h>
/**
* Matrix multiplication (CUDA Kernel) on the device: C = A * B
* wA is A's width and wB is B's width
*/
template <int BLOCK_SIZE> __g... |
77719f826d884f4b72d30987b4d47f2327590020.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
// Copyright 2009, Andrew Corrigan, acorriga@gmu.edu
// This code is from the AIAA-2009-4001 paper
// #include <cutil.h>
#inclu... | 77719f826d884f4b72d30987b4d47f2327590020.cu | #include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
#include<curd_lib_host.h>
// Copyright 2009, Andrew Corrigan, acorriga@gmu.edu
// This code is from the AIAA-2009-4001 paper
// #include <cutil.h>
#include <helper_cuda.h>
#include <helper_timer.h>
#include <iostream>
#include <fstream>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.