Datasets:

filename
stringlengths
40
40
cuda_source
stringlengths
11
9.01M
cuda_host
stringlengths
1.53k
6.65M
cuda_device
stringlengths
17
97.4M
hip_source
stringlengths
29
9.01M
hip_host
stringlengths
407
13.3M
hip_device
stringlengths
650
11.7M
b3a15a78d50007e98c8062c16758b9532d1808fd
#include "includes.h" __global__ void vecProductKernel(float *d_z, const float *d_x, const float *d_y, unsigned int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < N) { d_z[idx] = d_x[idx] * d_y[idx]; } }
.file "tmpxft_0034da48_00000000-6_vecProductKernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL2...
code for sm_89 Function : _Z16vecProductKernelPfPKfS1_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void vecProductKernel(float *d_z, const float *d_x, const float *d_y, unsigned int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < N) { d_z[idx] = d_x[idx] * d_y[idx]; } }
.text .file "vecProductKernel.hip" .globl _Z31__device_stub__vecProductKernelPfPKfS1_j # -- Begin function _Z31__device_stub__vecProductKernelPfPKfS1_j .type _Z31__device_stub__vecProductKernelPfPKfS1_j,@function _Z31__device_stub__vecProductKernelPfPKfS1_j: # @_Z31__device_stub__vecProductKernelPfPKfS1_j .cfi_sta...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16vecProductKernelPfPKfS1_j ; -- Begin function _Z16vecProductKernelPfPKfS1_j .globl _Z16vecProductKernelPfPKfS1_j .p2align 8 .type _Z16vecProductKernelPfPKfS1_j,@function _Z16vecProductKernelPfPKfS1_j: ; @_Z16vecProductKernelPfPKfS1_j ; %bb....
911ae2b5f984789fb3d2dd2176af9455423191b9
#include "includes.h" __global__ void STREAM_Triad_double(double *a, double *b, double *c, double scalar, size_t len) { size_t idx = threadIdx.x + blockIdx.x * blockDim.x; while (idx < len) { c[idx] = a[idx]+scalar*b[idx]; idx += blockDim.x * gridDim.x; } }
.file "tmpxft_0023237f_00000000-6_STREAM_Triad_double.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _...
code for sm_89 Function : _Z19STREAM_Triad_doublePdS_S_dm .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void STREAM_Triad_double(double *a, double *b, double *c, double scalar, size_t len) { size_t idx = threadIdx.x + blockIdx.x * blockDim.x; while (idx < len) { c[idx] = a[idx]+scalar*b[idx]; idx += blockDim.x * gridDim.x; } }
.text .file "STREAM_Triad_double.hip" .globl _Z34__device_stub__STREAM_Triad_doublePdS_S_dm # -- Begin function _Z34__device_stub__STREAM_Triad_doublePdS_S_dm .type _Z34__device_stub__STREAM_Triad_doublePdS_S_dm,@function _Z34__device_stub__STREAM_Triad_doublePdS_S_dm: # @_Z34__device_stub__STREAM_Triad_doublePdS_S...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19STREAM_Triad_doublePdS_S_dm ; -- Begin function _Z19STREAM_Triad_doublePdS_S_dm .globl _Z19STREAM_Triad_doublePdS_S_dm .p2align 8 .type _Z19STREAM_Triad_doublePdS_S_dm,@function _Z19STREAM_Triad_doublePdS_S_dm: ; @_Z19STREAM_Triad_doublePdS_S...
837521e6a806e32fd987356451e54b90b08cc7e9
#include <iostream> #include "sys/time.h" using namespace std; double timeInSeconds (timeval& starttime, timeval& stopstime) { return 1e-6*(1e6*(stopstime.tv_sec - starttime.tv_sec) + (stopstime.tv_usec - starttime.tv_usec)); } __device__ double* dev_vector1 = 0; __device__ double* dev_vector2 = 0; __device__ dou...
.file "tmpxft_00306950_00000000-6_ex1.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3639: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpr...
code for sm_89 Function : _Z18device_vector_multv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe4000...
#include <hip/hip_runtime.h> #include <iostream> #include "sys/time.h" using namespace std; double timeInSeconds (timeval& starttime, timeval& stopstime) { return 1e-6*(1e6*(stopstime.tv_sec - starttime.tv_sec) + (stopstime.tv_usec - starttime.tv_usec)); } __device__ double* dev_vector1 = 0; __device__ double* d...
.text .file "ex1.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18device_vector_multv ; -- Begin function _Z18device_vector_multv .globl _Z18device_vector_multv .p2align 8 .type _Z18device_vector_multv,@function _Z18device_vector_multv: ; @_Z18device_vector_multv ; %bb.0: s_endpgm .section .rodata...
ff0fbb2295732037aa8a3a9db2fe5cd1aff64643
/****************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *****************************************************************...
.file "tmpxft_0027dfad_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z7mysgemmiiiPKfS0_Pf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/****************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *****************************************************************...
.text .file "kernel.hip" .globl _Z22__device_stub__mysgemmiiiPKfS0_Pf # -- Begin function _Z22__device_stub__mysgemmiiiPKfS0_Pf .type _Z22__device_stub__mysgemmiiiPKfS0_Pf,@function _Z22__device_stub__mysgemmiiiPKfS0_Pf: # @_Z22__device_stub__mysgemmiiiPKfS0_Pf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7mysgemmiiiPKfS0_Pf ; -- Begin function _Z7mysgemmiiiPKfS0_Pf .globl _Z7mysgemmiiiPKfS0_Pf .p2align 8 .type _Z7mysgemmiiiPKfS0_Pf,@function _Z7mysgemmiiiPKfS0_Pf: ; @_Z7mysgemmiiiPKfS0_Pf ; %bb.0: s_clause 0x2 s_load_b64 s[2:3], s...
6ad19a04ecd9335b5f4fb7ef26924dd9c65416e3
///* // * LinearSysSolver.cpp // * // * Created on: Jul 8, 2013 // * Author: adm85 // */ // //#include <vector> //#include <iostream> //#include <time.h> //#include "LinearSysSolver.h" //#include "cublas_v2.h" //#include "cula.h" // // //LinearSysSolver::LinearSysSolver() //{ // // TODO Auto-generated constructor...
.file "tmpxft_0031dd2a_00000000-6_LinearSysSolver.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26...
code for sm_89
#include <hip/hip_runtime.h> ///* // * LinearSysSolver.cpp // * // * Created on: Jul 8, 2013 // * Author: adm85 // */ // //#include <vector> //#include <iostream> //#include <time.h> //#include "LinearSysSolver.h" //#include "cublas_v2.h" //#include "cula.h" // // //LinearSysSolver::LinearSysSolver() //{ // // T...
.text .file "LinearSysSolver.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c4...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
6e60409b809a9b3d95af04fb128c548d6f031439
// Each thread calculates fitness for one individual // Result: vector of fitness extern "C" __global__ void fitness_kernel(int populationCnt, int *population, int pointsCnt, float *pointsX, float *pointsY, float *result) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < populationCnt) { ...
.file "tmpxft_003203be_00000000-6_GPU_fitness_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _Z...
code for sm_89 Function : fitness_kernel .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> // Each thread calculates fitness for one individual // Result: vector of fitness extern "C" __global__ void fitness_kernel(int populationCnt, int *population, int pointsCnt, float *pointsX, float *pointsY, float *result) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i...
.text .file "GPU_fitness_kernel.hip" .globl __device_stub__fitness_kernel # -- Begin function __device_stub__fitness_kernel .type __device_stub__fitness_kernel,@function __device_stub__fitness_kernel: # @__device_stub__fitness_kernel .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r1...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected fitness_kernel ; -- Begin function fitness_kernel .globl fitness_kernel .p2align 8 .type fitness_kernel,@function fitness_kernel: ; @fitness_kernel ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x3c s_load_b32 s3, s[0:...
4fb84d8d748d067ce16f552a25fc264ef479af55
#include "cuda_runtime.h" #include <cstdio> #include "time.h" constexpr int segment_size = 1024; constexpr int threads = 512; __device__ char *pool; void __global__ alloc(int **pointers) { auto index = blockIdx.x * blockDim.x + threadIdx.x; // pointers[index] = (int *)malloc(segment_size); pointers[index] = (in...
.file "tmpxft_00216443_00000000-6_kernel_malloc.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__...
code for sm_89 Function : _Z4freePPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include "hip/hip_runtime.h" #include <cstdio> #include "time.h" constexpr int segment_size = 1024; constexpr int threads = 512; __device__ char *pool; void __global__ alloc(int **pointers) { auto index = blockIdx.x * blockDim.x + threadIdx.x; // pointers[index] = (int *)malloc(segment_size); pointers[index] = ...
.text .file "kernel_malloc.hip" .globl _Z20__device_stub__allocPPi # -- Begin function _Z20__device_stub__allocPPi .type _Z20__device_stub__allocPPi,@function _Z20__device_stub__allocPPi: # @_Z20__device_stub__allocPPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5allocPPi ; -- Begin function _Z5allocPPi .globl _Z5allocPPi .p2align 8 .type _Z5allocPPi,@function _Z5allocPPi: ; @_Z5allocPPi ; %bb.0: s_load_b32 s2, s[0:1], 0x14 s_mov_b32 s4, exec_lo s_mov_b32 s3, exec_lo ...
358cbb1e423d31571cadb665a77ecc827a29f38b
#include <algorithm> #include <iostream> #include <vector> std::vector<double> add(std::vector<double> inarr1, std::vector<double> inarr2); void test_integration() { constexpr size_t arr_size = 2 << 24; std::cout << "Initializing test arrays...\n"; std::vector<double> arr1(arr_size); std::vector<doub...
.file "tmpxft_00394f43_00000000-6_test_add_integ.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4266: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89
#include <hip/hip_runtime.h> #include <algorithm> #include <iostream> #include <vector> std::vector<double> add(std::vector<double> inarr1, std::vector<double> inarr2); void test_integration() { constexpr size_t arr_size = 2 << 24; std::cout << "Initializing test arrays...\n"; std::vector<double> arr1(a...
.text .file "test_add_integ.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 # -- Begi...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
5004448f7e4cb8218f1846ad45e3e67a5df0639a
#include "Output_Layer_GPU_Kernels.cuh" __constant__ float anchors_416[10] = { 1.08, 1.19, 3.42, 4.41, 6.63, 11.38, 9.42, 5.11, 16.62, 10.52 }; __device__ float Sigmoid(float x) { float expValue = exp((double)-x); float result = 1 / (1 + expValue); return result; } __global__ void XY_BoundingBox_Coordinates...
.file "tmpxft_0021bb74_00000000-6_Output_Layer_GPU_Kernels.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2014: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2014: .s...
code for sm_89 Function : _Z14Softmax_KernelPfiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#pragma once #include<hip/hip_runtime.h> #include <math.h> __device__ const int downsampleFactor = 32; __device__ const int boundingBoxesPerGridCell = 5; __device__ const float FLOAT_MIN = 1.17549435e-38; //__global__ void BoundingBox_ConfidenceScores_Transform_Kernel(float* input, int inputHeight, int inputWidth); ...
.text .file "Output_Layer_GPU_Kernels.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c9...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
e3a34ffb3f88017edee47d15f3c3892ccf7a7e11
#include <stdio.h> #include <cuda_runtime.h> #include <assert.h> int main(int argc, char **argv){ float *a_h, *b_h; // Host data float *a_d, *b_d; // Device data int N = 14, nBytes, i; printf("Start allocating\n"); nBytes = N * sizeof(float); printf("Allocating in Host\n"); a_h = (flo...
.file "tmpxft_002f4d06_00000000-6_lab7.1.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89
#include <stdio.h> #include <hip/hip_runtime.h> #include <assert.h> int main(int argc, char **argv){ float *a_h, *b_h; // Host data float *a_d, *b_d; // Device data int N = 14, nBytes, i; printf("Start allocating\n"); nBytes = N * sizeof(float); printf("Allocating in Host\n"); a_h = (...
.text .file "lab7.1.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r14 .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 subq $24, %rsp .cfi_def_cfa_offset 48 .cfi_offset %rbx, -2...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
01e83c7c106a3fa6e58f3c74d40463a6b1e602e4
#include <cuda.h> #define KERNEL_SIZE 3 #define BLOCK_SIZE 512 typedef signed int pixel_channel; typedef unsigned long resolution; __constant__ pixel_channel kernel_cuda[KERNEL_SIZE * KERNEL_SIZE]; pixel_channel kernel_host[KERNEL_SIZE * KERNEL_SIZE] = { -1, -1, -1, -1, 9, -1, -1, -1, -1 };...
.file "tmpxft_0034e5aa_00000000-6_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z24Pixel_Shared_ConvolutionPiS_mm .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #define KERNEL_SIZE 3 #define BLOCK_SIZE 512 typedef signed int pixel_channel; typedef unsigned long resolution; __constant__ pixel_channel kernel_cuda[KERNEL_SIZE * KERNEL_SIZE]; pixel_channel kernel_host[KERNEL_SIZE * KERNEL_SIZE] = { -1, -1, -1, -1, 9, -1, -1...
.text .file "cuda.hip" .globl _Z39__device_stub__Pixel_Shared_ConvolutionPiS_mm # -- Begin function _Z39__device_stub__Pixel_Shared_ConvolutionPiS_mm .type _Z39__device_stub__Pixel_Shared_ConvolutionPiS_mm,@function _Z39__device_stub__Pixel_Shared_ConvolutionPiS_mm: # @_Z39__device_stub__Pixel_Shared_ConvolutionPiS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24Pixel_Shared_ConvolutionPiS_mm ; -- Begin function _Z24Pixel_Shared_ConvolutionPiS_mm .globl _Z24Pixel_Shared_ConvolutionPiS_mm .p2align 8 .type _Z24Pixel_Shared_ConvolutionPiS_mm,@function _Z24Pixel_Shared_ConvolutionPiS_mm: ; @_Z24Pixel_Shared...
0da5583b1442353677899c3030cad8eacf27e9a2
#include <stdio.h> __global__ void add(int a, int b, int *c) { *c = a + b; } int main( void ) { int c; int *dev_c; //Device Memory allocations cudaError_t err = cudaMalloc((void**)&dev_c, sizeof(&dev_c)); if(err != cudaSuccess) { printf("The error is %s\n", cudaGetErrorString(err)); ...
.file "tmpxft_002d1761_00000000-6_basicKernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cu...
code for sm_89 Function : _Z3addiiPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void add(int a, int b, int *c) { *c = a + b; } int main( void ) { int c; int *dev_c; //Device Memory allocations hipError_t err = hipMalloc((void**)&dev_c, sizeof(&dev_c)); if(err != hipSuccess) { printf("The error is %s\n",...
.text .file "basicKernel.hip" .globl _Z18__device_stub__addiiPi # -- Begin function _Z18__device_stub__addiiPi .type _Z18__device_stub__addiiPi,@function _Z18__device_stub__addiiPi: # @_Z18__device_stub__addiiPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addiiPi ; -- Begin function _Z3addiiPi .globl _Z3addiiPi .p2align 8 .type _Z3addiiPi,@function _Z3addiiPi: ; @_Z3addiiPi ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 s_waitcnt lgkmcnt(0) s_add_i32 s0, s1, s0 s...
8ad596840ddec859583afb1c73069a04fdd693c6
#include <iostream> #include <cuda.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <memory> /*CUDAлȡGPU豸*/ int main(void) { int device_count = 0; cudaGetDeviceCount(&device_count); //ú֧CUDAGPU豸ĸ if (device_count ==0) { printf("There are no available device(s) that support CUDA\n"); ...
.file "tmpxft_002b2ccd_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4282: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89
#include <iostream> #include <hip/hip_runtime.h> #include <memory> /*CUDAлȡGPU豸*/ int main(void) { int device_count = 0; hipGetDeviceCount(&device_count); //ú֧CUDAGPU豸ĸ if (device_count ==0) { printf("There are no available device(s) that support CUDA\n"); } else { printf("Detected %d CUDA Capable devic...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
67f59b1bb06d3e2996b22159cd5e099a6616b412
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <time.h> #define AND 0 #define OR 1 #define NAND 2 #define NOR 3 #define XOR 4 #define XNOR 5 __global__ void computeLogicGates(char* d_input, char* d_output, int size) { // calculate the index of the t...
.file "tmpxft_00246706_00000000-6_parallelal_unified.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _Z...
code for sm_89 Function : _Z17computeLogicGatesPcS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <time.h> #define AND 0 #define OR 1 #define NAND 2 #define NOR 3 #define XOR 4 #define XNOR 5 __global__ void computeLogicGates(char* d_input, char* d_output, int size) { // calculate the index of the thread int index = threadIdx.x ...
.text .file "parallelal_unified.hip" .globl _Z32__device_stub__computeLogicGatesPcS_i # -- Begin function _Z32__device_stub__computeLogicGatesPcS_i .type _Z32__device_stub__computeLogicGatesPcS_i,@function _Z32__device_stub__computeLogicGatesPcS_i: # @_Z32__device_stub__computeLogicGatesPcS_i .cfi_startproc # %bb....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17computeLogicGatesPcS_i ; -- Begin function _Z17computeLogicGatesPcS_i .globl _Z17computeLogicGatesPcS_i .p2align 8 .type _Z17computeLogicGatesPcS_i,@function _Z17computeLogicGatesPcS_i: ; @_Z17computeLogicGatesPcS_i ; %bb.0: s_clause 0x...
2b32e1b6e373a5b79f3ed49d14eacaed2746b0ba
#include "Matrix.cuh" #include <cstring> #include <fstream> #include <ctime> #include <device_functions.h> #ifdef __CUDACC__ #define cuda_SYNCTHREADS() __syncthreads() #else #define cuda_SYNCTHREADS() #endif #define Zero ZeroCPU #define PRINT_LOG false //#define TARGET_RESIDUE ((double)1.0e-9); const double TARGET_R...
.file "tmpxft_002e372c_00000000-6_Matrix.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3830: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3830: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z21additiveInverseKerneliPdS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#pragma once #define BLOCK_SIZE 256 #include "hip/hip_runtime.h" #include <stdio.h> #include <string> class Matrix { private: unsigned int rows; unsigned int cols; double* mat; public: //getters unsigned int getRows() const; unsigned int getCols() const; //constructors Matrix(int cols, int rows, double* ma...
.text .file "Matrix.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
6ce7a84616a9c5fe18695d907f7d72f235059315
#include "includes.h" __global__ void multiply_by_itself_training_util_kernel( const float4 * __restrict input_buf, float4 * __restrict output_buf, int elem_count) { int elem_id = blockDim.x * blockIdx.x + threadIdx.x; if (elem_id < elem_count) { float4 val = input_buf[elem_id]; val.x *= val.x; val.y *= val.y; val.z *=...
.file "tmpxft_00255382_00000000-6_multiply_by_itself_training_util_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpro...
code for sm_89 Function : _Z39multiply_by_itself_training_util_kernelPK6float4PS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void multiply_by_itself_training_util_kernel( const float4 * __restrict input_buf, float4 * __restrict output_buf, int elem_count) { int elem_id = blockDim.x * blockIdx.x + threadIdx.x; if (elem_id < elem_count) { float4 val = input_buf[elem_id]; val.x *= v...
.text .file "multiply_by_itself_training_util_kernel.hip" .globl _Z54__device_stub__multiply_by_itself_training_util_kernelPK15HIP_vector_typeIfLj4EEPS0_i # -- Begin function _Z54__device_stub__multiply_by_itself_training_util_kernelPK15HIP_vector_typeIfLj4EEPS0_i .type _Z54__device_stub__multiply_by_itself_trainin...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z39multiply_by_itself_training_util_kernelPK15HIP_vector_typeIfLj4EEPS0_i ; -- Begin function _Z39multiply_by_itself_training_util_kernelPK15HIP_vector_typeIfLj4EEPS0_i .globl _Z39multiply_by_itself_training_util_kernelPK15HIP_vector_typeIfLj4EEPS0_i .p...
2455855cabbebd31ce48cc87118105da6e809f6d
#include <algorithm> #include <iostream> #include <vector> typedef unsigned long long data_t; static inline void check(cudaError_t err, const char* context) { if (err != cudaSuccess) { std::cerr << "CUDA error: " << context << ": " << cudaGetErrorString(err) << std::endl; std::exit(...
.file "tmpxft_0025cd0c_00000000-6_so_basic.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4258: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_...
code for sm_89 Function : _Z10mergeblockPjij .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <algorithm> #include <iostream> #include <vector> typedef unsigned long long data_t; static inline void check(hipError_t err, const char* context) { if (err != hipSuccess) { std::cerr << "CUDA error: " << context << ": " << hipGetErrorString(err) << st...
.text .file "so_basic.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z22__device_stub__getMaskPyPjijyj # -- Begin function _Z22__device_stub__getMaskPyPjijyj ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7getMaskPyPjijyj ; -- Begin function _Z7getMaskPyPjijyj .globl _Z7getMaskPyPjijyj .p2align 8 .type _Z7getMaskPyPjijyj,@function _Z7getMaskPyPjijyj: ; @_Z7getMaskPyPjijyj ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x34 s_l...
fdd2e14bfb8b8cf7489a6e661bc35ebbad935291
#include <iostream> using namespace std; #define CUDA_CALL(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true) { if (code != cudaSuccess) { fprintf(stderr,"GPU assert: %s %s %d\n", cudaGetErrorString(code), file, line); ...
.file "tmpxft_003373a3_00000000-6_square.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3639: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z6squarePfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> using namespace std; #define CUDA_CALL(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_t code, const char *file, int line, bool abort=true) { if (code != hipSuccess) { fprintf(stderr,"GPU assert: %s %s %d\n", hipGetErrorString...
.text .file "square.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__squarePfS_ # -- Begin function _Z21__device_stub__squarePfS_ .type _Z21...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6squarePfS_ ; -- Begin function _Z6squarePfS_ .globl _Z6squarePfS_ .p2align 8 .type _Z6squarePfS_,@function _Z6squarePfS_: ; @_Z6squarePfS_ ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 v_lshlrev_b32_e32 v0, 2, v0 s_wa...
7d1053132fc2e381a577a622dab6a715b68be6d1
extern "C" __global__ void cuAdd(int n, float *a, float *b, float *result) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i<n) { result[i] = a[i] + b[i]; } } extern "C" __global__ void cuMult(int n, float *a, float *b, float *result) { int i = blockIdx.x * blockDim.x + threadIdx.x; ...
.file "tmpxft_0033db2d_00000000-6_RandomVariableSimpleCudaKernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE201...
code for sm_89 Function : cuExp .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> extern "C" __global__ void cuAdd(int n, float *a, float *b, float *result) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i<n) { result[i] = a[i] + b[i]; } } extern "C" __global__ void cuMult(int n, float *a, float *b, float *result) { int i = blockIdx.x...
.text .file "RandomVariableSimpleCudaKernel.hip" .globl __device_stub__cuAdd # -- Begin function __device_stub__cuAdd .type __device_stub__cuAdd,@function __device_stub__cuAdd: # @__device_stub__cuAdd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected cuAdd ; -- Begin function cuAdd .globl cuAdd .p2align 8 .type cuAdd,@function cuAdd: ; @cuAdd ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], 0x0 s_waitcnt lgkmcnt(0) s_and...
1d690ffbdd9dcc58d659bdc0dedc776609c023d0
#include<bits/stdc++.h> using namespace std; __global__ void vec_add(int N, int *A, int *B, int *C){ int i = threadIdx.x + blockIdx.x * blockDim.x; // assert( i<N ); if(i < N) C[i] = A[i] + B[i]; } int main(int argc, char *argv[]){ srand(0); int N = 10000, block_size = 256; if(argc>1) N = stoi(ar...
.file "tmpxft_00222820_00000000-6_cuda_vec_add.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB10828: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z7vec_addiPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include<bits/stdc++.h> using namespace std; __global__ void vec_add(int N, int *A, int *B, int *C){ int i = threadIdx.x + blockIdx.x * blockDim.x; // assert( i<N ); if(i < N) C[i] = A[i] + B[i]; } int main(int argc, char *argv[]){ srand(0); int N = 10000, block_size = 2...
.text .file "cuda_vec_add.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z22__device_stub__vec_addiPiS_S_ # -- Begin function _Z22__device_stub__vec_addiPiS_S_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7vec_addiPiS_S_ ; -- Begin function _Z7vec_addiPiS_S_ .globl _Z7vec_addiPiS_S_ .p2align 8 .type _Z7vec_addiPiS_S_,@function _Z7vec_addiPiS_S_: ; @_Z7vec_addiPiS_S_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_...
b7ca616d06fae4ea1784c7c8d8ebfacef43139eb
/*用gpu实现2个矩阵之间的乘法*/ #include<iostream> #include<stdlib.h> #include<sys/time.h> #include<math.h> #include"cuda_runtime.h" using namespace std; #define cols 1024 #define rows 1024 __global__ void multiply(float**Ad,float**Bd,float**Cd) { int x = blockDim.x*blockIdx.x+threadIdx.x; int y = blockDim.y*blockIdx.y+thread...
.file "tmpxft_0039e86d_00000000-6_multiply.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_...
code for sm_89 Function : _Z8multiplyPPfS0_S0_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/*用gpu实现2个矩阵之间的乘法*/ #include<iostream> #include<stdlib.h> #include<sys/time.h> #include<math.h> #include"hip/hip_runtime.h" using namespace std; #define cols 1024 #define rows 1024 __global__ void multiply(float**Ad,float**Bd,float**Cd) { int x = blockDim.x*blockIdx.x+threadIdx.x; int y = blockDim.y*blockIdx.y+thr...
.text .file "multiply.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z23__device_stub__multiplyPPfS0_S0_ # -- Begin function _Z23__device_stub__multiplyPPfS0_S...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8multiplyPPfS0_S0_ ; -- Begin function _Z8multiplyPPfS0_S0_ .globl _Z8multiplyPPfS0_S0_ .p2align 8 .type _Z8multiplyPPfS0_S0_,@function _Z8multiplyPPfS0_S0_: ; @_Z8multiplyPPfS0_S0_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 v_and_b32...
786f40682a4a82ef3bd721df175ff93db6e35798
#include <stdio.h> __global__ void firstParallel() { printf("This is running in parallel.\n"); } int main() { firstParallel<<<5, 5>>>(); cudaDeviceSynchronize(); }
.file "tmpxft_0034e52f_00000000-6_basic-parallel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26_...
code for sm_89 Function : _Z13firstParallelv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void firstParallel() { printf("This is running in parallel.\n"); } int main() { firstParallel<<<5, 5>>>(); hipDeviceSynchronize(); }
.text .file "basic-parallel.hip" .globl _Z28__device_stub__firstParallelv # -- Begin function _Z28__device_stub__firstParallelv .type _Z28__device_stub__firstParallelv,@function _Z28__device_stub__firstParallelv: # @_Z28__device_stub__firstParallelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13firstParallelv ; -- Begin function _Z13firstParallelv .globl _Z13firstParallelv .p2align 8 .type _Z13firstParallelv,@function _Z13firstParallelv: ; @_Z13firstParallelv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u3...
ececdf23dd4f89179ee81882c57c9c0bfbf775c7
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void conv2(float *A, float *kernel,int inputSize, int depth, int kernelSize , int stride, int pad, float *B, int outputSize) { // 计算元素output(i,j)的值 一次卷积运算 ...
.file "tmpxft_0023dc1d_00000000-6_p1.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnregis...
code for sm_89 Function : _Z5conv2PfS_iiiiiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include "hip/hip_runtime.h" #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void conv2(float *A, float *kernel,int inputSize, int depth, int kernelSize , int stride, int pad, float *B, int outputSize) { // 计算元素output(i,j)的值 一次卷积运算 int i = threadIdx.x + blockDim.x ...
.text .file "p1.hip" .globl _Z20__device_stub__conv2PfS_iiiiiS_i # -- Begin function _Z20__device_stub__conv2PfS_iiiiiS_i .type _Z20__device_stub__conv2PfS_iiiiiS_i,@function _Z20__device_stub__conv2PfS_iiiiiS_i: # @_Z20__device_stub__conv2PfS_iiiiiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5conv2PfS_iiiiiS_i ; -- Begin function _Z5conv2PfS_iiiiiS_i .globl _Z5conv2PfS_iiiiiS_i .p2align 8 .type _Z5conv2PfS_iiiiiS_i,@function _Z5conv2PfS_iiiiiS_i: ; @_Z5conv2PfS_iiiiiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
1a4d27ac932bf44ca1385b9ca294e1a6d6082c96
#include "includes.h" __global__ void __stratifycounts(double *strata, int n, double *a, unsigned int *bi) { __shared__ unsigned int ic[SNDVALS][SNDGRPS]; __shared__ double ss[SNDVALS]; int istart = (int)(((long long)blockIdx.x) * n / gridDim.x); int iend = (int)(((long long)(blockIdx.x+1)) * n / gridDim.x); int bibas...
.file "tmpxft_002fbeb4_00000000-6___stratifycounts.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL2...
code for sm_89 Function : _Z16__stratifycountsPdiS_Pj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void __stratifycounts(double *strata, int n, double *a, unsigned int *bi) { __shared__ unsigned int ic[SNDVALS][SNDGRPS]; __shared__ double ss[SNDVALS]; int istart = (int)(((long long)blockIdx.x) * n / gridDim.x); int iend = (int)(((long long)(blockIdx.x+1...
.text .file "__stratifycounts.hip" .globl _Z31__device_stub____stratifycountsPdiS_Pj # -- Begin function _Z31__device_stub____stratifycountsPdiS_Pj .type _Z31__device_stub____stratifycountsPdiS_Pj,@function _Z31__device_stub____stratifycountsPdiS_Pj: # @_Z31__device_stub____stratifycountsPdiS_Pj .cfi_startproc # %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16__stratifycountsPdiS_Pj ; -- Begin function _Z16__stratifycountsPdiS_Pj .globl _Z16__stratifycountsPdiS_Pj .p2align 8 .type _Z16__stratifycountsPdiS_Pj,@function _Z16__stratifycountsPdiS_Pj: ; @_Z16__stratifycountsPdiS_Pj ; %bb.0: s_load...
2bf9c088feb91ba8ce148a85ce4d8044f1928f49
//#include <hayai/hayai.hpp> // //#include "btree.cuh" // //#include "concurrent-xfasttrie-fixture.cu" // //using BTREE = gpu::BTree<key_type, mapped_type>; //using BTreeInsertionFixture = XTrieInsertionFixture<BTREE, Structure::BTREE>; //using BTreeGetThreadFixture = XTrieGetThreadFixture<BTREE, Structure::BTREE>; //u...
.file "tmpxft_00251c0b_00000000-6_btree.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnre...
code for sm_89
#include <hip/hip_runtime.h> //#include <hayai/hayai.hpp> // //#include "btree.cuh" // //#include "concurrent-xfasttrie-fixture.cu" // //using BTREE = gpu::BTree<key_type, mapped_type>; //using BTreeInsertionFixture = XTrieInsertionFixture<BTREE, Structure::BTREE>; //using BTreeGetThreadFixture = XTrieGetThreadFixture...
.text .file "btree.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa79...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
0ebdb4def9faa115be52bc9f6b0a739c2748f32f
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #define MAX 65535 #define imin(a,b) (a<b?a:b) const int arr_size =8; const int threadsPerBlock = 256; const int blocksPerGrid = imin(32,(arr_size +threadsPerBlock -1)/threadsPerBlock); __global__ void kernel(float*...
.file "tmpxft_0023e621_00000000-6_source.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z6kernelPfS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #define MAX 65535 #define imin(a,b) (a<b?a:b) const int arr_size =8; const int threadsPerBlock = 256; const int blocksPerGrid = imin(32,(arr_size +threadsPerBlock -1)/threadsPerBlock); __global__ void kernel(float*arrA , float* arrB, float* arrC) {...
.text .file "source.hip" .globl _Z21__device_stub__kernelPfS_S_ # -- Begin function _Z21__device_stub__kernelPfS_S_ .type _Z21__device_stub__kernelPfS_S_,@function _Z21__device_stub__kernelPfS_S_: # @_Z21__device_stub__kernelPfS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPfS_S_ ; -- Begin function _Z6kernelPfS_S_ .globl _Z6kernelPfS_S_ .p2align 8 .type _Z6kernelPfS_S_,@function _Z6kernelPfS_S_: ; @_Z6kernelPfS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1], 0x24 s_load_b128 s[4...
634b1fd283a057c00216aa10521714cdc60c6fb9
#include <stdio.h> #include <stdlib.h> #define N 5 #define BR() printf("\n") #define BRS(str) printf("%s\n",str) typedef struct { int top; int* data; int stack_size; }FIFO; void exec(); void initialize_array(int*); void print_array(int*); int main(int argc, char const *argv[]) { exec(); return 0; } // __de...
.file "tmpxft_00324f15_00000000-6_testStack.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2040: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2040: .size _ZL26__cuda...
code for sm_89 Function : _Z17kernel_test_stackPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define N 5 #define BR() printf("\n") #define BRS(str) printf("%s\n",str) typedef struct { int top; int* data; int stack_size; }FIFO; void exec(); void initialize_array(int*); void print_array(int*); int main(int argc, char const *argv[]) { ...
.text .file "testStack.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %rax .cfi_def_cfa_offset 16 callq _Z4execv xorl %eax, %eax popq %rcx .cfi_def_cfa_offset 8 retq .Lfunc_end0: .size m...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .p2align 2 ; -- Begin function __ockl_printf_append_string_n .type __ockl_printf_append_string_n,@function __ockl_printf_append_string_n: ; @__ockl_printf_append_string_n ; %bb.0: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) v_dua...
121d6a780a7a224f0cdc58a60f2d71f367dbb3ae
// nvcc -arch sm_21 -o test -run --keep --ptxas-options="-v" test.cu #include <cuda.h> #include <stdlib.h> #include <stdio.h> __global__ void transpose (int* Input, int* Output) { }
.file "tmpxft_002dccb3_00000000-6_test.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2029: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2029: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z9transposePiS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00...
// nvcc -arch sm_21 -o test -run --keep --ptxas-options="-v" test.cu #include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> __global__ void transpose (int* Input, int* Output) { }
.text .file "test.hip" .globl _Z24__device_stub__transposePiS_ # -- Begin function _Z24__device_stub__transposePiS_ .type _Z24__device_stub__transposePiS_,@function _Z24__device_stub__transposePiS_: # @_Z24__device_stub__transposePiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9transposePiS_ ; -- Begin function _Z9transposePiS_ .globl _Z9transposePiS_ .p2align 8 .type _Z9transposePiS_,@function _Z9transposePiS_: ; @_Z9transposePiS_ ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, ...
8d92e641dd48abd6e38d0a4537a26c2472770fee
#include <stdio.h> #include <math.h> #include <stdlib.h> //Note that any functions that want to be called from the kernel must be preceeded with __device__ //Function we are integrating __device__ float myFunction(float x){ return pow(x,4); } //Trapezoidal rule calculation __device__ float trapezoidal(float a, flo...
.file "tmpxft_0028c0d0_00000000-6_cuda_int.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2033: .size _ZL26__cudaU...
code for sm_89 Function : _Z6kernelPfffii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <stdlib.h> //Note that any functions that want to be called from the kernel must be preceeded with __device__ //Function we are integrating __device__ float myFunction(float x){ return pow(x,4); } //Trapezoidal rule calculation __device__ ...
.text .file "cuda_int.hip" .globl _Z21__device_stub__kernelPfffii # -- Begin function _Z21__device_stub__kernelPfffii .type _Z21__device_stub__kernelPfffii,@function _Z21__device_stub__kernelPfffii: # @_Z21__device_stub__kernelPfffii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPfffii ; -- Begin function _Z6kernelPfffii .globl _Z6kernelPfffii .p2align 8 .type _Z6kernelPfffii,@function _Z6kernelPfffii: ; @_Z6kernelPfffii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4...
e1b74eb5bc0f52d776c1fcffa6c86ef2d2106bf0
#include "cuda_runtime.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "time.h" #define A_w 50 #define A_h 50 #define B_w 32 #define B_h 32 typedef struct{ int width; int height; float * elements; }Matrix; // #define void rightKronecker1(Matrix A, Matrix B, Matrix C){ for(int c_row=0; c_...
.file "tmpxft_00314db1_00000000-6_kronecker_product_baseline.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: ...
code for sm_89
#include "hip/hip_runtime.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "time.h" #define A_w 50 #define A_h 50 #define B_w 32 #define B_h 32 typedef struct{ int width; int height; float * elements; }Matrix; // #define void rightKronecker1(Matrix A, Matrix B, Matrix C){ for(int c_row=0;...
.text .file "kronecker_product_baseline.hip" .globl _Z15rightKronecker16MatrixS_S_ # -- Begin function _Z15rightKronecker16MatrixS_S_ .type _Z15rightKronecker16MatrixS_S_,@function _Z15rightKronecker16MatrixS_S_: # @_Z15rightKronecker16MatrixS_S_ .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
cb5cfb8d0d0a2f21ebbaf46f9fa04fce9024a3a8
/* Block size X: 32 */ __global__ void fct_ale_b2(const int maxLevels, const double dt, const double fluxEpsilon, const int * __restrict__ nLevels, const double * __restrict__ area_inv, const double * __restrict__ fct_ttf_max, const double * __restrict__ fct_ttf_min, double * __restrict__ fct_plus, double * __restrict_...
.file "tmpxft_003af192_00000000-6_fct_ale_b2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cud...
code for sm_89 Function : _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> /* Block size X: 32 */ __global__ void fct_ale_b2(const int maxLevels, const double dt, const double fluxEpsilon, const int * __restrict__ nLevels, const double * __restrict__ area_inv, const double * __restrict__ fct_ttf_max, const double * __restrict__ fct_ttf_min, double * __restrict__ ...
.text .file "fct_ale_b2.hip" .globl _Z25__device_stub__fct_ale_b2iddPKiPKdS2_S2_PdS3_ # -- Begin function _Z25__device_stub__fct_ale_b2iddPKiPKdS2_S2_PdS3_ .type _Z25__device_stub__fct_ale_b2iddPKiPKdS2_S2_PdS3_,@function _Z25__device_stub__fct_ale_b2iddPKiPKdS2_S2_PdS3_: # @_Z25__device_stub__fct_ale_b2iddPKiPKdS2...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_ ; -- Begin function _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_ .globl _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_ .p2align 8 .type _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_,@function _Z10fct_ale_b2iddPKiPKdS2_S2_PdS3_: ; @_Z10fct_ale_b2id...
79f73fafb5065e92d847c40ebddd5b170248a976
#include "includes.h" using namespace std; __global__ void setValue(float *data, int idx, float value) { if(threadIdx.x == 0) { data[idx] = value; } }
.file "tmpxft_003219c8_00000000-6_setValue.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaU...
code for sm_89 Function : _Z8setValuePfif .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" using namespace std; __global__ void setValue(float *data, int idx, float value) { if(threadIdx.x == 0) { data[idx] = value; } }
.text .file "setValue.hip" .globl _Z23__device_stub__setValuePfif # -- Begin function _Z23__device_stub__setValuePfif .type _Z23__device_stub__setValuePfif,@function _Z23__device_stub__setValuePfif: # @_Z23__device_stub__setValuePfif .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8setValuePfif ; -- Begin function _Z8setValuePfif .globl _Z8setValuePfif .p2align 8 .type _Z8setValuePfif,@function _Z8setValuePfif: ; @_Z8setValuePfif ; %bb.0: s_mov_b32 s2, exec_lo v_cmpx_eq_u32_e32 0, v0 s_cbranch_...
e6044e0766c1aedff51b79cc9d41ddd1578a64e0
#include "includes.h" __device__ float sigmoid(float x) { return 1.0f / (1 + __expf(-x)); } __global__ void sigmoidActivationForward(float* Z, float* A, int Z_x_dim, int Z_y_dim) { int index = blockIdx.x * blockDim.x + threadIdx.x; if (index < Z_x_dim * Z_y_dim) { A[index] = sigmoid(Z[index]); } }
.file "tmpxft_00270183_00000000-6_sigmoidActivationForward.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .s...
code for sm_89 Function : _Z24sigmoidActivationForwardPfS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __device__ float sigmoid(float x) { return 1.0f / (1 + __expf(-x)); } __global__ void sigmoidActivationForward(float* Z, float* A, int Z_x_dim, int Z_y_dim) { int index = blockIdx.x * blockDim.x + threadIdx.x; if (index < Z_x_dim * Z_y_dim) { A[index] = sigmoid(Z[in...
.text .file "sigmoidActivationForward.hip" .globl _Z39__device_stub__sigmoidActivationForwardPfS_ii # -- Begin function _Z39__device_stub__sigmoidActivationForwardPfS_ii .type _Z39__device_stub__sigmoidActivationForwardPfS_ii,@function _Z39__device_stub__sigmoidActivationForwardPfS_ii: # @_Z39__device_stub__sigmoid...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24sigmoidActivationForwardPfS_ii ; -- Begin function _Z24sigmoidActivationForwardPfS_ii .globl _Z24sigmoidActivationForwardPfS_ii .p2align 8 .type _Z24sigmoidActivationForwardPfS_ii,@function _Z24sigmoidActivationForwardPfS_ii: ; @_Z24sigmoidActiv...
34b0f9276af30076059a5acdd3679a94e33f7b34
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <sys/time.h> // #define NUM_PARTICLES 10000 // #define NUM_ITERATIONS 10000 // int TPB = 16; #define SEED 10 #define EPSILON 1e-5 typedef struct { float3 position; float3 velocity; } Particle; // Deterministically generates a "random" float,...
.file "tmpxft_00271ea9_00000000-6_exercise_2b.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2040: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2040: .size _ZL26__cu...
code for sm_89 Function : _Z29gpu_updatePositionAndVelocityP8Particleii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <sys/time.h> // #define NUM_PARTICLES 10000 // #define NUM_ITERATIONS 10000 // int TPB = 16; #define SEED 10 #define EPSILON 1e-5 typedef struct { float3 position; float3 velocity; } Particle; // Deterministical...
.text .file "exercise_2b.hip" .globl _Z10gen_randomiiii # -- Begin function _Z10gen_randomiiii .type _Z10gen_randomiiii,@function _Z10gen_randomiiii: # @_Z10gen_randomiiii .cfi_startproc # %bb.0: # kill: def $edx killed $edx def $rdx ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z29gpu_updatePositionAndVelocityP8Particleii ; -- Begin function _Z29gpu_updatePositionAndVelocityP8Particleii .globl _Z29gpu_updatePositionAndVelocityP8Particleii .p2align 8 .type _Z29gpu_updatePositionAndVelocityP8Particleii,@function _Z29gpu_updateP...
7c20538b5353a28cbedac9d844a85e9633ff6658
__device__ void rot_x(float3 *vec, float angle) { float tmp; tmp = vec->y; vec->y = tmp * cosf(angle) + vec->z * -sinf(angle); vec->z = tmp * sinf(angle) + vec->z * cosf(angle); } __device__ void rot_y(float3 *vec, float angle) { float tmp; tmp = vec->x; vec->x = tmp * cosf(angle) + vec->z * sinf(...
.file "tmpxft_002e5914_00000000-6_rotate.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2014: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2014: .size _ZL26__cudaUnr...
code for sm_89
#include <hip/hip_runtime.h> __device__ void rot_x(float3 *vec, float angle) { float tmp; tmp = vec->y; vec->y = tmp * cosf(angle) + vec->z * -sinf(angle); vec->z = tmp * sinf(angle) + vec->z * cosf(angle); } __device__ void rot_y(float3 *vec, float angle) { float tmp; tmp = vec->x; vec->x = tmp ...
.text .file "rotate.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
23c15e7c3ece6416aa75e4986b4648019386e005
#include "includes.h" __global__ void cuSetupSincKernel_kernel(float *r_filter_, const int i_filtercoef_, const float r_soff_, const float r_wgthgt_, const int i_weight_, const float r_soff_inverse_, const float r_beta_, const float r_decfactor_inverse_, const float r_relfiltlen_inverse_) { int i = threadIdx.x + blockD...
.file "tmpxft_00203544_00000000-6_cuSetupSincKernel_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .s...
code for sm_89 Function : _Z24cuSetupSincKernel_kernelPfiffiffff .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void cuSetupSincKernel_kernel(float *r_filter_, const int i_filtercoef_, const float r_soff_, const float r_wgthgt_, const int i_weight_, const float r_soff_inverse_, const float r_beta_, const float r_decfactor_inverse_, const float r_relfiltlen_inverse_) ...
.text .file "cuSetupSincKernel_kernel.hip" .globl _Z39__device_stub__cuSetupSincKernel_kernelPfiffiffff # -- Begin function _Z39__device_stub__cuSetupSincKernel_kernelPfiffiffff .type _Z39__device_stub__cuSetupSincKernel_kernelPfiffiffff,@function _Z39__device_stub__cuSetupSincKernel_kernelPfiffiffff: # @_Z39__devi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24cuSetupSincKernel_kernelPfiffiffff ; -- Begin function _Z24cuSetupSincKernel_kernelPfiffiffff .globl _Z24cuSetupSincKernel_kernelPfiffiffff .p2align 8 .type _Z24cuSetupSincKernel_kernelPfiffiffff,@function _Z24cuSetupSincKernel_kernelPfiffiffff: ; @...
d06761332a669d98c252e64fdbb5ab14ca92c9e8
#include "includes.h" using namespace std; struct compressed_sparse_column { int* data; int* row; int* column; int* index_column; int* index_row_start; int* index_row_end; }; struct graph { compressed_sparse_column* dataset; bool* roots; bool* leaves; bool* singletons; int vertices; int edges; }; __global__ void pr...
.file "tmpxft_0037c38a_00000000-6_pre_post_order.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26_...
code for sm_89 Function : _Z14pre_post_orderPiS_S_P5graph .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" using namespace std; struct compressed_sparse_column { int* data; int* row; int* column; int* index_column; int* index_row_start; int* index_row_end; }; struct graph { compressed_sparse_column* dataset; bool* roots; bool* leaves; bool* singletons; int vertices; int...
.text .file "pre_post_order.hip" .globl _Z29__device_stub__pre_post_orderPiS_S_P5graph # -- Begin function _Z29__device_stub__pre_post_orderPiS_S_P5graph .type _Z29__device_stub__pre_post_orderPiS_S_P5graph,@function _Z29__device_stub__pre_post_orderPiS_S_P5graph: # @_Z29__device_stub__pre_post_orderPiS_S_P5graph ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text.unlikely.,"ax",@progbits .p2align 2 ; -- Begin function __ockl_dm_alloc .type __ockl_dm_alloc,@function __ockl_dm_alloc: ; @__ockl_dm_alloc ; %bb.0: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) s_or_s...
14efc9c9ec049fceaf05be0060b7042aeb69dc11
#include "includes.h" __global__ void gpu_transpo_kernel_naive(u_char *Source, u_char *Resultat, unsigned width, unsigned height){ int j = blockIdx.x*blockDim.x + threadIdx.x; int i = blockIdx.y*blockDim.y + threadIdx.y; if ((i<0)||(i>=height)||(j<0)||(j>=width)) {} else { Resultat[j*height + i] = Source[i*width + j]...
.file "tmpxft_002d5609_00000000-6_gpu_transpo_kernel_naive.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .s...
code for sm_89 Function : _Z24gpu_transpo_kernel_naivePhS_jj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void gpu_transpo_kernel_naive(u_char *Source, u_char *Resultat, unsigned width, unsigned height){ int j = blockIdx.x*blockDim.x + threadIdx.x; int i = blockIdx.y*blockDim.y + threadIdx.y; if ((i<0)||(i>=height)||(j<0)||(j>=width)) {} else { Resultat[j*heig...
.text .file "gpu_transpo_kernel_naive.hip" .globl _Z39__device_stub__gpu_transpo_kernel_naivePhS_jj # -- Begin function _Z39__device_stub__gpu_transpo_kernel_naivePhS_jj .type _Z39__device_stub__gpu_transpo_kernel_naivePhS_jj,@function _Z39__device_stub__gpu_transpo_kernel_naivePhS_jj: # @_Z39__device_stub__gpu_tra...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24gpu_transpo_kernel_naivePhS_jj ; -- Begin function _Z24gpu_transpo_kernel_naivePhS_jj .globl _Z24gpu_transpo_kernel_naivePhS_jj .p2align 8 .type _Z24gpu_transpo_kernel_naivePhS_jj,@function _Z24gpu_transpo_kernel_naivePhS_jj: ; @_Z24gpu_transpo_...
d03ecffef6db4821d7f70c6b25aea2f306940a55
#include <cstdio> #include <cstdlib> #include <time.h> #include "cuda_timer.cuh" #define SafeTimerCall(err) __safeTimerCall(err, __FILE__, __LINE__) inline void __safeTimerCall(cudaError err, const char *file, const int line) { #pragma warning(push) #pragma warning(disable: 4127) Prevent warning on do-while(0); do...
.file "tmpxft_0029a1fd_00000000-6_cuda_timer.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2039: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2039: .size _ZL26__cud...
code for sm_89
#include <hip/hip_runtime.h> class CudaTimer { private: hipEvent_t _begEvent; hipEvent_t _endEvent; public: CudaTimer(); ~CudaTimer(); void start(); void stop(); float value(); };
.text .file "cuda_timer.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d896...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
857a9ee63e3c355afd0babae18e5af5de817228e
#include "cuda.h" typedef long long int64; __global__ void ReceiveFun(double *out, const double*vx, const double*vy, const double*sigmaxx, const double*sigmayy, const double*sigmaxy, int64 nt, const int64 *rcvi, const int64 *rcvj, const int64 *rcvtype, int64 nrcv, int64 NX, int64 NY){ int i = blockIdx.x*blockD...
.file "tmpxft_0028f872_00000000-6_GetReceive.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2012: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2012: .size _ZL26__cud...
code for sm_89 Function : _Z11ReceiveGradPdS_S_S_S_PKdxPKxS3_S3_xxx .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include "hip/hip_runtime.h" typedef long long int64; __global__ void ReceiveFun(double *out, const double*vx, const double*vy, const double*sigmaxx, const double*sigmayy, const double*sigmaxy, int64 nt, const int64 *rcvi, const int64 *rcvj, const int64 *rcvtype, int64 nrcv, int64 NX, int64 NY){ int i = blockI...
.text .file "GetReceive.hip" .globl _Z25__device_stub__ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx # -- Begin function _Z25__device_stub__ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx .type _Z25__device_stub__ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx,@function _Z25__device_stub__ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx: # @...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx ; -- Begin function _Z10ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx .globl _Z10ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx .p2align 8 .type _Z10ReceiveFunPdPKdS1_S1_S1_S1_xPKxS3_S3_xxx,@function _Z10ReceiveFunPdPKd...
001193ca16f3123adb0f9d55989cc54e536ab86f
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define X_SIZE 10240 #define Y_SIZE 16384 #define ARRAY_SIZE (X_SIZE*Y_SIZE) #define BLOCK_SIZE_X 32 #define BLOCK_SIZE_Y 32 #define TIMESTEPS 1000 const char* input_file_na...
.file "tmpxft_0027d360_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z28kernelCalculateNewGenerationPfS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define X_SIZE 10240 #define Y_SIZE 16384 #define ARRAY_SIZE (X_SIZE*Y_SIZE) #define BLOCK_SIZE_X 32 #define BLOCK_SIZE_Y 32 #define TIMESTEPS 1000 const char* input_file_name = "input.dat"; const char* outp...
.text .file "kernel.hip" .globl _Z12printDevProp20hipDeviceProp_tR0600 # -- Begin function _Z12printDevProp20hipDeviceProp_tR0600 .type _Z12printDevProp20hipDeviceProp_tR0600,@function _Z12printDevProp20hipDeviceProp_tR0600: # @_Z12printDevProp20hipDeviceProp_tR0600 .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z44kernelCalculateNewGenerationWithSharedMemoryPfS_ii ; -- Begin function _Z44kernelCalculateNewGenerationWithSharedMemoryPfS_ii .globl _Z44kernelCalculateNewGenerationWithSharedMemoryPfS_ii .p2align 8 .type _Z44kernelCalculateNewGenerationWithSharedMe...
c9c0c26588d1e7599cb7068debf8cb8a7ebf9061
#include "includes.h" __global__ void elementwise_1D_1D_add(float* in1, float* in2, float* out, int size) { int tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = gridDim.x * blockDim.x; for (; tid < size; tid += stride) if (tid < size) out[tid] = in1[tid] + in2[tid]; }
.file "tmpxft_003aceb1_00000000-6_elementwise_1D_1D_add.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size...
code for sm_89 Function : _Z21elementwise_1D_1D_addPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void elementwise_1D_1D_add(float* in1, float* in2, float* out, int size) { int tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = gridDim.x * blockDim.x; for (; tid < size; tid += stride) if (tid < size) out[tid] = in1[tid] + in2[tid]; }
.text .file "elementwise_1D_1D_add.hip" .globl _Z36__device_stub__elementwise_1D_1D_addPfS_S_i # -- Begin function _Z36__device_stub__elementwise_1D_1D_addPfS_S_i .type _Z36__device_stub__elementwise_1D_1D_addPfS_S_i,@function _Z36__device_stub__elementwise_1D_1D_addPfS_S_i: # @_Z36__device_stub__elementwise_1D_1D_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z21elementwise_1D_1D_addPfS_S_i ; -- Begin function _Z21elementwise_1D_1D_addPfS_S_i .globl _Z21elementwise_1D_1D_addPfS_S_i .p2align 8 .type _Z21elementwise_1D_1D_addPfS_S_i,@function _Z21elementwise_1D_1D_addPfS_S_i: ; @_Z21elementwise_1D_1D_ad...
8e6ee28b816f189444fe79374c40d6060eed9636
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "cuda.h" //device function __global__ void kernelAddVectors(int N, double *a, double *b, double *c) { int threadid = threadIdx.x; //thread number int blockid = blockIdx.x; //block number int Nblock = blockDim.x; //number of ...
.file "tmpxft_002495c1_00000000-6_addVectors.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cud...
code for sm_89 Function : _Z16kernelAddVectorsiPdS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "hip/hip_runtime.h" //device function __global__ void kernelAddVectors(int N, double *a, double *b, double *c) { int threadid = threadIdx.x; //thread number int blockid = blockIdx.x; //block number int Nblock = blockDim.x; /...
.text .file "addVectors.hip" .globl _Z31__device_stub__kernelAddVectorsiPdS_S_ # -- Begin function _Z31__device_stub__kernelAddVectorsiPdS_S_ .type _Z31__device_stub__kernelAddVectorsiPdS_S_,@function _Z31__device_stub__kernelAddVectorsiPdS_S_: # @_Z31__device_stub__kernelAddVectorsiPdS_S_ .cfi_startproc # %bb.0: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16kernelAddVectorsiPdS_S_ ; -- Begin function _Z16kernelAddVectorsiPdS_S_ .globl _Z16kernelAddVectorsiPdS_S_ .p2align 8 .type _Z16kernelAddVectorsiPdS_S_,@function _Z16kernelAddVectorsiPdS_S_: ; @_Z16kernelAddVectorsiPdS_S_ ; %bb.0: s_clau...
02b53a85c05756798dc26534c1f08288d8e32807
#include <stdio.h> /* * ホスト上で配列値を初期化します。 */ void init(int *a, int N) { int i; for (i = 0; i < N; ++i) { a[i] = i; } } /* * GPU 上で要素を並列で 2 倍にします。 */ __global__ void doubleElements(int *a, int N) { int i; i = blockIdx.x * blockDim.x + threadIdx.x; if (i < N) { a[i] *= 2; } } /* * ホスト上で...
.file "tmpxft_00215a8d_00000000-6_01-double-elements.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _Z...
code for sm_89 Function : _Z14doubleElementsPii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> /* * ホスト上で配列値を初期化します。 */ void init(int *a, int N) { int i; for (i = 0; i < N; ++i) { a[i] = i; } } /* * GPU 上で要素を並列で 2 倍にします。 */ __global__ void doubleElements(int *a, int N) { int i; i = blockIdx.x * blockDim.x + threadIdx.x; if (i < N) { ...
.text .file "01-double-elements.hip" .globl _Z4initPii # -- Begin function _Z4initPii .type _Z4initPii,@function _Z4initPii: # @_Z4initPii .cfi_startproc # %bb.0: testl %esi, %esi jle .LBB0_3 # %bb.1: # %.lr.ph.preheader movl %esi, ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14doubleElementsPii ; -- Begin function _Z14doubleElementsPii .globl _Z14doubleElementsPii .p2align 8 .type _Z14doubleElementsPii,@function _Z14doubleElementsPii: ; @_Z14doubleElementsPii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
485c8a7dad77ead0ea23f6d8d9f4e5960926c61a
/* ============================================================================ Name : LAB3.cu Author : Kineibe Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ============================================================================ */ #include <iostream...
.file "tmpxft_003247d5_00000000-6_LAB2.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3878: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z16reciprocalKernelPfS_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/* ============================================================================ Name : LAB3.cu Author : Kineibe Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ============================================================================ */ #include <hip/hip...
.text .file "LAB2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16reciprocalKernelPfS_j ; -- Begin function _Z16reciprocalKernelPfS_j .globl _Z16reciprocalKernelPfS_j .p2align 8 .type _Z16reciprocalKernelPfS_j,@function _Z16reciprocalKernelPfS_j: ; @_Z16reciprocalKernelPfS_j ; %bb.0: s_clause 0x1 s_...
3746f5e64f243396e97de31095f4e073c827c45f
// includes, system #include <cuda_runtime.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> // includes, kernels #include "vector_reduction_kernel.cu" // For simplicity, just to get the idea in this MP, we're fixing the problem size to 512 elements. #define NUM_ELEMEN...
.file "tmpxft_00252dc1_00000000-6_vector_reduction.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL2...
code for sm_89 Function : _Z9reductionPfi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// includes, system #include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.h> // includes, kernels #include "vector_reduction_kernel.cu" // For simplicity, just to get the idea in this MP, we're fixing the problem size to 512 elements. #define NUM_ELE...
.text .file "vector_reduction.hip" .globl _Z24__device_stub__reductionPfi # -- Begin function _Z24__device_stub__reductionPfi .type _Z24__device_stub__reductionPfi,@function _Z24__device_stub__reductionPfi: # @_Z24__device_stub__reductionPfi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9reductionPfi ; -- Begin function _Z9reductionPfi .globl _Z9reductionPfi .p2align 8 .type _Z9reductionPfi,@function _Z9reductionPfi: ; @_Z9reductionPfi ; %bb.0: s_load_b32 s2, s[0:1], 0x1c v_lshlrev_b32_e32 v3, 2, v0 ...
33306572b7dcf595d5d92c4987d3c15b9d6e283c
/* * Kernel for calulating the element-wise product of two matrices * m, n --> dimensions of matrices A, B, C */ extern "C" { __global__ void hadamard(int m, int n, double *A, int lda, double *B, int ldb, double *C, int ldc) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + t...
.file "tmpxft_0036030c_00000000-6_elemWiseDouble.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26_...
code for sm_89 Function : copy .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> /* * Kernel for calulating the element-wise product of two matrices * m, n --> dimensions of matrices A, B, C */ extern "C" { __global__ void hadamard(int m, int n, double *A, int lda, double *B, int ldb, double *C, int ldc) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j...
.text .file "elemWiseDouble.hip" .globl __device_stub__hadamard # -- Begin function __device_stub__hadamard .type __device_stub__hadamard,@function __device_stub__hadamard: # @__device_stub__hadamard .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected hadamard ; -- Begin function hadamard .globl hadamard .p2align 8 .type hadamard,@function hadamard: ; @hadamard ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x44 s_load_b64 s[2:3], s[0:1], 0x0 v_and_b32_e...
37c69c56418994d9fe9b33c702db5feb0b55594f
#include <cuda_runtime.h> #include <stdio.h> #include <assert.h> #include <iostream> #include <stdlib.h> #include <unistd.h> extern "C" __global__ void memcpy_kernel(unsigned char* __restrict__ output, const unsigned char* __restrict__ input){ output += (blockIdx.x<<13)|(threadIdx.x<<2); input += (blockIdx.x<...
.file "tmpxft_00389d93_00000000-6_memcpy_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3655: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : memcpy_kernel .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <assert.h> #include <iostream> #include <stdlib.h> #include <unistd.h> extern "C" __global__ void memcpy_kernel(unsigned char* __restrict__ output, const unsigned char* __restrict__ input){ output += (blockIdx.x<<13)|(threadIdx.x<<2); input += (blockIdx...
.text .file "memcpy_kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl __device_stub__memcpy_kernel # -- Begin function __device_stub__memcpy_kernel .typ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected memcpy_kernel ; -- Begin function memcpy_kernel .globl memcpy_kernel .p2align 8 .type memcpy_kernel,@function memcpy_kernel: ; @memcpy_kernel ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 v_lshlrev_b32_e32 v0, 2, v0 s_de...
78d2ad9c7ae35b15e39c0889dc0a3d5eeb2a8652
# include<stdio.h> __global__ void mykernel() { printf("hello world for GPU\n"); } int main() { mykernel<<<1, 10>>>(); cudaDeviceSynchronize(); return 0; }
.file "tmpxft_0027d554_00000000-6_hello.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnre...
code for sm_89 Function : _Z8mykernelv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> # include<stdio.h> __global__ void mykernel() { printf("hello world for GPU\n"); } int main() { mykernel<<<1, 10>>>(); hipDeviceSynchronize(); return 0; }
.text .file "hello.hip" .globl _Z23__device_stub__mykernelv # -- Begin function _Z23__device_stub__mykernelv .type _Z23__device_stub__mykernelv,@function _Z23__device_stub__mykernelv: # @_Z23__device_stub__mykernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8mykernelv ; -- Begin function _Z8mykernelv .globl _Z8mykernelv .p2align 8 .type _Z8mykernelv,@function _Z8mykernelv: ; @_Z8mykernelv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b32 v2, -1, 0 v_mov_b...
513ae927a7f06bcc9c4b79eec5cbbfd90c031810
#include "cuda_runtime.h" // A small gpu volumetric path tracer in 200 lines #include "device_launch_parameters.h" // Jerry Guo (c) CGV TU Delft #include "math_constants.h" // Based on smallvpt and cu-smallpt #include "curand_kernel.h" // Compile: nvcc #include <stdlib.h> ...
.file "tmpxft_002af328_00000000-6_smallvpt.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2287: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2287: .size _ZL26__cudaU...
code for sm_89 Function : _Z13render_kernelPK6SpheremP3Vecmmi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include "hip/hip_runtime.h" // A small gpu volumetric path tracer in 200 lines // Jerry Guo (c) CGV TU Delft #include "hip/hip_math_constants.h" // Based on smallvpt and cu-smallpt #include "hiprand/hiprand_kernel.h" // Compile: nvcc #include <stdlib.h> // ...
.text .file "smallvpt.hip" .globl _Z28__device_stub__render_kernelPK6SpheremP3Vecmmi # -- Begin function _Z28__device_stub__render_kernelPK6SpheremP3Vecmmi .type _Z28__device_stub__render_kernelPK6SpheremP3Vecmmi,@function _Z28__device_stub__render_kernelPK6SpheremP3Vecmmi: # @_Z28__device_stub__render_kernelPK6Sph...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13render_kernelPK6SpheremP3Vecmmi ; -- Begin function _Z13render_kernelPK6SpheremP3Vecmmi .globl _Z13render_kernelPK6SpheremP3Vecmmi .p2align 8 .type _Z13render_kernelPK6SpheremP3Vecmmi,@function _Z13render_kernelPK6SpheremP3Vecmmi: ; @_Z13render_k...
6a49a8710dbe0db69af0a2a8826ce3d1aa20c365
#include "includes.h" __global__ void addVectors( float *d_A, float *d_B, float *d_C, int size) { int i = threadIdx.x + blockDim.x * blockIdx.x; if (i < size) { d_C[i] = d_A[i] + d_B[i]; } }
.file "tmpxft_002a7db6_00000000-6_addVectors.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cud...
code for sm_89 Function : _Z10addVectorsPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void addVectors( float *d_A, float *d_B, float *d_C, int size) { int i = threadIdx.x + blockDim.x * blockIdx.x; if (i < size) { d_C[i] = d_A[i] + d_B[i]; } }
.text .file "addVectors.hip" .globl _Z25__device_stub__addVectorsPfS_S_i # -- Begin function _Z25__device_stub__addVectorsPfS_S_i .type _Z25__device_stub__addVectorsPfS_S_i,@function _Z25__device_stub__addVectorsPfS_S_i: # @_Z25__device_stub__addVectorsPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10addVectorsPfS_S_i ; -- Begin function _Z10addVectorsPfS_S_i .globl _Z10addVectorsPfS_S_i .p2align 8 .type _Z10addVectorsPfS_S_i,@function _Z10addVectorsPfS_S_i: ; @_Z10addVectorsPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
924e5c063a43d7f55037349b8a9f5e2971e12f19
extern "C" __global__ void calcDir(// Dots props float* pX, float* pY, float* pZ, //Tree specs // per Block int* dotIndexes, int* stBl0, int* nPtBl0, int* stBl1, int* nPtBl1, float* a...
.file "tmpxft_00315905_00000000-6_gpuCalDir.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cuda...
code for sm_89 Function : calcDir .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> extern "C" __global__ void calcDir(// Dots props float* pX, float* pY, float* pZ, //Tree specs // per Block int* dotIndexes, int* stBl0, int* nPtBl0, int* stBl1, ...
.text .file "gpuCalDir.hip" .globl __device_stub__calcDir # -- Begin function __device_stub__calcDir .type __device_stub__calcDir,@function __device_stub__calcDir: # @__device_stub__calcDir .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected calcDir ; -- Begin function calcDir .globl calcDir .p2align 8 .type calcDir,@function calcDir: ; @calcDir ; %bb.0: s_mov_b32 s2, s15 s_load_b512 s[4:19], s[0:1], 0x0 s_mov_b32 s28, exec_lo v_cmpx_eq_u32...
f54e871061e859003e61f8bba9418fda1b08a618
#include<stdio.h> #include<stdlib.h> #include<math.h> __global__ void vecAdd(float* h_a, float* h_b, float* h_c, int n) { int id = blockIdx.x*blockDim.x+threadIdx.x; //check if it is in bound if(id<n) h_c[id] = h_a[id]+ h_b[id]; } int main(int argc, char* argv[]) { //size of vectors int n= 1000; float *h_...
.file "tmpxft_002ce92c_00000000-6_vecAddition.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cu...
code for sm_89 Function : _Z6vecAddPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include<stdio.h> #include<stdlib.h> #include<math.h> __global__ void vecAdd(float* h_a, float* h_b, float* h_c, int n) { int id = blockIdx.x*blockDim.x+threadIdx.x; //check if it is in bound if(id<n) h_c[id] = h_a[id]+ h_b[id]; } int main(int argc, char* argv[]) { //size of vect...
.text .file "vecAddition.hip" .globl _Z21__device_stub__vecAddPfS_S_i # -- Begin function _Z21__device_stub__vecAddPfS_S_i .type _Z21__device_stub__vecAddPfS_S_i,@function _Z21__device_stub__vecAddPfS_S_i: # @_Z21__device_stub__vecAddPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6vecAddPfS_S_i ; -- Begin function _Z6vecAddPfS_S_i .globl _Z6vecAddPfS_S_i .p2align 8 .type _Z6vecAddPfS_S_i,@function _Z6vecAddPfS_S_i: ; @_Z6vecAddPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 ...
1c52fef3502a24ea52b5c270a5b1e01ee36a9132
#include "includes.h" __global__ void vectorReduce(const float *global_input_data, float *global_output_data, const int numElements) { __shared__ float sdata[10]; __shared__ int sindice[10]; int tid = threadIdx.x; int i = blockIdx.x * (blockDim.x ) + threadIdx.x; sdata[tid] = global_input_data[i]; sindice[tid] = tid;...
.file "tmpxft_0025a091_00000000-6_vectorReduce.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__c...
code for sm_89 Function : _Z12vectorReducePKfPfi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void vectorReduce(const float *global_input_data, float *global_output_data, const int numElements) { __shared__ float sdata[10]; __shared__ int sindice[10]; int tid = threadIdx.x; int i = blockIdx.x * (blockDim.x ) + threadIdx.x; sdata[tid] = global_inpu...
.text .file "vectorReduce.hip" .globl _Z27__device_stub__vectorReducePKfPfi # -- Begin function _Z27__device_stub__vectorReducePKfPfi .type _Z27__device_stub__vectorReducePKfPfi,@function _Z27__device_stub__vectorReducePKfPfi: # @_Z27__device_stub__vectorReducePKfPfi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12vectorReducePKfPfi ; -- Begin function _Z12vectorReducePKfPfi .globl _Z12vectorReducePKfPfi .p2align 8 .type _Z12vectorReducePKfPfi,@function _Z12vectorReducePKfPfi: ; @_Z12vectorReducePKfPfi ; %bb.0: s_clause 0x1 s_load_b32 s4, s...
77c514408f18838f93e0cfb1bb96c8aba32f0fdc
#include <stdio.h> #include <math.h> #include <sys/time.h> __global__ void convertToFloat(float *d_out, int *d_in){ d_out[threadIdx.x] = (float)d_in[threadIdx.x]; } double time_diff(struct timeval x , struct timeval y){ double x_ms , y_ms , diff; x_ms = (double)x.tv_sec*1000000 + (double)x.tv_usec; y_ms = (do...
.file "tmpxft_003ad0c2_00000000-6_int_to_float_compare.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size ...
code for sm_89 Function : _Z14convertToFloatPfPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <sys/time.h> __global__ void convertToFloat(float *d_out, int *d_in){ d_out[threadIdx.x] = (float)d_in[threadIdx.x]; } double time_diff(struct timeval x , struct timeval y){ double x_ms , y_ms , diff; x_ms = (double)x.tv_sec*1000000 + ...
.text .file "int_to_float_compare.hip" .globl _Z29__device_stub__convertToFloatPfPi # -- Begin function _Z29__device_stub__convertToFloatPfPi .type _Z29__device_stub__convertToFloatPfPi,@function _Z29__device_stub__convertToFloatPfPi: # @_Z29__device_stub__convertToFloatPfPi .cfi_startproc # %bb.0: pushq %r15 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14convertToFloatPfPi ; -- Begin function _Z14convertToFloatPfPi .globl _Z14convertToFloatPfPi .p2align 8 .type _Z14convertToFloatPfPi,@function _Z14convertToFloatPfPi: ; @_Z14convertToFloatPfPi ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x...
ce4c7447a046450be3368768af47e94d0be6d199
#include <stdio.h> // Number of threads #define NT 1024 // Structure to hold the 2D Points typedef struct { double x; double y; } point; // Structure to store the metric center result typedef struct { double distance; int pointIndex; } result; // Function to calculate distance between two points __device__ doub...
.file "tmpxft_002b9cea_00000000-6_MetricCenterGpu.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2033: .size _ZL26...
code for sm_89 Function : metricCenter .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> // Number of threads #define NT 1024 // Structure to hold the 2D Points typedef struct { double x; double y; } point; // Structure to store the metric center result typedef struct { double distance; int pointIndex; } result; // Function to calculate distance betw...
.text .file "MetricCenterGpu.hip" .globl __device_stub__metricCenter # -- Begin function __device_stub__metricCenter .type __device_stub__metricCenter,@function __device_stub__metricCenter: # @__device_stub__metricCenter .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_d...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected metricCenter ; -- Begin function metricCenter .globl metricCenter .p2align 8 .type metricCenter,@function metricCenter: ; @metricCenter ; %bb.0: s_load_b32 s3, s[0:1], 0x10 s_waitcnt lgkmcnt(0) s_cmp_ge_i32 s15, s...
562e888e836552f3ac2d3612319a95b747f8ca3e
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <time.h> __global__ void vAdd(int* A, int* B, int* C, int num_elements){ //Posicion del thread int i = blockIdx.x * blockDim.x + threadIdx.x; if(i < num_elements){ C[i] = A[i] + B[i]; } } void sumarVectores(int* A, int* B, int* C, in...
.file "tmpxft_002c41e9_00000000-6_vAdd.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z4vAddPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <time.h> __global__ void vAdd(int* A, int* B, int* C, int num_elements){ //Posicion del thread int i = blockIdx.x * blockDim.x + threadIdx.x; if(i < num_elements){ C[i] = A[i] + B[i]; } } void sumarVectores(int* A, int* B, int* C,...
.text .file "vAdd.hip" .globl _Z19__device_stub__vAddPiS_S_i # -- Begin function _Z19__device_stub__vAddPiS_S_i .type _Z19__device_stub__vAddPiS_S_i,@function _Z19__device_stub__vAddPiS_S_i: # @_Z19__device_stub__vAddPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4vAddPiS_S_i ; -- Begin function _Z4vAddPiS_S_i .globl _Z4vAddPiS_S_i .p2align 8 .type _Z4vAddPiS_S_i,@function _Z4vAddPiS_S_i: ; @_Z4vAddPiS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:...
cfc0a298a0c238c9c4e707f28b76cb98b80871f5
#include <stdio.h> __global__ void saxpy(int n, float *x, float *y) { int i = blockIdx.x*blockDim.x + threadIdx.x; if (i < n) y[i] = x[i] + y[i]; } void cuda_array_culc_add_float(float* x, float* y, int32_t N) { float *d_x, *d_y; cudaMalloc(&d_x, N*sizeof(float)); cudaMalloc(&d_y, N*sizeof(float)); cuda...
.file "tmpxft_0036f8e4_00000000-6_cuda_array_culc.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26...
code for sm_89 Function : _Z5saxpyiPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void saxpy(int n, float *x, float *y) { int i = blockIdx.x*blockDim.x + threadIdx.x; if (i < n) y[i] = x[i] + y[i]; } void cuda_array_culc_add_float(float* x, float* y, int32_t N) { float *d_x, *d_y; hipMalloc(&d_x, N*sizeof(float)); hipMalloc(&d_...
.text .file "cuda_array_culc.hip" .globl _Z20__device_stub__saxpyiPfS_ # -- Begin function _Z20__device_stub__saxpyiPfS_ .type _Z20__device_stub__saxpyiPfS_,@function _Z20__device_stub__saxpyiPfS_: # @_Z20__device_stub__saxpyiPfS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5saxpyiPfS_ ; -- Begin function _Z5saxpyiPfS_ .globl _Z5saxpyiPfS_ .p2align 8 .type _Z5saxpyiPfS_,@function _Z5saxpyiPfS_: ; @_Z5saxpyiPfS_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b32 s3, s[0:1], ...
01dbe753274958f0cae2ae7e64683bdf046a4971
// // Created by songzeceng on 2020/11/26. // #include "cuda_runtime.h" #include "stdio.h" #define N 64 #define TPB 32 float scale(int i, int n) { return ((float ) i) / (n - 1); } __device__ float distance(float x1, float x2) { return sqrt((x2 - x1) * (x2 - x1)); } __global__ void distanceKernel(float *d_o...
.file "tmpxft_002ba24e_00000000-6_kernel_unified.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26_...
code for sm_89 Function : _Z14distanceKernelPfS_f .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// // Created by songzeceng on 2020/11/26. // #include "hip/hip_runtime.h" #include "stdio.h" #define N 64 #define TPB 32 float scale(int i, int n) { return ((float ) i) / (n - 1); } __device__ float distance(float x1, float x2) { return sqrt((x2 - x1) * (x2 - x1)); } __global__ void distanceKernel(float *...
.text .file "kernel_unified.hip" .globl _Z5scaleii # -- Begin function _Z5scaleii .type _Z5scaleii,@function _Z5scaleii: # @_Z5scaleii .cfi_startproc # %bb.0: cvtsi2ss %edi, %xmm0 decl %esi cvtsi2ss %esi, %xmm1 divss %xmm1, %xmm0 retq .Lfunc_end0: .size _Z5sca...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14distanceKernelPfS_f ; -- Begin function _Z14distanceKernelPfS_f .globl _Z14distanceKernelPfS_f .p2align 8 .type _Z14distanceKernelPfS_f,@function _Z14distanceKernelPfS_f: ; @_Z14distanceKernelPfS_f ; %bb.0: s_clause 0x2 s_load_b32 s...
4c50c517fd96e8040ba8799946a8e24a576739f3
#include <iostream> #include <ctime> __global__ void matMulKernel(float* matA, float* matB, float* matC, int rows, int cols) { dim3 gIdx; gIdx.y = blockIdx.y * blockDim.y + threadIdx.y; gIdx.x = blockIdx.x * blockDim.x + threadIdx.x; float sum = 0; if(gIdx.x < cols && gIdx.y < rows) { ...
.file "tmpxft_003858cf_00000000-6_matmul.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3639: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z12matMulKernelPfS_S_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> #include <ctime> __global__ void matMulKernel(float* matA, float* matB, float* matC, int rows, int cols) { dim3 gIdx; gIdx.y = blockIdx.y * blockDim.y + threadIdx.y; gIdx.x = blockIdx.x * blockDim.x + threadIdx.x; float sum = 0; if(gIdx.x < cols &&...
.text .file "matmul.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z27__device_stub__matMulKernelPfS_S_ii # -- Begin function _Z27__device_stub__matMulKernelPf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12matMulKernelPfS_S_ii ; -- Begin function _Z12matMulKernelPfS_S_ii .globl _Z12matMulKernelPfS_S_ii .p2align 8 .type _Z12matMulKernelPfS_S_ii,@function _Z12matMulKernelPfS_S_ii: ; @_Z12matMulKernelPfS_S_ii ; %bb.0: s_clause 0x1 s_load_...
033d5f8b49656833238aab0355c0f08a553d5487
/** * 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...
.file "tmpxft_002e1424_00000000-6_collatz.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUn...
code for sm_89 Function : _Z13verifyCollatzl .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/** * 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...
.text .file "collatz.hip" .globl _Z28__device_stub__verifyCollatzl # -- Begin function _Z28__device_stub__verifyCollatzl .type _Z28__device_stub__verifyCollatzl,@function _Z28__device_stub__verifyCollatzl: # @_Z28__device_stub__verifyCollatzl .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13verifyCollatzl ; -- Begin function _Z13verifyCollatzl .globl _Z13verifyCollatzl .p2align 8 .type _Z13verifyCollatzl,@function _Z13verifyCollatzl: ; @_Z13verifyCollatzl ; %bb.0: ; %._crit_edge ...
452a51c9d5a81d434135b8fd2f77a8dd5245d7a4
extern "C" { __global__ void tx1mx_32(const int lengthX, const float *t, const float *x, float *z) { int i = threadIdx.x + blockIdx.x * blockDim.x; if (i<lengthX) { z[i] += t[i]*x[i]*(1.0-x[i]); } } }
.file "tmpxft_00334a8b_00000000-6_tx1mx_32.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaU...
code for sm_89 Function : tx1mx_32 .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> extern "C" { __global__ void tx1mx_32(const int lengthX, const float *t, const float *x, float *z) { int i = threadIdx.x + blockIdx.x * blockDim.x; if (i<lengthX) { z[i] += t[i]*x[i]*(1.0-x[i]); } } }
.text .file "tx1mx_32.hip" .globl __device_stub__tx1mx_32 # -- Begin function __device_stub__tx1mx_32 .type __device_stub__tx1mx_32,@function __device_stub__tx1mx_32: # @__device_stub__tx1mx_32 .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected tx1mx_32 ; -- Begin function tx1mx_32 .globl tx1mx_32 .p2align 8 .type tx1mx_32,@function tx1mx_32: ; @tx1mx_32 ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], 0x0 s_waitcnt lgkmc...
4ecdace2a06bb4f0a66e81644abdeb1a0cdf3f84
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <unistd.h> #include <ctype.h> struct ThreadStruct { float *a, *b, *c; int size, elapsed_time; }; __global__ void vectorMultGPU(float *a, float *b, float *c, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; while (i < n)...
.file "tmpxft_002a9874_00000000-6_GPU_CPUbench.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2054: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2054: .size _ZL26__c...
code for sm_89 Function : _Z13vectorMultGPUPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <unistd.h> #include <ctype.h> struct ThreadStruct { float *a, *b, *c; int size, elapsed_time; }; __global__ void vectorMultGPU(float *a, float *b, float *c, int n) { int i = blockIdx.x * blockDim.x ...
.text .file "GPU_CPUbench.hip" .globl _Z28__device_stub__vectorMultGPUPfS_S_i # -- Begin function _Z28__device_stub__vectorMultGPUPfS_S_i .type _Z28__device_stub__vectorMultGPUPfS_S_i,@function _Z28__device_stub__vectorMultGPUPfS_S_i: # @_Z28__device_stub__vectorMultGPUPfS_S_i .cfi_startproc # %bb.0: pushq %r15 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13vectorMultGPUPfS_S_i ; -- Begin function _Z13vectorMultGPUPfS_S_i .globl _Z13vectorMultGPUPfS_S_i .p2align 8 .type _Z13vectorMultGPUPfS_S_i,@function _Z13vectorMultGPUPfS_S_i: ; @_Z13vectorMultGPUPfS_S_i ; %bb.0: s_clause 0x1 s_load_...
14768ebfd38d18884ed5e7ab804b60b655fd1212
#include <curand.h> #include <curand_kernel.h> #define DIM 1600 #define PI 3.14159265 __global__ void Rotate(uchar4 *ptr, unsigned char *R_input, unsigned char *G_input, unsigned char *B_input, size_t i_size, float a, unsigned long col, unsigned long row) { int x = th...
.file "tmpxft_0034534c_00000000-6_RE_transform.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2224: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2224: .size _ZL26__c...
code for sm_89 Function : _Z5ScalePhS_S_S_S_S_mmfmm .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #define DIM 1600 #define PI 3.14159265 __global__ void Rotate(uchar4 *ptr, unsigned char *R_input, unsigned char *G_input, unsigned char *B_input, size_t i_size, float a, unsi...
.text .file "RE_transform.hip" .globl _Z21__device_stub__RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm # -- Begin function _Z21__device_stub__RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm .type _Z21__device_stub__RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm,@function _Z21__device_stub__RotateP15HIP_vector_typeIhLj4EEPhS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm ; -- Begin function _Z6RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm .globl _Z6RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm .p2align 8 .type _Z6RotateP15HIP_vector_typeIhLj4EEPhS2_S2_mfmm,@function _Z6RotateP1...
99b31845649035ec18867b409660bce3876a6003
inline __device__ float operator*(float3 a, float3 b) { return a.x * b.x + a.y * b.y + a.z * b.z; } inline __device__ float dot(float3 a, float3 b) { return a.x * b.x + a.y * b.y + a.z * b.z; } inline __device__ float3 operator*(float3 a, float b) { return make_float3(a.x * b, a.y * b, a.z * b); } inline __dev...
.file "tmpxft_00258a94_00000000-6_operator.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2023: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2023: .size _ZL26__cudaU...
code for sm_89
#include <hip/hip_runtime.h> inline __device__ float operator*(float3 a, float3 b) { return a.x * b.x + a.y * b.y + a.z * b.z; } inline __device__ float dot(float3 a, float3 b) { return a.x * b.x + a.y * b.y + a.z * b.z; } inline __device__ float3 operator*(float3 a, float b) { return make_float3(a.x * b, a.y ...
.text .file "operator.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960f...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
793d740febd88d47172f4813081b81393f75bd93
/***************************************************************************//** * \file LHS1.cu * \author Christopher Minar (minarc@oregonstate.edu) * \brief kernels to generate the left hand side for the intermediate velocity solve */ #include "LHS1.h" namespace kernels { __global__ void LHS1_mid_luo_X(int *row...
.file "tmpxft_0028156e_00000000-6_LHS1.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnreg...
code for sm_89 Function : _ZN7kernels14LHS1_mid_luo_YEPiS0_PdS0_S1_S1_ddii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/***************************************************************************//** * \file LHS1.cu * \author Christopher Minar (minarc@oregonstate.edu) * \brief kernels to generate the left hand side for the intermediate velocity solve */ #include <hip/hip_runtime.h> #include "LHS1.h" namespace kernels { __global_...
.text .file "LHS1.hip" .globl _ZN7kernels29__device_stub__LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii # -- Begin function _ZN7kernels29__device_stub__LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii .type _ZN7kernels29__device_stub__LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii,@function _ZN7kernels29__device_stub__LHS1_mid_luo_XEPiS0_PdS0_S1_S1...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _ZN7kernels14LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii ; -- Begin function _ZN7kernels14LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii .globl _ZN7kernels14LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii .p2align 8 .type _ZN7kernels14LHS1_mid_luo_XEPiS0_PdS0_S1_S1_ddii,@function _ZN...
1fc099ff9d2795fec90c5e903fbc8316f99fdd07
#include <iostream> #include <math.h> #include <time.h> #include <stdlib.h> #include <random> #include <vector> #include <chrono> #include <deque> #include <algorithm> #include <iterator> #include <curand.h> #include <curand_kernel.h> #define BLOCK_SIZE 1024 __global__ void min_reduce(int *arr, const int n) { int...
.file "tmpxft_003521e6_00000000-6_min_element.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNSt13random_deviceD2Ev,"axG",@progbits,_ZNSt13random_deviceD5Ev,comdat .align 2 .weak _ZNSt13random_deviceD2Ev .type _ZNSt13random_deviceD2Ev, @function _ZNSt13random_deviceD2Ev: .L...
code for sm_89 Function : _Z10min_reducePii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <iostream> #include <math.h> #include <time.h> #include <stdlib.h> #include <random> #include <vector> #include <chrono> #include <deque> #include <algorithm> #include <iterator> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #define BLOCK_SIZE 1024 __global__ ...
.text .file "min_element.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z25__device_stub__min_reducePii # -- Begin function _Z25__device_stub__min_reducePii ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10min_reducePii ; -- Begin function _Z10min_reducePii .globl _Z10min_reducePii .p2align 8 .type _Z10min_reducePii,@function _Z10min_reducePii: ; @_Z10min_reducePii ; %bb.0: s_clause 0x1 s_load_b32 s3, s[0:1], 0x1c s_load_...
8c9cd8cfba11c14f86b55a2c2cb8b8181d23193e
//put C:/Users/molly/Desktop/289Q/project/main.cu //nvcc -std=c++11 main.cu // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> #include <cooperative_groups.h> #include <cooperative_groups.h> // includes, project #include <cuda.h> #include <cuda_runtime.h...
.file "tmpxft_00282c88_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB6968: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE6968: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z5benesiiPcPiPViiS0_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
//put C:/Users/molly/Desktop/289Q/project/main.cu //nvcc -std=c++11 main.cu // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> #include <hip/hip_cooperative_groups.h> #include <hip/hip_cooperative_groups.h> // includes, project #include <hip/hip_runtime....
.text .file "main.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z7makeLUTiPi .LCPI0_0: .quad 0xc000000000000000 # double -2 .text .globl _Z7makeLUTiPi .type _Z7makeLUTiPi,@function _Z7makeLUTiPi: # @_Z7makeLUTiPi ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5benesiiPcPiPViiS0_S_ ; -- Begin function _Z5benesiiPcPiPViiS0_S_ .globl _Z5benesiiPcPiPViiS0_S_ .p2align 8 .type _Z5benesiiPcPiPViiS0_S_,@function _Z5benesiiPcPiPViiS0_S_: ; @_Z5benesiiPcPiPViiS0_S_ ; %bb.0: s_clause 0x4 s_load_b64 s...
3bc423f909da4d134a54279ba554eebfcea071cb
#include "includes.h" __global__ void vxy_kernel_large(const float* x, float* y, float* result, unsigned int len, unsigned int rowsz) { unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x + rowsz * blockIdx.y; if (idx < len) result[idx] = x[idx] * y[idx]; }
.file "tmpxft_00248c82_00000000-6_vxy_kernel_large.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL2...
code for sm_89 Function : _Z16vxy_kernel_largePKfPfS1_jj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void vxy_kernel_large(const float* x, float* y, float* result, unsigned int len, unsigned int rowsz) { unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x + rowsz * blockIdx.y; if (idx < len) result[idx] = x[idx] * y[idx]; }
.text .file "vxy_kernel_large.hip" .globl _Z31__device_stub__vxy_kernel_largePKfPfS1_jj # -- Begin function _Z31__device_stub__vxy_kernel_largePKfPfS1_jj .type _Z31__device_stub__vxy_kernel_largePKfPfS1_jj,@function _Z31__device_stub__vxy_kernel_largePKfPfS1_jj: # @_Z31__device_stub__vxy_kernel_largePKfPfS1_jj .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16vxy_kernel_largePKfPfS1_jj ; -- Begin function _Z16vxy_kernel_largePKfPfS1_jj .globl _Z16vxy_kernel_largePKfPfS1_jj .p2align 8 .type _Z16vxy_kernel_largePKfPfS1_jj,@function _Z16vxy_kernel_largePKfPfS1_jj: ; @_Z16vxy_kernel_largePKfPfS1_jj ;...
f59779cd26f67ec1b298bca21c735d818f5775d5
#include <stdio.h> #include <string.h> #define CSC(call) \ do { \ cudaError_t res = call; \ if (res != cudaSuccess) { \ fprintf(stderr, "ERROR in %s:%d. Message: %s\n", \ __FILE__, __LINE__, cudaGetErrorString(res)); \ exit(0); \ } \ } while(0) #define THREADS_PER_BLOCK 20 #de...
.file "tmpxft_00378b80_00000000-6_scalar.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z6scalarPKiS0_iPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <string.h> #define CSC(call) \ do { \ hipError_t res = call; \ if (res != hipSuccess) { \ fprintf(stderr, "ERROR in %s:%d. Message: %s\n", \ __FILE__, __LINE__, hipGetErrorString(res)); \ exit(0); \ } \ } while(0) #defi...
.text .file "scalar.hip" .globl _Z21__device_stub__scalarPKiS0_iPi # -- Begin function _Z21__device_stub__scalarPKiS0_iPi .type _Z21__device_stub__scalarPKiS0_iPi,@function _Z21__device_stub__scalarPKiS0_iPi: # @_Z21__device_stub__scalarPKiS0_iPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6scalarPKiS0_iPi ; -- Begin function _Z6scalarPKiS0_iPi .globl _Z6scalarPKiS0_iPi .p2align 8 .type _Z6scalarPKiS0_iPi,@function _Z6scalarPKiS0_iPi: ; @_Z6scalarPKiS0_iPi ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x2c s_l...
87373a4d4d8ec137ecc9b952d80f07c6c4f2165d
#include <stdlib.h> #include <stdio.h> // This will output the proper CUDA error strings in the event that a CUDA host call returns an error #define checkCudaErrors(err) __checkCudaErrors (err, __FILE__, __LINE__) inline void __checkCudaErrors(cudaError err, const char *file, const int line) { if (cudaS...
.file "tmpxft_00364b48_00000000-6_testP2P.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUn...
code for sm_89
#include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> // This will output the proper CUDA error strings in the event that a CUDA host call returns an error #define checkCudaErrors(err) __checkCudaErrors (err, __FILE__, __LINE__) inline void __checkCudaErrors(hipError_t err, const char *file, ...
.text .file "testP2P.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function main .LCPI0_0: .long 0x447a0000 # float 1000 .LCPI0_1: .long 0x3f800000 # float 1 .LCPI0_2: .long 0x4fc80000 # float 6.71088...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
32cd7f44f46d09a97ce7371378a4a3c17598c2a8
#include <iostream> #include <cmath> #include <algorithm> #include <iomanip> typedef double Real; __global__ void add(int n, Real* x, Real* y){ int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; for(int i=index; i<n; i+=stride){ y[i] = x[i] + y[i]; } } int main(){ std:...
.file "tmpxft_0030b35a_00000000-6_add.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat .weak _ZSt5fixedRSt8ios_base .type _ZSt5fixedRSt8ios_base, @function _ZSt5fixedRSt8ios_base: .LFB3285: .cfi_startproc end...
code for sm_89 Function : _Z3addiPdS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> #include <cmath> #include <algorithm> #include <iomanip> typedef double Real; __global__ void add(int n, Real* x, Real* y){ int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; for(int i=index; i<n; i+=stride){ y[i] = x[i] + y[...
.text .file "add.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addiPdS_ # -- Begin function _Z18__device_stub__addiPdS_ .type _Z18__dev...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addiPdS_ ; -- Begin function _Z3addiPdS_ .globl _Z3addiPdS_ .p2align 8 .type _Z3addiPdS_,@function _Z3addiPdS_: ; @_Z3addiPdS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x24 s_load_b32 s10, s[0:1], 0x0 s_...
3ea6214861ba7b653006900e097b7834f7f77be4
#include <stdlib.h> #include <cuda.h> #include <stdio.h> #include <malloc.h> __host__ void fill_vector(float *V, int len){ float aux = 5.0; for (int i = 0; i < len; i++) { V[i] = ((float)rand() / (float)(RAND_MAX)) * aux ; } } __host__ void print(float *V, int len){ for (int i = 0; i < len; i++) { p...
.file "tmpxft_002af123_00000000-6_add_vector.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cud...
code for sm_89 Function : _Z9AddVectorPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <stdlib.h> #include <hip/hip_runtime.h> #include <stdio.h> #include <malloc.h> __host__ void fill_vector(float *V, int len){ float aux = 5.0; for (int i = 0; i < len; i++) { V[i] = ((float)rand() / (float)(RAND_MAX)) * aux ; } } __host__ void print(float *V, int len){ for (int i = 0; i < len; i...
.text .file "add_vector.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function _Z11fill_vectorPfi .LCPI0_0: .long 0x30000000 # float 4.65661287E-10 .LCPI0_1: .long 0x40a00000 # float 5 .text .globl _Z11fill_vectorPfi .t...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9AddVectorPfS_S_i ; -- Begin function _Z9AddVectorPfS_S_i .globl _Z9AddVectorPfS_S_i .p2align 8 .type _Z9AddVectorPfS_S_i,@function _Z9AddVectorPfS_S_i: ; @_Z9AddVectorPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c ...
3382828935f8d07fdb6cce898911db7c280fd37e
#include <iostream> using namespace std; __global__ void fnSearch(char *str, char *key, int *res) { *res = -1; if(str[threadIdx.x] == *key) *res = threadIdx.x; } int main(int argc, char *argv[]) { if (argc != 3) { cout << "Usage: charSearch.out STRING KEY" << endl; exit(1); } char *dStr, *dKey; int *dR...
.file "tmpxft_00216fc5_00000000-6_charSearch.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z8fnSearchPcS_Pi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <iostream> using namespace std; __global__ void fnSearch(char *str, char *key, int *res) { *res = -1; if(str[threadIdx.x] == *key) *res = threadIdx.x; } int main(int argc, char *argv[]) { if (argc != 3) { cout << "Usage: charSearch.out STRING KEY" << endl; exit(1); }...
.text .file "charSearch.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z23__device_stub__fnSearchPcS_Pi # -- Begin function _Z23__device_stub__fnSearchPcS_Pi ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8fnSearchPcS_Pi ; -- Begin function _Z8fnSearchPcS_Pi .globl _Z8fnSearchPcS_Pi .p2align 8 .type _Z8fnSearchPcS_Pi,@function _Z8fnSearchPcS_Pi: ; @_Z8fnSearchPcS_Pi ; %bb.0: s_clause 0x1 s_load_b64 s[4:5], s[0:1], 0x10 s_l...
a4adc3f5839d585deae0277d42c7f3b7052fb154
float h_A[]= { 0.646300533086186, 0.6891034119322159, 0.5468255896007155, 0.6042228186164886, 0.8659380581803113, 0.6300291449865434, 0.6636944471272259, 0.9882951548595007, 0.6352107108241554, 0.5790636985735749, 0.8804145795069749, 0.9456035439132031, 0.6321246094793169, 0.5520083637849034, 0.8193643662644936, 0.9486...
.file "tmpxft_0038faf0_00000000-6_cpu_thread128_gpu_cuda_2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .s...
code for sm_89
#include <hip/hip_runtime.h> float h_A[]= { 0.646300533086186, 0.6891034119322159, 0.5468255896007155, 0.6042228186164886, 0.8659380581803113, 0.6300291449865434, 0.6636944471272259, 0.9882951548595007, 0.6352107108241554, 0.5790636985735749, 0.8804145795069749, 0.9456035439132031, 0.6321246094793169, 0.55200836378490...
.text .file "cpu_thread128_gpu_cuda_2.hip" .type h_A,@object # @h_A .data .globl h_A .p2align 4, 0x0 h_A: .long 0x3f2573f4 # float 0.646300554 .long 0x3f306915 # float 0.689103424 .long 0x3f0bfcc3 # float 0.546825588 .long 0x3f...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
4d8c08d392174f38e38b8770c10ebed4fe77c8e2
#include <stdio.h> #define ARRAY_SIZE 10000 #define TPB 256 __device__ float saxpy(float x, float y, float a) { return a*x+y; } __global__ void saxpyKernel(float* x, float* y, float a) { const int i = blockIdx.x*blockDim.x + threadIdx.x; y[i] = saxpy(x[i], y[i], a); } __host__ void saxpyCPU(float* x, float* y...
.file "tmpxft_002255df_00000000-6_exercise_2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cud...
code for sm_89 Function : _Z11saxpyKernelPfS_f .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #define ARRAY_SIZE 10000 #define TPB 256 __device__ float saxpy(float x, float y, float a) { return a*x+y; } __global__ void saxpyKernel(float* x, float* y, float a) { const int i = blockIdx.x*blockDim.x + threadIdx.x; y[i] = saxpy(x[i], y[i], a); } __host__ vo...
.text .file "exercise_2.hip" .globl _Z26__device_stub__saxpyKernelPfS_f # -- Begin function _Z26__device_stub__saxpyKernelPfS_f .type _Z26__device_stub__saxpyKernelPfS_f,@function _Z26__device_stub__saxpyKernelPfS_f: # @_Z26__device_stub__saxpyKernelPfS_f .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11saxpyKernelPfS_f ; -- Begin function _Z11saxpyKernelPfS_f .globl _Z11saxpyKernelPfS_f .p2align 8 .type _Z11saxpyKernelPfS_f,@function _Z11saxpyKernelPfS_f: ; @_Z11saxpyKernelPfS_f ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0...
5ac8d866c695f4518636b90b8a3d88aad7b0d5b2
#include<iostream> #include<string> #include<malloc.h> #include<fstream> #include<sstream> #include<vector> #include<cmath> #include<cstdio> #include<stdlib.h> #include<cuda.h> #include<cuda_runtime.h> #include <map> #include <iomanip> #include <sys/time.h> #include<assert.h> #define THREADSPERBLOCK 256 #define EPS 0.0...
.file "tmpxft_002d84cf_00000000-6_mod_k_mean_gpu.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4844: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z18calcCentroids_CUDAiiPfS_Pi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include<iostream> #include<string> #include<malloc.h> #include<fstream> #include<sstream> #include<vector> #include<cmath> #include<cstdio> #include<stdlib.h> #include<hip/hip_runtime.h> #include <map> #include <iomanip> #include <sys/time.h> #include<assert.h> #define THREADSPERBLOCK 256 #define EPS 0.01 using na...
.text .file "mod_k_mean_gpu.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _ZN6DataIOC2Ev # -- Begin function _ZN6DataIOC2Ev .p2align 1, 0x90 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZL23assignToClusters_KMCUDAiiiPfS_Pi,"axG",@progbits,_ZL23assignToClusters_KMCUDAiiiPfS_Pi,comdat .globl _ZL23assignToClusters_KMCUDAiiiPfS_Pi ; -- Begin function _ZL23assignToClusters_KMCUDAiiiPfS_Pi .p2align 8 .type _ZL23assignToClusters_KMCUDAii...
f49b49b05c556d7cb63270771fea1926ea3d3452
#include <cuda.h> #include <stdio.h> #include <sys/time.h> #include <stdio.h> #define CUDA_CHECK_RETURN(value) \ { \ cudaError_t _m_cudaStat = value; \ if (_m_cudaStat != cudaSucc...
.file "tmpxft_002916f6_00000000-6_lab2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z4vaddPKfS0_Pfi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <sys/time.h> #include <stdio.h> #define CUDA_CHECK_RETURN(value) \ { \ hipError_t _m_cudaStat = value; \ if (_m_cudaStat !...
.text .file "lab2.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z5wtimev .LCPI0_0: .quad 0x3eb0c6f7a0b5ed8d # double 9.9999999999999995E-7 .text .globl _Z5wtimev .type _Z5wtimev,@function _Z5wtimev: # @_Z5wtime...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4vaddPKfS0_Pfi ; -- Begin function _Z4vaddPKfS0_Pfi .globl _Z4vaddPKfS0_Pfi .p2align 8 .type _Z4vaddPKfS0_Pfi,@function _Z4vaddPKfS0_Pfi: ; @_Z4vaddPKfS0_Pfi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 ...
c334de0ad4007ef6183eb67bfb0797bf54731bcf
#include <stdio.h> #define N (2048 * 2048) #define THREADS_PER_BLOCK 512 #define RADIUS 3 __global__ void add(int *in,int *out,int size) { __shared__ int temp[THREADS_PER_BLOCK + (2*RADIUS)]; int globalIdx = blockIdx.x * blockDim.x + threadIdx.x; int localIdx = threadIdx.x + RADIUS; int localSum = 0 ; tem...
.file "tmpxft_00275cb6_00000000-6_stencil.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUn...
code for sm_89 Function : _Z3addPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #define N (2048 * 2048) #define THREADS_PER_BLOCK 512 #define RADIUS 3 __global__ void add(int *in,int *out,int size) { __shared__ int temp[THREADS_PER_BLOCK + (2*RADIUS)]; int globalIdx = blockIdx.x * blockDim.x + threadIdx.x; int localIdx = threadIdx.x + RADI...
.text .file "stencil.hip" .globl _Z18__device_stub__addPiS_i # -- Begin function _Z18__device_stub__addPiS_i .type _Z18__device_stub__addPiS_i,@function _Z18__device_stub__addPiS_i: # @_Z18__device_stub__addPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_i ; -- Begin function _Z3addPiS_i .globl _Z3addPiS_i .p2align 8 .type _Z3addPiS_i,@function _Z3addPiS_i: ; @_Z3addPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4:7], s[0:1], 0x0...
e33a94f8b14a6b820f391ee9ccfa12569acff650
#include "utils.cuh" namespace Utils { //////////////////////////////////////////////////////////////////////////// inline uint iDivUp(uint a, uint b) { return (a % b != 0) ? (a / b + 1) : (a / b); } //////////////////////////////////////////////////////////////////////////// void compu...
.file "tmpxft_0032e394_00000000-6_utils.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2012: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2012: .size _ZL26__cudaUnre...
code for sm_89
#include <hip/hip_runtime.h> namespace Utils { /** * Round a / b to nearest higher integer value */ inline uint iDivUp(uint a, uint b); /** * Compute grid and thread block size for a given number of elements * * @param n number of elements * @param blockSize minimal number o...
.text .file "utils.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa79...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
8667be12f8687c983900f6e019cd2abb6544781d
#include <stdio.h> #include <stdlib.h> #include <math.h> #define N = 8 /* Nome: Nathana Facion RA:191079 */ /* Exercicio 7 - Matriz Add */ /* Data: 20/04/2017 */ __global__ void addMatriz(int *A,int *B, int *C, int linhas, int colunas ){ int i = threadIdx.x + blockDim.x*blockIdx.x; // linha int j = threadIdx....
.file "tmpxft_003884a8_00000000-6_soma_matriz.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cu...
code for sm_89 Function : _Z9addMatrizPiS_S_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define N = 8 /* Nome: Nathana Facion RA:191079 */ /* Exercicio 7 - Matriz Add */ /* Data: 20/04/2017 */ __global__ void addMatriz(int *A,int *B, int *C, int linhas, int colunas ){ int i = threadIdx.x + blockDim.x*blockIdx.x; /...
.text .file "soma_matriz.hip" .globl _Z24__device_stub__addMatrizPiS_S_ii # -- Begin function _Z24__device_stub__addMatrizPiS_S_ii .type _Z24__device_stub__addMatrizPiS_S_ii,@function _Z24__device_stub__addMatrizPiS_S_ii: # @_Z24__device_stub__addMatrizPiS_S_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9addMatrizPiS_S_ii ; -- Begin function _Z9addMatrizPiS_S_ii .globl _Z9addMatrizPiS_S_ii .p2align 8 .type _Z9addMatrizPiS_S_ii,@function _Z9addMatrizPiS_S_ii: ; @_Z9addMatrizPiS_S_ii ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0...
305879ce4ad02ce6ce28e3c9a0b79ba784b06777
#include "includes.h" extern "C" { } __global__ void reduce_sum_partial(const float* input, float* output, unsigned int len) { // from http://www.techdarting.com/2014/06/parallel-reduction-in-cuda.html // Load a segment of the input vector into shared memory __shared__ float partialSum[2*256]; int globalThreadId = bloc...
.file "tmpxft_002c2140_00000000-6_reduce_sum_partial.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _Z...
code for sm_89 Function : _Z18reduce_sum_partialPKfPfj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" extern "C" { } __global__ void reduce_sum_partial(const float* input, float* output, unsigned int len) { // from http://www.techdarting.com/2014/06/parallel-reduction-in-cuda.html // Load a segment of the input vector into shared memory __shared__ float partialSum[2*2...
.text .file "reduce_sum_partial.hip" .globl _Z33__device_stub__reduce_sum_partialPKfPfj # -- Begin function _Z33__device_stub__reduce_sum_partialPKfPfj .type _Z33__device_stub__reduce_sum_partialPKfPfj,@function _Z33__device_stub__reduce_sum_partialPKfPfj: # @_Z33__device_stub__reduce_sum_partialPKfPfj .cfi_startp...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18reduce_sum_partialPKfPfj ; -- Begin function _Z18reduce_sum_partialPKfPfj .globl _Z18reduce_sum_partialPKfPfj .p2align 8 .type _Z18reduce_sum_partialPKfPfj,@function _Z18reduce_sum_partialPKfPfj: ; @_Z18reduce_sum_partialPKfPfj ; %bb.0: s...
37be054e772b758f8eeedc3176dce00bd0b93a56
#include "includes.h" __global__ void adagrad_update_1D_1D(float* x, float* d, float* m, float clip, float lr, int size) { int tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = gridDim.x * blockDim.x; for (; tid < size; tid += stride) { if (d[tid] > clip) d[tid] = clip; if (d[tid] < -clip) d[tid] = -clip; m[tid...
.file "tmpxft_002881b9_00000000-6_adagrad_update_1D_1D.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size ...
code for sm_89 Function : _Z20adagrad_update_1D_1DPfS_S_ffi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void adagrad_update_1D_1D(float* x, float* d, float* m, float clip, float lr, int size) { int tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = gridDim.x * blockDim.x; for (; tid < size; tid += stride) { if (d[tid] > clip) d[tid] = clip; if (d[tid] ...
.text .file "adagrad_update_1D_1D.hip" .globl _Z35__device_stub__adagrad_update_1D_1DPfS_S_ffi # -- Begin function _Z35__device_stub__adagrad_update_1D_1DPfS_S_ffi .type _Z35__device_stub__adagrad_update_1D_1DPfS_S_ffi,@function _Z35__device_stub__adagrad_update_1D_1DPfS_S_ffi: # @_Z35__device_stub__adagrad_update_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20adagrad_update_1D_1DPfS_S_ffi ; -- Begin function _Z20adagrad_update_1D_1DPfS_S_ffi .globl _Z20adagrad_update_1D_1DPfS_S_ffi .p2align 8 .type _Z20adagrad_update_1D_1DPfS_S_ffi,@function _Z20adagrad_update_1D_1DPfS_S_ffi: ; @_Z20adagrad_update_1...
d15ec72a1d81ae1d3757a6548bdb6854a785216d
// This program computer the sum of two N-element vectors using unified memory // By: Nick from CoffeeBeforeArch #include <stdio.h> #include <cassert> #include <iostream> using std::cout; // CUDA kernel for vector addition // No change when using CUDA unified memory __global__ void vectorAdd(int *a, int *b, int *c, ...
.file "tmpxft_0020344d_00000000-6_vectorAdd_um_prefetch.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBina...
code for sm_89 Function : _Z9vectorAddPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// This program computer the sum of two N-element vectors using unified memory // By: Nick from CoffeeBeforeArch #include <hip/hip_runtime.h> #include <stdio.h> #include <cassert> #include <iostream> using std::cout; // CUDA kernel for vector addition // No change when using CUDA unified memory __global__ void vect...
.text .file "vectorAdd_um_prefetch.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__vectorAddPiS_S_i # -- Begin function _Z24__device_stub__vec...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9vectorAddPiS_S_i ; -- Begin function _Z9vectorAddPiS_S_i .globl _Z9vectorAddPiS_S_i .p2align 8 .type _Z9vectorAddPiS_S_i,@function _Z9vectorAddPiS_S_i: ; @_Z9vectorAddPiS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c ...
ad250295b8d982f3e8ebbe378ad092d07d41dc96
#include<stdio.h> #include<stdlib.h> #include <sys/time.h> #define imin(a,b) (a<b?a:b) const int N = 16777216; const int TH_B = 512; const int blocksPerGrid = imin( 32, (N+TH_B-1) / TH_B ); long long start_timer() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 1000000 + tv.tv_usec; } long lon...
.file "tmpxft_00322d73_00000000-6_vector_addition_on_cpu_and_gpu.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE203...
code for sm_89 Function : _Z11GPU_big_dotPfS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include<stdio.h> #include<stdlib.h> #include <sys/time.h> #define imin(a,b) (a<b?a:b) const int N = 16777216; const int TH_B = 512; const int blocksPerGrid = imin( 32, (N+TH_B-1) / TH_B ); long long start_timer() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 10000...
.text .file "vector_addition_on_cpu_and_gpu.hip" .globl _Z11start_timerv # -- Begin function _Z11start_timerv .type _Z11start_timerv,@function _Z11start_timerv: # @_Z11start_timerv .cfi_startproc # %bb.0: pushq %rbx .cfi_def_cfa_offset 16 subq $16, %rsp .cfi_def_cfa_offset ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11GPU_big_dotPfS_S_ ; -- Begin function _Z11GPU_big_dotPfS_S_ .globl _Z11GPU_big_dotPfS_S_ .p2align 8 .type _Z11GPU_big_dotPfS_S_,@function _Z11GPU_big_dotPfS_S_: ; @_Z11GPU_big_dotPfS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1...
598c0a79003e54a66e6726b28822bc5623b1bd81
#include<iostream> const int SHARED_MEM_SIZE = 128*sizeof(int); __global__ void ReverseFunc(int *a, int *r, int N){ __shared__ int sh[SHARED_MEM_SIZE]; int id = threadIdx.x + blockDim.x*blockIdx.x; sh[threadIdx.x] = a[id]; __syncthreads(); r[id] = sh[blockDim.x-threadIdx.x-1]; } int main(){ int *a, *r; int *...
.file "tmpxft_00389d31_00000000-6_cudaReverse_shared.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@...
code for sm_89 Function : _Z11ReverseFuncPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include<iostream> const int SHARED_MEM_SIZE = 128*sizeof(int); __global__ void ReverseFunc(int *a, int *r, int N){ __shared__ int sh[SHARED_MEM_SIZE]; int id = threadIdx.x + blockDim.x*blockIdx.x; sh[threadIdx.x] = a[id]; __syncthreads(); r[id] = sh[blockDim.x-threadIdx.x-1]; } i...
.text .file "cudaReverse_shared.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z26__device_stub__ReverseFuncPiS_i # -- Begin function _Z26__device_stub__Revers...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11ReverseFuncPiS_i ; -- Begin function _Z11ReverseFuncPiS_i .globl _Z11ReverseFuncPiS_i .p2align 8 .type _Z11ReverseFuncPiS_i,@function _Z11ReverseFuncPiS_i: ; @_Z11ReverseFuncPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0...
339bb8c166deed40e3d4a9fc7b2753f0ad53c6a2
/* * purpose: just a demo to show how vector addition can be done on * the GPU with just a single thread block * compilation: nvcc ./single_thread_block_vector_addition.cu * usage: ./a.out */ #include <stdio.h> #define N 100 /* * GPU kernel */ __global__ void VecAdd(float *A,...
.file "tmpxft_00305ce6_00000000-6_single_thread_block_vector_addition.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .L...
code for sm_89 Function : _Z6VecAddPfS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/* * purpose: just a demo to show how vector addition can be done on * the GPU with just a single thread block * compilation: nvcc ./single_thread_block_vector_addition.cu * usage: ./a.out */ #include <hip/hip_runtime.h> #include <stdio.h> #define N 100 /* * GPU kernel */ __...
.text .file "single_thread_block_vector_addition.hip" .globl _Z21__device_stub__VecAddPfS_S_ # -- Begin function _Z21__device_stub__VecAddPfS_S_ .type _Z21__device_stub__VecAddPfS_S_,@function _Z21__device_stub__VecAddPfS_S_: # @_Z21__device_stub__VecAddPfS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6VecAddPfS_S_ ; -- Begin function _Z6VecAddPfS_S_ .globl _Z6VecAddPfS_S_ .p2align 8 .type _Z6VecAddPfS_S_,@function _Z6VecAddPfS_S_: ; @_Z6VecAddPfS_S_ ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 v_lshlrev_b32_e32 v0, 2, ...
505cfdb0db1a4a56c5305e4bd7edb33682f64289
// moveArrays.cu // // demonstrates CUDA interface to data allocation on device (GPU) // and data movement between host (CPU) and device. #include <stdio.h> #include <assert.h> #include <cuda.h> int main(void) { float *a_h, *b_h; // pointers to host memory float *a_d, *b_d; // pointers to device memory ...
.file "tmpxft_00266ec8_00000000-6_ex1.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnregi...
code for sm_89
// moveArrays.cu // // demonstrates CUDA interface to data allocation on device (GPU) // and data movement between host (CPU) and device. #include <stdio.h> #include <assert.h> #include <hip/hip_runtime.h> int main(void) { float *a_h, *b_h; // pointers to host memory float *a_d, *b_d; // pointers to devi...
.text .file "ex1.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function main .LCPI0_0: .long 0x41200000 # float 10 .text .globl main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r14 ....
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
1092ca7180aa5b9a34670421dae5b15d7c0ab0e7
#include "includes.h" __global__ void convn_valid_kernel(float *output, float *data, float *kernel, const int H, const int W, const int kH, const int kW) { // Matrix index int x = blockIdx.x*blockDim.x + threadIdx.x; int y = blockIdx.y*blockDim.y + threadIdx.y; // vH, vW stands for valid H and valid W const int vH = ...
.file "tmpxft_00218461_00000000-6_convn_valid_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _Z...
code for sm_89 Function : _Z18convn_valid_kernelPfS_S_iiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void convn_valid_kernel(float *output, float *data, float *kernel, const int H, const int W, const int kH, const int kW) { // Matrix index int x = blockIdx.x*blockDim.x + threadIdx.x; int y = blockIdx.y*blockDim.y + threadIdx.y; // vH, vW stands for valid...
.text .file "convn_valid_kernel.hip" .globl _Z33__device_stub__convn_valid_kernelPfS_S_iiii # -- Begin function _Z33__device_stub__convn_valid_kernelPfS_S_iiii .type _Z33__device_stub__convn_valid_kernelPfS_S_iiii,@function _Z33__device_stub__convn_valid_kernelPfS_S_iiii: # @_Z33__device_stub__convn_valid_kernelPfS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18convn_valid_kernelPfS_S_iiii ; -- Begin function _Z18convn_valid_kernelPfS_S_iiii .globl _Z18convn_valid_kernelPfS_S_iiii .p2align 8 .type _Z18convn_valid_kernelPfS_S_iiii,@function _Z18convn_valid_kernelPfS_S_iiii: ; @_Z18convn_valid_kernelPf...
fcfe7ed83ea5a2b926eb78abb7615274bb23b2cb
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <iostream> #define ARRAY_SIZE 1024 #define BLOCK_DIM 1024 using namespace std; __global__ void fill_histrogram(int *dev_out, int *dev_in) { int i = blockIdx.x * bloc...
.file "tmpxft_0029df2a_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z15fill_histrogramPiS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <iostream> #define ARRAY_SIZE 1024 #define BLOCK_DIM 1024 using namespace std; __global__ void fill_histrogram(int *dev_out, int *dev_in) { int i = blockIdx.x * blockDim.x + threadIdx.x; atomicAdd(...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z30__device_stub__fill_histrogramPiS_ # -- Begin function _Z30__device_stub__fill_histrogram...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15fill_histrogramPiS_ ; -- Begin function _Z15fill_histrogramPiS_ .globl _Z15fill_histrogramPiS_ .p2align 8 .type _Z15fill_histrogramPiS_,@function _Z15fill_histrogramPiS_: ; @_Z15fill_histrogramPiS_ ; %bb.0: s_clause 0x1 s_load_b32 s...
3875c88eaf7a179a5be9165480e5d4d14bc9ec3f
/* ============================================================================ Name : lab_1.cu Author : Boyarskikh_Nikita Version : Copyright : Description : CUDA compute reciprocals ============================================================================ */ #include <iostream> #include...
.file "tmpxft_0028f347_00000000-6_lab_1.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3641: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_end...
code for sm_89 Function : _Z16reciprocalKernelPfS_fffj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/* ============================================================================ Name : lab_1.cu Author : Boyarskikh_Nikita Version : Copyright : Description : CUDA compute reciprocals ============================================================================ */ #include <hip/hip_runtime.h...
.text .file "lab_1.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z31__device_stub__reciprocalKernelPfS_fffj # -- Begin function _Z31__device_stub__reciprocalK...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16reciprocalKernelPfS_fffj ; -- Begin function _Z16reciprocalKernelPfS_fffj .globl _Z16reciprocalKernelPfS_fffj .p2align 8 .type _Z16reciprocalKernelPfS_fffj,@function _Z16reciprocalKernelPfS_fffj: ; @_Z16reciprocalKernelPfS_fffj ; %bb.0: s...
88bd593725327dd88917f52e601c939e2e7b7b4d
#include "includes.h" __global__ void x33(float* x34, float* x35, float* x36, int x37) { int x38 = gridDim.x * blockDim.x; int x39 = threadIdx.x + blockIdx.x * blockDim.x; while (x39 < x37) { int x40 = x39; x36[x40] = x34[x40] / x35[x40]; x39 = x39 + x38; } }
.file "tmpxft_002bbcf3_00000000-6_x33.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnregi...
code for sm_89 Function : _Z3x33PfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void x33(float* x34, float* x35, float* x36, int x37) { int x38 = gridDim.x * blockDim.x; int x39 = threadIdx.x + blockIdx.x * blockDim.x; while (x39 < x37) { int x40 = x39; x36[x40] = x34[x40] / x35[x40]; x39 = x39 + x38; } }
.text .file "x33.hip" .globl _Z18__device_stub__x33PfS_S_i # -- Begin function _Z18__device_stub__x33PfS_S_i .type _Z18__device_stub__x33PfS_S_i,@function _Z18__device_stub__x33PfS_S_i: # @_Z18__device_stub__x33PfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3x33PfS_S_i ; -- Begin function _Z3x33PfS_S_i .globl _Z3x33PfS_S_i .p2align 8 .type _Z3x33PfS_S_i,@function _Z3x33PfS_S_i: ; @_Z3x33PfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x2c s_load_b32 s12, s[0:1],...
dc195493c51e2d8ae6138226895124547f240240
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; float reduce_cpu(float* data, int* pat){ float sum = 0; int m = pat[0]; int numElement = pat[1]; for(int i = 0; i < numElement; i++) { float prod = 1; for(int j = 2; j < m+2; j++) prod *= data[pat[j]*nu...
.file "tmpxft_002cdb2f_00000000-6_reduce.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3646: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z10dot_kernelPfS_Pi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; float reduce_cpu(float* data, int* pat){ float sum = 0; int m = pat[0]; int numElement = pat[1]; for(int i = 0; i < numElement; i++) { float prod = 1; for(int j = 2; j < m+2; ...
.text .file "reduce.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14reduce_kernel1PfS_i ; -- Begin function _Z14reduce_kernel1PfS_i .globl _Z14reduce_kernel1PfS_i .p2align 8 .type _Z14reduce_kernel1PfS_i,@function _Z14reduce_kernel1PfS_i: ; @_Z14reduce_kernel1PfS_i ; %bb.0: s_clause 0x2 s_load_b32 s...
8c40e3e344f74f7ab125a85d668ab07fcc6a121f
/* This is a automatically generated test. Do not modify */ #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,int var_2,int var_3,float var_4,float var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,float var_12,float var_13,float* var...
.file "tmpxft_0032a945_00000000-6_test.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z7computefiiiffffffffffPfffffffffffffff .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/* This is a automatically generated test. Do not modify */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,int var_2,int var_3,float var_4,float var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,float ...
.text .file "test.hip" .globl _Z22__device_stub__computefiiiffffffffffPfffffffffffffff # -- Begin function _Z22__device_stub__computefiiiffffffffffPfffffffffffffff .type _Z22__device_stub__computefiiiffffffffffPfffffffffffffff,@function _Z22__device_stub__computefiiiffffffffffPfffffffffffffff: # @_Z22__device_stub_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7computefiiiffffffffffPfffffffffffffff ; -- Begin function _Z7computefiiiffffffffffPfffffffffffffff .globl _Z7computefiiiffffffffffPfffffffffffffff .p2align 8 .type _Z7computefiiiffffffffffPfffffffffffffff,@function _Z7computefiiiffffffffffPffffffffff...
73f07511fe4fab1fdb6749f4f077a2f43f41b9c7
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<stdbool.h> #include <cuda.h> #include <cuda_runtime.h> extern "C" void allocateMemory(int **arr, int arraySize) { cudaMallocManaged(arr, ( (arraySize* sizeof(int)))); } extern "C" void callCudaFree(int* local) { cudaFree(local); } //extern void ...
.file "tmpxft_00236843_00000000-6_bitonicCuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2046: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2046: .size _ZL26__cu...
code for sm_89 Function : _Z11mergeKerneliiiPiiiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<stdbool.h> #include <hip/hip_runtime.h> extern "C" void allocateMemory(int **arr, int arraySize) { hipMallocManaged(arr, ( (arraySize* sizeof(int)))); } extern "C" void callCudaFree(int* local) { hipFree(local); } //extern void callMPI(int* loc...
.text .file "bitonicCuda.hip" .globl allocateMemory # -- Begin function allocateMemory .type allocateMemory,@function allocateMemory: # @allocateMemory .cfi_startproc # %bb.0: movslq %esi, %rsi shlq $2, %rsi movl $1, %edx jmp hipMallocManaged # TAILCALL ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11mergeKerneliiiPiiiS_S_ ; -- Begin function _Z11mergeKerneliiiPiiiS_S_ .globl _Z11mergeKerneliiiPiiiS_S_ .p2align 8 .type _Z11mergeKerneliiiPiiiS_S_,@function _Z11mergeKerneliiiPiiiS_S_: ; @_Z11mergeKerneliiiPiiiS_S_ ; %bb.0: s_clause 0x...
35779d45d67b8c7ecfb5365a787128eb6e93494c
#include<stdio.h> #include<stdlib.h> __global__ void print_gpu(void) { printf("Houston, we have a problem in section [%d,%d] \ From Apollo 13\n", threadIdx.x,blockIdx.x); } int main(void) { printf("This is Houston. Say again, please. \ From Base\n"); print_gpu<<<2,2>>>(); cudaD...
.file "tmpxft_0031c4e3_00000000-6_hello_houston.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__...
code for sm_89 Function : _Z9print_gpuv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include<stdio.h> #include<stdlib.h> __global__ void print_gpu(void) { printf("Houston, we have a problem in section [%d,%d] \ From Apollo 13\n", threadIdx.x,blockIdx.x); } int main(void) { printf("This is Houston. Say again, please. \ From Base\n"); p...
.text .file "hello_houston.hip" .globl _Z24__device_stub__print_gpuv # -- Begin function _Z24__device_stub__print_gpuv .type _Z24__device_stub__print_gpuv,@function _Z24__device_stub__print_gpuv: # @_Z24__device_stub__print_gpuv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9print_gpuv ; -- Begin function _Z9print_gpuv .globl _Z9print_gpuv .p2align 8 .type _Z9print_gpuv,@function _Z9print_gpuv: ; @_Z9print_gpuv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b32 v2, -1, 0 v_m...
a8ad665a7303bf4ad41f58684da88d12122e27e1
#include <curand_kernel.h> namespace curfil { namespace gpu { __global__ void setup_kernel(int seed, curandState *state) { int id = blockIdx.x * blockDim.x + threadIdx.x; /* Each thread gets same seed, a different sequence number, no offset */ curand_init(seed, id, 0, &state[id]); } __global__ void gener...
.file "tmpxft_00381145_00000000-6_random_features.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2224: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2224: .size _ZL26...
code for sm_89 Function : _ZN6curfil3gpu23generate_uniform_kernelEP17curandStateXORWOWPj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <hiprand/hiprand_kernel.h> namespace curfil { namespace gpu { __global__ void setup_kernel(int seed, hiprandState *state) { int id = blockIdx.x * blockDim.x + threadIdx.x; /* Each thread gets same seed, a different sequence number, no offset */ hiprand_init(seed, id,...
.text .file "random_features.hip" .globl _ZN6curfil3gpu27__device_stub__setup_kernelEiP12hiprandState # -- Begin function _ZN6curfil3gpu27__device_stub__setup_kernelEiP12hiprandState .type _ZN6curfil3gpu27__device_stub__setup_kernelEiP12hiprandState,@function _ZN6curfil3gpu27__device_stub__setup_kernelEiP12hiprandS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _ZN6curfil3gpu12setup_kernelEiP12hiprandState ; -- Begin function _ZN6curfil3gpu12setup_kernelEiP12hiprandState .globl _ZN6curfil3gpu12setup_kernelEiP12hiprandState .p2align 8 .type _ZN6curfil3gpu12setup_kernelEiP12hiprandState,@function _ZN6curfil3gpu1...
155b11fd3acaa627e6bf3c9dbf3fc2b8cff312f8
#include <math.h> #include <fstream> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <cuda_runtime.h> //Se definen los valores fijos a utilizar en el programa #define H 288 //Cada bloque manejara 100 datos correspondientes a 5 minutos de mediciones en intervalos de 3 segu...
.file "tmpxft_002a6881_00000000-6_prediccionProyecto3.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3773: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary...
code for sm_89 Function : _Z10prediccionPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <math.h> #include <fstream> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <hip/hip_runtime.h> //Se definen los valores fijos a utilizar en el programa #define H 288 //Cada bloque manejara 100 datos correspondientes a 5 minutos de mediciones en intervalos de 3 s...
.text .file "prediccionProyecto3.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__inversionPfS_ # -- Begin function _Z24__device_stub__inversio...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9inversionPfS_ ; -- Begin function _Z9inversionPfS_ .globl _Z9inversionPfS_ .p2align 8 .type _Z9inversionPfS_,@function _Z9inversionPfS_: ; @_Z9inversionPfS_ ; %bb.0: s_load_b32 s2, s[0:1], 0x1c s_waitcnt lgkmcnt(0) s_a...
fdb5ae54a09c6fe04ec1ea236df599eec1e1f372
#include "includes.h" const int Nthreads = 1024, maxFR = 100000, NrankMax = 3, nmaxiter = 500, NchanMax = 32; ////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////...
.file "tmpxft_0032bb08_00000000-6_computePCfeatures.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL...
code for sm_89 Function : _Z17computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" const int Nthreads = 1024, maxFR = 100000, NrankMax = 3, nmaxiter = 500, NchanMax = 32; ////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////...
.text .file "computePCfeatures.hip" .globl _Z32__device_stub__computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf # -- Begin function _Z32__device_stub__computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf .type _Z32__device_stub__computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf,@function _Z32__device...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf ; -- Begin function _Z17computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf .globl _Z17computePCfeaturesPKdPKiPKfS2_S2_S4_S4_S4_S4_S2_S2_S4_Pf .p2align 8 .type _Z17computePCfeaturesPKdPKiPK...
8c9af8396f500fcdd873300ef53aaecb694626ed
#include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <cuda_runtime_api.h> #include <errno.h> /* To compile: nvcc -o NishantLinear NishantLinear.cu ./NishantLinear */ typedef struct point_t { double x; double y; } point_t; int n_data = 1000; __device__ int d_n_data = 1000; po...
.file "tmpxft_00245386_00000000-6_NishantLinear.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2047: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2047: .size _ZL26__...
code for sm_89 Function : _Z11d_rms_errorPdS_S_P7point_t .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <hip/hip_runtime_api.h> #include <errno.h> /* To compile: nvcc -o NishantLinear NishantLinear.cu ./NishantLinear */ typedef struct point_t { double x; double y; } point_t; int n_data = 1000; __de...
.text .file "NishantLinear.hip" .globl _Z14residual_errordddd # -- Begin function _Z14residual_errordddd .type _Z14residual_errordddd,@function _Z14residual_errordddd: # @_Z14residual_errordddd .cfi_startproc # %bb.0: mulsd %xmm2, %xmm0 addsd %xmm3, %xmm0 subsd %xmm1, %xmm0 mulsd %xmm0...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11d_rms_errorPdS_S_P7point_t ; -- Begin function _Z11d_rms_errorPdS_S_P7point_t .globl _Z11d_rms_errorPdS_S_P7point_t .p2align 8 .type _Z11d_rms_errorPdS_S_P7point_t,@function _Z11d_rms_errorPdS_S_P7point_t: ; @_Z11d_rms_errorPdS_S_P7point_t ;...