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
14d5de9f72fcbdf4728a074784ed4c69b570cf07
#include <cuda.h> #include <stdio.h> #include <sys/time.h> inline double nowSec() { struct timeval t; struct timezone tzp; gettimeofday(&t, &tzp); return t.tv_sec + t.tv_usec*1e-6; } __host__ void host_mmul (int *A, int *B, int *C, int N) { for(int i=0; i<N; i++) { for (int j=0; j<N; j++) { for(int k=0; ...
.file "tmpxft_0031edf2_00000000-6_Matrix_mult.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__cu...
code for sm_89 Function : _Z11global_mmulPiS_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 <sys/time.h> inline double nowSec() { struct timeval t; struct timezone tzp; gettimeofday(&t, &tzp); return t.tv_sec + t.tv_usec*1e-6; } __host__ void host_mmul (int *A, int *B, int *C, int N) { for(int i=0; i<N; i++) { for (int j=0; j<N; j++) { fo...
.text .file "Matrix_mult.hip" .globl _Z9host_mmulPiS_S_i # -- Begin function _Z9host_mmulPiS_S_i .type _Z9host_mmulPiS_S_i,@function _Z9host_mmulPiS_S_i: # @_Z9host_mmulPiS_S_i .cfi_startproc # %bb.0: testl %ecx, %ecx jle .LBB0_8 # %bb.1: # %.preheade...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11global_mmulPiS_S_i ; -- Begin function _Z11global_mmulPiS_S_i .globl _Z11global_mmulPiS_S_i .p2align 8 .type _Z11global_mmulPiS_S_i,@function _Z11global_mmulPiS_S_i: ; @_Z11global_mmulPiS_S_i ; %bb.0: s_load_b32 s6, s[0:1], 0x18 s...
4072733f8bd9e9f4e88c02b6471e27115db593d8
#include "includes.h" __global__ void Fprop2(const float* layer1, const float* syn2, float* out) { int i = blockDim.y*blockIdx.y + threadIdx.y; //10 int j = blockIdx.x; //Data.count //int k = threadIdx.x; //256 float x = 0.0; for (int k=0; k < 256; ++k) x += layer1[j*256 + k] * syn2[k*10 + i]; out[j*10 + i] = x; }
.file "tmpxft_00210e86_00000000-6_Fprop2.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__cudaUnr...
code for sm_89 Function : _Z6Fprop2PKfS0_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" __global__ void Fprop2(const float* layer1, const float* syn2, float* out) { int i = blockDim.y*blockIdx.y + threadIdx.y; //10 int j = blockIdx.x; //Data.count //int k = threadIdx.x; //256 float x = 0.0; for (int k=0; k < 256; ++k) x += layer1[j*256 + k] * syn2[k*10 ...
.text .file "Fprop2.hip" .globl _Z21__device_stub__Fprop2PKfS0_Pf # -- Begin function _Z21__device_stub__Fprop2PKfS0_Pf .type _Z21__device_stub__Fprop2PKfS0_Pf,@function _Z21__device_stub__Fprop2PKfS0_Pf: # @_Z21__device_stub__Fprop2PKfS0_Pf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6Fprop2PKfS0_Pf ; -- Begin function _Z6Fprop2PKfS0_Pf .globl _Z6Fprop2PKfS0_Pf .p2align 8 .type _Z6Fprop2PKfS0_Pf,@function _Z6Fprop2PKfS0_Pf: ; @_Z6Fprop2PKfS0_Pf ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_...
6c2daae4cc90b757ecbfc2105a560e6f099de61e
#include <iostream> int static_cuda11_func(int); int shared_cuda11_func(int); void test_functions() { static_cuda11_func( int(42) ); shared_cuda11_func( int(42) ); } int main(int argc, char **argv) { test_functions(); return 0; }
.file "tmpxft_0025e3a5_00000000-6_main.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_endp...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> int static_cuda11_func(int); int shared_cuda11_func(int); void test_functions() { static_cuda11_func( int(42) ); shared_cuda11_func( int(42) ); } int main(int argc, char **argv) { test_functions(); return 0; }
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z14test_functionsv # -- Begin function _Z14test_functionsv .type _Z14test_functio...
.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-...
3eff1db1e44387c19e9e4fc983a8a0a9449ca257
#include <math.h> #include <stdlib.h> //! Ising model evolution /*! \param G Spins on the square lattice [n-by-n] \param w Weight matrix [5-by-5] \param k Number of iterations [scalar] \param n Number of lattice points per dim [...
.file "tmpxft_00209b23_00000000-6_ising.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 Function : _Z20kernelCalcNewLatticePiS_Pdii .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 <math.h> #include <stdlib.h> //! Ising model evolution /*! \param G Spins on the square lattice [n-by-n] \param w Weight matrix [5-by-5] \param k Number of iterations [scalar] \param n Number of l...
.text .file "ising.hip" .globl _Z35__device_stub__kernelCalcNewLatticePiS_Pdii # -- Begin function _Z35__device_stub__kernelCalcNewLatticePiS_Pdii .type _Z35__device_stub__kernelCalcNewLatticePiS_Pdii,@function _Z35__device_stub__kernelCalcNewLatticePiS_Pdii: # @_Z35__device_stub__kernelCalcNewLatticePiS_Pdii .cfi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20kernelCalcNewLatticePiS_Pdii ; -- Begin function _Z20kernelCalcNewLatticePiS_Pdii .globl _Z20kernelCalcNewLatticePiS_Pdii .p2align 8 .type _Z20kernelCalcNewLatticePiS_Pdii,@function _Z20kernelCalcNewLatticePiS_Pdii: ; @_Z20kernelCalcNewLattice...
ea4c18d6f9e9dd6757106a164f03e7f81df3f42b
#include <stdio.h> #include <cuda_runtime.h> #include <thrust/device_vector.h> #include <thrust/functional.h> __global__ void calc_pi(double *dev, double step) { int i = blockIdx.x * blockDim.x + threadIdx.x; double x = (i + 0.5) * step; dev[i] = 4.0 /(1.0 + x * x); } int main() { static long num_ste...
.file "tmpxft_002580c2_00000000-6_pi_gpu.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat ...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tEmN6thrust20THRUST_200700_890_NS8cuda_cub20__uninitialized_fill7functorINS7_10device_ptrIdEEdEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(E...
#include <stdio.h> #include <hip/hip_runtime.h> #include <thrust/device_vector.h> #include <thrust/functional.h> __global__ void calc_pi(double *dev, double step) { int i = blockIdx.x * blockDim.x + threadIdx.x; double x = (i + 0.5) * step; dev[i] = 4.0 /(1.0 + x * x); } int main() { static long num_...
.text .file "pi_gpu.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z22__device_stub__calc_piPdd # -- Begin function _Z22__device_stub__calc_piPdd .type _Z22...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7calc_piPdd ; -- Begin function _Z7calc_piPdd .globl _Z7calc_piPdd .p2align 8 .type _Z7calc_piPdd,@function _Z7calc_piPdd: ; @_Z7calc_piPdd ; %bb.0: s_load_b32 s2, s[0:1], 0x1c s_waitcnt lgkmcnt(0) s_and_b32 s2, s...
b5dff279c0d60c647ac274af77e38d788b5443b4
#include <stdlib.h> #include <stdio.h> // Kernel adding entries of the adjacent array entries (radius of 3) of a 1D array // // initial approach // * 7 kernels, each adding one element to the sum // * data always read from main memory __global__ void kernel_add(int n, int offset, int *a, int *b) { int i = blockDim...
.file "tmpxft_002921cb_00000000-6_kerneladd01.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 : _Z10kernel_addiiPiS_ .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 <stdlib.h> #include <stdio.h> // Kernel adding entries of the adjacent array entries (radius of 3) of a 1D array // // initial approach // * 7 kernels, each adding one element to the sum // * data always read from main memory __global__ void kernel_add(int n, int offset, int *a,...
.text .file "kerneladd01.hip" .globl _Z25__device_stub__kernel_addiiPiS_ # -- Begin function _Z25__device_stub__kernel_addiiPiS_ .type _Z25__device_stub__kernel_addiiPiS_,@function _Z25__device_stub__kernel_addiiPiS_: # @_Z25__device_stub__kernel_addiiPiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offse...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10kernel_addiiPiS_ ; -- Begin function _Z10kernel_addiiPiS_ .globl _Z10kernel_addiiPiS_ .p2align 8 .type _Z10kernel_addiiPiS_,@function _Z10kernel_addiiPiS_: ; @_Z10kernel_addiiPiS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0...
194ad7185f60b9cfa8569546bf7e62e79012b7cd
#include "includes.h" __device__ float do_fraction(float numer, float denom) { float result = 0.f; if((numer == denom) && (numer != 0.f)) result = 1.f; else if(denom != 0.f) result = numer / denom; return result; } __global__ void get_bin_scores(int nbins, int order, int nknots, float * knots, int nsamples, int nx, f...
.file "tmpxft_00304b9f_00000000-6_get_bin_scores.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_...
code for sm_89 Function : _Z14get_bin_scoresiiiPfiiS_iS_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" __device__ float do_fraction(float numer, float denom) { float result = 0.f; if((numer == denom) && (numer != 0.f)) result = 1.f; else if(denom != 0.f) result = numer / denom; return result; } __global__ void get_bin_scores(int nbins, int order, int nknots, float * ...
.text .file "get_bin_scores.hip" .globl _Z29__device_stub__get_bin_scoresiiiPfiiS_iS_i # -- Begin function _Z29__device_stub__get_bin_scoresiiiPfiiS_iS_i .type _Z29__device_stub__get_bin_scoresiiiPfiiS_iS_i,@function _Z29__device_stub__get_bin_scoresiiiPfiiS_iS_i: # @_Z29__device_stub__get_bin_scoresiiiPfiiS_iS_i ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14get_bin_scoresiiiPfiiS_iS_i ; -- Begin function _Z14get_bin_scoresiiiPfiiS_iS_i .globl _Z14get_bin_scoresiiiPfiiS_iS_i .p2align 8 .type _Z14get_bin_scoresiiiPfiiS_iS_i,@function _Z14get_bin_scoresiiiPfiiS_iS_i: ; @_Z14get_bin_scoresiiiPfiiS_i...
7f5c35f9c7b5b15893e0902b0060944b6a103009
/** Research 4 Fun metaCuda.cu Purpose: Calculates the n-th Fibonacci number an the Factorial of a number from CUDA + Template Meta-Programming @author O. A. Riveros @version 1.0 28 May 2014 Santiago Chile. */ #include <iostream> #include <ctime> using namespace std; // Begin CUDA ////////...
.file "tmpxft_0038f267_00000000-6_metaCuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3648: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_...
code for sm_89 Function : _Z11cuFactorialILm20EEvPm .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 */ ...
/** Research 4 Fun metaCuda.cu Purpose: Calculates the n-th Fibonacci number an the Factorial of a number from CUDA + Template Meta-Programming @author O. A. Riveros @version 1.0 28 May 2014 Santiago Chile. */ #include <hip/hip_runtime.h> #include <iostream> #include <ctime> using namespace...
.text .file "metaCuda.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 functi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z11cuFibonacciILm20EEvPm,"axG",@progbits,_Z11cuFibonacciILm20EEvPm,comdat .protected _Z11cuFibonacciILm20EEvPm ; -- Begin function _Z11cuFibonacciILm20EEvPm .globl _Z11cuFibonacciILm20EEvPm .p2align 8 .type _Z11cuFibonacciILm20EEvPm,@function _Z11...
6a452cd7cf38223aa851da962a5edc46dbdbafa8
/* infix to postfix expression conversion code by Codingstreet.com */ #include<stdio.h> #include<string.h> int push(char *stack,char val,int *top,int *size); int pop(char *stack,int *top); int isstack_empty(int *top); int isstack_full(int *top,int *size); int isstack_empty(int *top){ if((*top)==0) return 1; r...
.file "tmpxft_003899cc_00000000-6_infix2postfix.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2035: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2035: .size _ZL26__...
code for sm_89
/* infix to postfix expression conversion code by Codingstreet.com */ #include <hip/hip_runtime.h> #include<stdio.h> #include<string.h> int push(char *stack,char val,int *top,int *size); int pop(char *stack,int *top); int isstack_empty(int *top); int isstack_full(int *top,int *size); int isstack_empty(int *top){ ...
.text .file "infix2postfix.hip" .globl _Z13isstack_emptyPi # -- Begin function _Z13isstack_emptyPi .type _Z13isstack_emptyPi,@function _Z13isstack_emptyPi: # @_Z13isstack_emptyPi .cfi_startproc # %bb.0: xorl %eax, %eax cmpl $0, (%rdi) sete %al retq .Lfunc_end0: .size _Z13isstack...
.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-...
c0adff7a813d35c89ab5795744432c0dd0a100f8
#include "includes.h" __global__ void matrixAddKernel3(float* ans, float* M, float* N, int size) { int col = blockIdx.x*blockDim.x + threadIdx.x; if(col < size) { for(int i = 0; i < size; ++i) ans[i*size + col] = M[i*size + col] + N[i*size + col]; } }
.file "tmpxft_003abc2a_00000000-6_matrixAddKernel3.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 : _Z16matrixAddKernel3PfS_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 matrixAddKernel3(float* ans, float* M, float* N, int size) { int col = blockIdx.x*blockDim.x + threadIdx.x; if(col < size) { for(int i = 0; i < size; ++i) ans[i*size + col] = M[i*size + col] + N[i*size + col]; } }
.text .file "matrixAddKernel3.hip" .globl _Z31__device_stub__matrixAddKernel3PfS_S_i # -- Begin function _Z31__device_stub__matrixAddKernel3PfS_S_i .type _Z31__device_stub__matrixAddKernel3PfS_S_i,@function _Z31__device_stub__matrixAddKernel3PfS_S_i: # @_Z31__device_stub__matrixAddKernel3PfS_S_i .cfi_startproc # %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16matrixAddKernel3PfS_S_i ; -- Begin function _Z16matrixAddKernel3PfS_S_i .globl _Z16matrixAddKernel3PfS_S_i .p2align 8 .type _Z16matrixAddKernel3PfS_S_i,@function _Z16matrixAddKernel3PfS_S_i: ; @_Z16matrixAddKernel3PfS_S_i ; %bb.0: s_clau...
161e5698d74bbaa411464d38286fed677c459744
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cuda.h> __global__ void image_conversion(unsigned char *colorImage, unsigned char *grayImage, long long imageWidth, long long imageHeight) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * blockDim.y; ...
.file "tmpxft_00277057_00000000-6_parallel_image.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 : _Z16image_conversionPhS_xx .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 <string.h> #include <hip/hip_runtime.h> __global__ void image_conversion(unsigned char *colorImage, unsigned char *grayImage, long long imageWidth, long long imageHeight) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * bloc...
.text .file "parallel_image.hip" .globl _Z31__device_stub__image_conversionPhS_xx # -- Begin function _Z31__device_stub__image_conversionPhS_xx .type _Z31__device_stub__image_conversionPhS_xx,@function _Z31__device_stub__image_conversionPhS_xx: # @_Z31__device_stub__image_conversionPhS_xx .cfi_startproc # %bb.0: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16image_conversionPhS_xx ; -- Begin function _Z16image_conversionPhS_xx .globl _Z16image_conversionPhS_xx .p2align 8 .type _Z16image_conversionPhS_xx,@function _Z16image_conversionPhS_xx: ; @_Z16image_conversionPhS_xx ; %bb.0: s_clause 0x...
292fd39790a59f72b9e665b47af1d2c3ebf40a1e
#include <thrust/device_vector.h> //#include<iostream> //using std::cout; //using std::endl; //functor struct Smooth { //starting points of x, y, and m thrust::device_vector<float>::iterator dmIt; thrust::device_vector<float>::iterator dxIt; thrust::device_vector<float>::iterator dyIt; int n; ...
.file "tmpxft_00214a85_00000000-6_SmoothT.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tElNS2_12op_wrapper_tIl6SmoothN6thrust20THRUST_200700_890_NS17counting_iteratorIfNS9_11use_defaultESB_SB_EEEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA...
#include <hip/hip_runtime.h> #include <thrust/device_vector.h> //#include<iostream> //using std::cout; //using std::endl; //functor struct Smooth { //starting points of x, y, and m thrust::device_vector<float>::iterator dmIt; thrust::device_vector<float>::iterator dxIt; thrust::device_vector<float>::...
.text .file "SmoothT.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z7smoothtPfS_S_if # -- Begin function _Z7smoothtPfS_S_if .type _Z7smoothtPfS_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEf...
9bc399cf108953ef94fff84443640d1bd3607bd4
#include <iostream> #include <stdio.h> /** * Given a device array of integers, compute the index of first nonzero * entry in the array, from left to right. * * For example, opearting on the array * * 0 1 2 3 4 5 6 * [0, 0, 0, -1, 0, 0, 2] * * gets the index 3. The result is stored into deg_ptr (init...
.file "tmpxft_00358bbc_00000000-6_atomic2.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3640: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_e...
code for sm_89 Function : _Z10degree_kerILi16EEvPKiiPi .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 <stdio.h> /** * Given a device array of integers, compute the index of first nonzero * entry in the array, from left to right. * * For example, opearting on the array * * 0 1 2 3 4 5 6 * [0, 0, 0, -1, 0, 0, 2] * * gets the index 3. The resul...
.text .file "atomic2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z10degree_kerILi16EEvPKiiPi,"axG",@progbits,_Z10degree_kerILi16EEvPKiiPi,comdat .protected _Z10degree_kerILi16EEvPKiiPi ; -- Begin function _Z10degree_kerILi16EEvPKiiPi .globl _Z10degree_kerILi16EEvPKiiPi .p2align 8 .type _Z10degree_kerILi16EEvPKi...
32debd250b9663629e9d23fa2630284242a45c91
#include "includes.h" __global__ void CalculateDiffSample( float *cur, float *pre, const int wts, const int hts ){ const int yts = blockIdx.y * blockDim.y + threadIdx.y; const int xts = blockIdx.x * blockDim.x + threadIdx.x; const int curst = wts * yts + xts; if (yts < hts && xts < wts){ cur[curst*3+0] -= pre[curst*3+...
.file "tmpxft_00217523_00000000-6_CalculateDiffSample.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 : _Z19CalculateDiffSamplePfS_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 "includes.h" __global__ void CalculateDiffSample( float *cur, float *pre, const int wts, const int hts ){ const int yts = blockIdx.y * blockDim.y + threadIdx.y; const int xts = blockIdx.x * blockDim.x + threadIdx.x; const int curst = wts * yts + xts; if (yts < hts && xts < wts){ ...
.text .file "CalculateDiffSample.hip" .globl _Z34__device_stub__CalculateDiffSamplePfS_ii # -- Begin function _Z34__device_stub__CalculateDiffSamplePfS_ii .type _Z34__device_stub__CalculateDiffSamplePfS_ii,@function _Z34__device_stub__CalculateDiffSamplePfS_ii: # @_Z34__device_stub__CalculateDiffSamplePfS_ii .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19CalculateDiffSamplePfS_ii ; -- Begin function _Z19CalculateDiffSamplePfS_ii .globl _Z19CalculateDiffSamplePfS_ii .p2align 8 .type _Z19CalculateDiffSamplePfS_ii,@function _Z19CalculateDiffSamplePfS_ii: ; @_Z19CalculateDiffSamplePfS_ii ; %bb....
ca11acdf16fb061e0c2d47c10dee2f598d9c2891
#include "thrust/host_vector.h" #include "thrust/device_vector.h" __global__ void kernel(int *out, int *in, const int n) { unsigned int i = threadIdx.x; if (i < n) { out[i] = in[i] * 2; } } int main(){ thrust::host_vector<int> hVectorIn(1024); for(int i=0;i<1024;i++){ hVectorIn[i]=i; } thrust:...
.file "tmpxft_0025c697_00000000-6_main.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat ....
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tEmN6thrust20THRUST_200700_890_NS8cuda_cub20__uninitialized_fill7functorINS7_10device_ptrIiEEiEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(E...
#include <hip/hip_runtime.h> #include "thrust/host_vector.h" #include "thrust/device_vector.h" __global__ void kernel(int *out, int *in, const int n) { unsigned int i = threadIdx.x; if (i < n) { out[i] = in[i] * 2; } } int main(){ thrust::host_vector<int> hVectorIn(1024); for(int i=0;i<1024;i++){ ...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__kernelPiS_i # -- Begin function _Z21__device_stub__kernelPiS_i .type _Z21_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPiS_i ; -- Begin function _Z6kernelPiS_i .globl _Z6kernelPiS_i .p2align 8 .type _Z6kernelPiS_i,@function _Z6kernelPiS_i: ; @_Z6kernelPiS_i ; %bb.0: s_load_b32 s2, s[0:1], 0x10 s_waitcnt lgkmcnt(0) v_cmp_gt_u3...
ea4c9b31f49cefb86aad839e710d3923c03b461d
#include "includes.h" __global__ void box_iou_cuda_kernel(float *box_iou, float4 *box1, float4 *box2, long M, long N, int idxJump) { int idx = blockIdx.x*blockDim.x + threadIdx.x; size_t b1_idx, b2_idx, b1_row_offset, b2_row_offset; float xmin1, xmin2, xmax1, xmax2, ymin1, ymin2, ymax1, ymax2; float x_tl, y_tl, x_br, ...
.file "tmpxft_002f8f47_00000000-6_box_iou_cuda_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 _...
code for sm_89 Function : _Z19box_iou_cuda_kernelPfP6float4S1_lli .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 box_iou_cuda_kernel(float *box_iou, float4 *box1, float4 *box2, long M, long N, int idxJump) { int idx = blockIdx.x*blockDim.x + threadIdx.x; size_t b1_idx, b2_idx, b1_row_offset, b2_row_offset; float xmin1, xmin2, xmax1, xmax2, ymin1, ymin2, ymax1, y...
.text .file "box_iou_cuda_kernel.hip" .globl _Z34__device_stub__box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli # -- Begin function _Z34__device_stub__box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli .type _Z34__device_stub__box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli,@function _Z34__device_stub__...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli ; -- Begin function _Z19box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli .globl _Z19box_iou_cuda_kernelPfP15HIP_vector_typeIfLj4EES2_lli .p2align 8 .type _Z19box_iou_cuda_kernelPfP15HIP_vector...
9f772d82590de51d9538096e3ab39988c409526d
#include <cuda_runtime.h> #include <iostream> #include <stdlib.h> #include <ctime> #include <unistd.h> //workers computing square of rands __global__ void kerSquare(int *randsDev,int* resDev){ int myId = blockIdx.x * blockDim.x + threadIdx.x; //std::cout << myId << ", "; resDev[myId] = randsDev[myId] * r...
.file "tmpxft_002ab1e1_00000000-6_simpleFarm.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3651: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z9kerSquarePiS_ .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 <stdlib.h> #include <ctime> #include <unistd.h> //workers computing square of rands __global__ void kerSquare(int *randsDev,int* resDev){ int myId = blockIdx.x * blockDim.x + threadIdx.x; //std::cout << myId << ", "; resDev[myId] = randsDev[myId] ...
.text .file "simpleFarm.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__kerSquarePiS_ # -- Begin function _Z24__device_stub__kerSquarePiS_ .t...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9kerSquarePiS_ ; -- Begin function _Z9kerSquarePiS_ .globl _Z9kerSquarePiS_ .p2align 8 .type _Z9kerSquarePiS_,@function _Z9kerSquarePiS_: ; @_Z9kerSquarePiS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x1c s_load_b128...
64c869094adbcc2081433a01c87cfc34857862c1
#include <stdio.h> #include<time.h> #define PerThread 1024*4*8//每个线程计算多少个i #define N 64*256*1024*4//积分计算PI总共划分为这么多项相加 #define BlockNum 32 //block的数量 #define ThreadNum 64 //每个block中threads的数量 __global__ void Gpu_calPI(double* Gpu_list) { //核函数 int tid=blockIdx.x*blockDim.x*blockDim.y+threadIdx.x;//计算线程号 int ...
.file "tmpxft_003770b3_00000000-6_calPI.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 : _Z9Gpu_calPIPd .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> #define PerThread 1024*4*8//每个线程计算多少个i #define N 64*256*1024*4//积分计算PI总共划分为这么多项相加 #define BlockNum 32 //block的数量 #define ThreadNum 64 //每个block中threads的数量 __global__ void Gpu_calPI(double* Gpu_list) { //核函数 int tid=blockIdx.x*blockDim.x*blockDim....
.text .file "calPI.hip" .globl _Z24__device_stub__Gpu_calPIPd # -- Begin function _Z24__device_stub__Gpu_calPIPd .type _Z24__device_stub__Gpu_calPIPd,@function _Z24__device_stub__Gpu_calPIPd: # @_Z24__device_stub__Gpu_calPIPd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9Gpu_calPIPd ; -- Begin function _Z9Gpu_calPIPd .globl _Z9Gpu_calPIPd .p2align 8 .type _Z9Gpu_calPIPd,@function _Z9Gpu_calPIPd: ; @_Z9Gpu_calPIPd ; %bb.0: ; %.lr.ph.preheader s_load_b32 ...
339297c1ca638b7ba5ba01d0971b13064193abd0
#include <fcntl.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/time.h> #include <time.h> #include <unistd.h> typedef struct { long time; double open; double high; double low; double close; double volume; } Minute; typedef str...
.file "tmpxft_00207e27_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2050: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2050: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z4bake4DataP6Worker .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 <fcntl.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/time.h> #include <time.h> #include <unistd.h> typedef struct { long time; double open; double high; double low; double close; double ...
.text .file "main.hip" .globl _Z19__device_stub__bake4DataP6Worker # -- Begin function _Z19__device_stub__bake4DataP6Worker .type _Z19__device_stub__bake4DataP6Worker,@function _Z19__device_stub__bake4DataP6Worker: # @_Z19__device_stub__bake4DataP6Worker .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 1...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4bake4DataP6Worker ; -- Begin function _Z4bake4DataP6Worker .globl _Z4bake4DataP6Worker .p2align 8 .type _Z4bake4DataP6Worker,@function _Z4bake4DataP6Worker: ; @_Z4bake4DataP6Worker ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
458dffee84ce8eb40fb73a134d5d0c36ddb7ee76
#include<iostream> using namespace std; __global__ void add(int *a,int*b,int *c,int n) { int index=blockIdx.x*blockDim.x+threadIdx.x; if(index<n) { c[index]=a[index]+b[index]; } } int main() { cout<<"Enter size of vector"; int n; cin>>n; int a[n],b[n],c[n]; for(int i=0;i<n;i++) { cin>>a[i];...
.file "tmpxft_00315234_00000000-6_cuda_vecadd.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 .c...
code for sm_89 Function : _Z3addPiS_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<iostream> using namespace std; __global__ void add(int *a,int*b,int *c,int n) { int index=blockIdx.x*blockDim.x+threadIdx.x; if(index<n) { c[index]=a[index]+b[index]; } } int main() { cout<<"Enter size of vector"; int n; cin>>n; int a[n],b[n],c[n]; for(int i...
.text .file "cuda_vecadd.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addPiS_S_i # -- Begin function _Z18__device_stub__addPiS_S_i .type...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_i ; -- Begin function _Z3addPiS_S_i .globl _Z3addPiS_S_i .p2align 8 .type _Z3addPiS_S_i,@function _Z3addPiS_S_i: ; @_Z3addPiS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], ...
2098b3e135ff795dbd3cad6cf81859faff06cedf
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <cuda.h> #define TILE_WIDTH 16 #define cudaCheckError() { \ cudaError_t e = cudaGetLastError(); \ if (e != cudaSuccess) { \ printf("CUDA error %s:%d: %s\n", __FILE__...
.file "tmpxft_0036771e_00000000-6_MatrixMulKernel.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 : _Z15MatrixMulKernelPfS_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 <stdio.h> #include <time.h> #include <stdlib.h> #include <hip/hip_runtime.h> #define TILE_WIDTH 16 #define cudaCheckError() { \ hipError_t e = hipGetLastError(); \ if (e != hipSuccess) { \ printf("CUDA error %s:%d: %s\n", ...
.text .file "MatrixMulKernel.hip" .globl _Z30__device_stub__MatrixMulKernelPfS_ii # -- Begin function _Z30__device_stub__MatrixMulKernelPfS_ii .type _Z30__device_stub__MatrixMulKernelPfS_ii,@function _Z30__device_stub__MatrixMulKernelPfS_ii: # @_Z30__device_stub__MatrixMulKernelPfS_ii .cfi_startproc # %bb.0: push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15MatrixMulKernelPfS_ii ; -- Begin function _Z15MatrixMulKernelPfS_ii .globl _Z15MatrixMulKernelPfS_ii .p2align 8 .type _Z15MatrixMulKernelPfS_ii,@function _Z15MatrixMulKernelPfS_ii: ; @_Z15MatrixMulKernelPfS_ii ; %bb.0: s_clause 0x1 s_...
b92a10d2dd00bba3f13cf1e7cea2cdb52f448cbe
#include "includes.h" __global__ void add(int *a, int *b, int *c, int *d, int *e, int *f) { *c = *a + *b; *d = *a - *b; *e = *a * *b; *f = *a / *b; }
.file "tmpxft_003b66f8_00000000-6_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 _ZL26__cudaUnregi...
code for sm_89 Function : _Z3addPiS_S_S_S_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 "includes.h" __global__ void add(int *a, int *b, int *c, int *d, int *e, int *f) { *c = *a + *b; *d = *a - *b; *e = *a * *b; *f = *a / *b; }
.text .file "add.hip" .globl _Z18__device_stub__addPiS_S_S_S_S_ # -- Begin function _Z18__device_stub__addPiS_S_S_S_S_ .type _Z18__device_stub__addPiS_S_S_S_S_,@function _Z18__device_stub__addPiS_S_S_S_S_: # @_Z18__device_stub__addPiS_S_S_S_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_S_S_S_ ; -- Begin function _Z3addPiS_S_S_S_S_ .globl _Z3addPiS_S_S_S_S_ .p2align 8 .type _Z3addPiS_S_S_S_S_,@function _Z3addPiS_S_S_S_S_: ; @_Z3addPiS_S_S_S_S_ ; %bb.0: s_load_b256 s[4:11], s[0:1], 0x0 s_waitcnt lg...
be5591dd627e3ba1aebf3ec2469dacac503b9dd8
#include <stdio.h> #include <stdlib.h> #include <curand.h> void output_results(int N, double *g_x); int main(void) { curandGenerator_t generator; curandCreateGenerator(&generator, CURAND_RNG_PSEUDO_DEFAULT); curandSetPseudoRandomGeneratorSeed(generator, 1234); int N = 100000; double *g_x; cudaMall...
.file "tmpxft_00208ab6_00000000-6_curand_host1.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__c...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <hiprand/hiprand.h> void output_results(int N, double *g_x); int main(void) { hiprandGenerator_t generator; hiprandCreateGenerator(&generator, HIPRAND_RNG_PSEUDO_DEFAULT); hiprandSetPseudoRandomGeneratorSeed(generator, 1234); ...
.text .file "curand_host1.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 %r...
.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-...
4200338f593872d914a6c62f5cc5f51b70ca519b
#include <stdio.h> #include <assert.h> #define N 1000000 __global__ void vecadd(int *a, int *b, int *c){ // determine global thread id int idx = threadIdx.x + blockIdx.x * blockDim.x; // do vector add, check if index is < N if(idx<N) { c[idx]=a[idx]+b[idx]; } } int main (int argc, char **argv){ int...
.file "tmpxft_0027e7e3_00000000-6_lab2-2.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 : _Z6vecaddPiS_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 <stdio.h> #include <assert.h> #define N 1000000 __global__ void vecadd(int *a, int *b, int *c){ // determine global thread id int idx = threadIdx.x + blockIdx.x * blockDim.x; // do vector add, check if index is < N if(idx<N) { c[idx]=a[idx]+b[idx]; } } int main (...
.text .file "lab2-2.hip" .globl _Z21__device_stub__vecaddPiS_S_ # -- Begin function _Z21__device_stub__vecaddPiS_S_ .type _Z21__device_stub__vecaddPiS_S_,@function _Z21__device_stub__vecaddPiS_S_: # @_Z21__device_stub__vecaddPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6vecaddPiS_S_ ; -- Begin function _Z6vecaddPiS_S_ .globl _Z6vecaddPiS_S_ .p2align 8 .type _Z6vecaddPiS_S_,@function _Z6vecaddPiS_S_: ; @_Z6vecaddPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 s_waitcnt lgkmcnt(0) s_and_b...
7ece720b45b805f4d4a03211fe759ed5a54522a5
//-------------------------------------------------- // Autor: Ricardo Farias // Data : 29 Out 2011 // Goal : Increment a variable in the graphics card //-------------------------------------------------- /*************************************************************************************************** Includes ***...
.file "tmpxft_0024c51e_00000000-6_fork-cuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3935: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi...
code for sm_89 Function : _Z6somaUmPi .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 */ ...
//-------------------------------------------------- // Autor: Ricardo Farias // Data : 29 Out 2011 // Goal : Increment a variable in the graphics card //-------------------------------------------------- /*************************************************************************************************** Includes ***...
.text .file "fork-cuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__somaUmPi # -- Begin function _Z21__device_stub__somaUmPi .type _Z2...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6somaUmPi ; -- Begin function _Z6somaUmPi .globl _Z6somaUmPi .p2align 8 .type _Z6somaUmPi,@function _Z6somaUmPi: ; @_Z6somaUmPi ; %bb.0: s_mov_b32 s2, exec_lo s_mov_b32 s3, exec_lo v_mbcnt_lo_u32_b32 v0, s2, 0...
1a56d931c80c0cccf79e4810f41f0353aedd6157
/* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * in individ...
.file "tmpxft_0039c650_00000000-6_acdc.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2065: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2065: .size _ZL26__cudaUnreg...
code for sm_89
/* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * in individ...
.text .file "acdc.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 e5bf7e55c91490b07c49d8960fa798...
.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-...
ee639f1224374dc4b4aaba763eaa3606de32c87f
#include "includes.h" __device__ int sum = 1; __global__ void degreeCalc (int *array){ int i = blockDim.x * blockIdx.x + threadIdx.x; if (i>=1000000){ return; } sum+=array[i]; // if (i==999999){ // printf("%d", sum); // } } __global__ void degreeCalc (int *vertexArray, int *neighbourArray, int *degreeCount, int n...
.file "tmpxft_0028ff75_00000000-6_degreeCalc.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 : _Z10degreeCalcPiS_S_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__ int sum = 1; __global__ void degreeCalc (int *array){ int i = blockDim.x * blockIdx.x + threadIdx.x; if (i>=1000000){ return; } sum+=array[i]; // if (i==999999){ // printf("%d", sum); // } } __global__ void degreeCalc (int *vertexArray, int *neighbour...
.text .file "degreeCalc.hip" .globl _Z25__device_stub__degreeCalcPi # -- Begin function _Z25__device_stub__degreeCalcPi .type _Z25__device_stub__degreeCalcPi,@function _Z25__device_stub__degreeCalcPi: # @_Z25__device_stub__degreeCalcPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10degreeCalcPi ; -- Begin function _Z10degreeCalcPi .globl _Z10degreeCalcPi .p2align 8 .type _Z10degreeCalcPi,@function _Z10degreeCalcPi: ; @_Z10degreeCalcPi ; %bb.0: s_load_b32 s2, s[0:1], 0x14 s_waitcnt lgkmcnt(0) s_a...
1cb9e577547fff66916a27666e2013bef010cb89
/***************************************************************************** C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example : cuda-matrix-vector-multiplication.cu Objective : Write CUDA program to compute Matrix-Vector multiplication. Input : None ...
.file "tmpxft_0034423f_00000000-6_matvec_cuda2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2041: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2041: .size _ZL26__c...
code for sm_89 Function : _Z21MatVectMultiplicationPdS_iiS_ .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 */ ...
/***************************************************************************** C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example : cuda-matrix-vector-multiplication.cu Objective : Write CUDA program to compute Matrix-Vector multiplication. Input : None ...
.text .file "matvec_cuda2.hip" .globl _Z9mem_errorPcS_iS_ # -- Begin function _Z9mem_errorPcS_iS_ .type _Z9mem_errorPcS_iS_,@function _Z9mem_errorPcS_iS_: # @_Z9mem_errorPcS_iS_ .cfi_startproc # %bb.0: pushq %rax .cfi_def_cfa_offset 16 movq %rcx, %r8 movl %edx, %ecx movq %rsi, %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z21MatVectMultiplicationPdS_iiS_ ; -- Begin function _Z21MatVectMultiplicationPdS_iiS_ .globl _Z21MatVectMultiplicationPdS_iiS_ .p2align 8 .type _Z21MatVectMultiplicationPdS_iiS_,@function _Z21MatVectMultiplicationPdS_iiS_: ; @_Z21MatVectMultiplic...
0cd605adf82e804ec1d64773a64409b574131ef5
/* LA-CC-16080 Copyright © 2016 Priscilla Kelly and Los Alamos National Laboratory. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above c...
.file "tmpxft_0027922e_00000000-6_applyRules_CUDA.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 : _Z11get_EW_HaloiiPiS_ .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 */ ...
/* LA-CC-16080 Copyright © 2016 Priscilla Kelly and Los Alamos National Laboratory. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above c...
.text .file "applyRules_CUDA.hip" .globl _Z25__device_stub__applyRulesiiPiS_ # -- Begin function _Z25__device_stub__applyRulesiiPiS_ .type _Z25__device_stub__applyRulesiiPiS_,@function _Z25__device_stub__applyRulesiiPiS_: # @_Z25__device_stub__applyRulesiiPiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10applyRulesiiPiS_ ; -- Begin function _Z10applyRulesiiPiS_ .globl _Z10applyRulesiiPiS_ .p2align 8 .type _Z10applyRulesiiPiS_,@function _Z10applyRulesiiPiS_: ; @_Z10applyRulesiiPiS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0...
d8078df5d769fe79904fdfef4b93dcb8380b3035
#include <stdio.h> #include <stdlib.h> #include <math.h> #define NUM_NODES 1024 // Declaration of a structure typedef struct { int startIndex; // starting index in Adj list int numberOfNeighbors; // number of neighbors of each vertices } Node; __global__ void bfs_optimized(Node *gpu_vertex, int *gpu_neighbors, bo...
.file "tmpxft_002a4dee_00000000-6_bfs_frontier.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__c...
code for sm_89 Function : _Z13bfs_optimizedP4NodePiPbS2_S1_S2_ .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 <math.h> #define NUM_NODES 1024 // Declaration of a structure typedef struct { int startIndex; // starting index in Adj list int numberOfNeighbors; // number of neighbors of each vertices } Node; __global__ void bfs_optimized(Node *gpu_...
.text .file "bfs_frontier.hip" .globl _Z28__device_stub__bfs_optimizedP4NodePiPbS2_S1_S2_ # -- Begin function _Z28__device_stub__bfs_optimizedP4NodePiPbS2_S1_S2_ .type _Z28__device_stub__bfs_optimizedP4NodePiPbS2_S1_S2_,@function _Z28__device_stub__bfs_optimizedP4NodePiPbS2_S1_S2_: # @_Z28__device_stub__bfs_optimiz...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13bfs_optimizedP4NodePiPbS2_S1_S2_ ; -- Begin function _Z13bfs_optimizedP4NodePiPbS2_S1_S2_ .globl _Z13bfs_optimizedP4NodePiPbS2_S1_S2_ .p2align 8 .type _Z13bfs_optimizedP4NodePiPbS2_S1_S2_,@function _Z13bfs_optimizedP4NodePiPbS2_S1_S2_: ; @_Z13bfs_...
620b81b35816cb4920a52fccf376c3b82eb73a76
__global__ void leakyrelu_kernel(float* output, float* input, float slope, int dim_xw, int dim_xh){ int tid = threadIdx.x; int idx = blockIdx.x * blockDim.x + threadIdx.x; __shar...
.file "tmpxft_002143ab_00000000-6_leakyrelu_kernel.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 _ZL2...
code for sm_89 Function : _Z16leakyrelu_kernelPfS_fii .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> __global__ void leakyrelu_kernel(float* output, float* input, float slope, int dim_xw, int dim_xh){ int tid = threadIdx.x; int idx = blockIdx.x * blockDi...
.text .file "leakyrelu_kernel.hip" .globl _Z31__device_stub__leakyrelu_kernelPfS_fii # -- Begin function _Z31__device_stub__leakyrelu_kernelPfS_fii .type _Z31__device_stub__leakyrelu_kernelPfS_fii,@function _Z31__device_stub__leakyrelu_kernelPfS_fii: # @_Z31__device_stub__leakyrelu_kernelPfS_fii .cfi_startproc # %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16leakyrelu_kernelPfS_fii ; -- Begin function _Z16leakyrelu_kernelPfS_fii .globl _Z16leakyrelu_kernelPfS_fii .p2align 8 .type _Z16leakyrelu_kernelPfS_fii,@function _Z16leakyrelu_kernelPfS_fii: ; @_Z16leakyrelu_kernelPfS_fii ; %bb.0: s_clau...
99b3ed7bf536a519f9e2805e16d8290a6064b89f
// A basic macro used to checking cuda errors. // @param ans - the most recent enumerated cuda error to check. #define gpuErrorCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); } #include <curand_kernel.h> #include <cuda_runtime.h> #include <cfloat> // for FLT_MAX #include <iostream> #include <ctime> // for clock() #...
.file "tmpxft_002dc126_00000000-6_DifferentialEvolution.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4134: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBina...
code for sm_89 Function : _Z15evolutionKernelPfS_PiS_P17curandStateXORWOWiifPK8instancePy .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 */ ...
// A basic macro used to checking cuda errors. // @param ans - the most recent enumerated cuda error to check. #define gpuErrorCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); } #include <hiprand/hiprand_kernel.h> #include <hip/hip_runtime.h> #include <cfloat> // for FLT_MAX #include <iostream> #include <ctime> // f...
.text .file "DifferentialEvolution.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z28__device_stub__costFunctionPPKiPK8instancePyPii # -- Begin function _Z28__...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13costFunctionPPKiPK8instancePyPii ; -- Begin function _Z13costFunctionPPKiPK8instancePyPii .globl _Z13costFunctionPPKiPK8instancePyPii .p2align 8 .type _Z13costFunctionPPKiPK8instancePyPii,@function _Z13costFunctionPPKiPK8instancePyPii: ; @_Z13cost...
20421378c4033307ef7bd4f7e9858bb3595ae3a5
#include <stdio.h> #define NUM_BUCKETS 128 __global__ void compute_histogram(const size_t num_elements, const float range, const float *data, unsigned *histogram) { int t = threadIdx.x; int nt = blockDim.x; __shared__ unsigned local_histogram[NUM_BUCKETS]; for (int i = t; i ...
.file "tmpxft_0030d8b5_00000000-6_histogram.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__cuda...
code for sm_89 Function : _Z17compute_histogrammfPKfPj .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 NUM_BUCKETS 128 __global__ void compute_histogram(const size_t num_elements, const float range, const float *data, unsigned *histogram) { int t = threadIdx.x; int nt = blockDim.x; __shared__ unsigned local_histogram[NUM_...
.text .file "histogram.hip" .globl _Z32__device_stub__compute_histogrammfPKfPj # -- Begin function _Z32__device_stub__compute_histogrammfPKfPj .type _Z32__device_stub__compute_histogrammfPKfPj,@function _Z32__device_stub__compute_histogrammfPKfPj: # @_Z32__device_stub__compute_histogrammfPKfPj .cfi_startproc # %bb...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17compute_histogrammfPKfPj ; -- Begin function _Z17compute_histogrammfPKfPj .globl _Z17compute_histogrammfPKfPj .p2align 8 .type _Z17compute_histogrammfPKfPj,@function _Z17compute_histogrammfPKfPj: ; @_Z17compute_histogrammfPKfPj ; %bb.0: s...
c0899ee7af31fca8f1dca7d5b5034fbbed984db7
#include <stdio.h> #include <time.h> #define NUM_INTERVALS 1000000 #define THREADS_PER_BLOCK 1000 #define BLOCKS 10 double baseIntervalo = 1.0/NUM_INTERVALS; __global__ void piFunc(double * acum){ int t = threadIdx.x; int threads = blockDim.x; acum[t] = 0; int intervals_per_thread = NUM_INTE...
.file "tmpxft_002103de_00000000-6_pi.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 : _Z6piFuncPd .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> #define NUM_INTERVALS 1000000 #define THREADS_PER_BLOCK 1000 #define BLOCKS 10 double baseIntervalo = 1.0/NUM_INTERVALS; __global__ void piFunc(double * acum){ int t = threadIdx.x; int threads = blockDim.x; acum[t] = 0; int i...
.text .file "pi.hip" .globl _Z21__device_stub__piFuncPd # -- Begin function _Z21__device_stub__piFuncPd .type _Z21__device_stub__piFuncPd,@function _Z21__device_stub__piFuncPd: # @_Z21__device_stub__piFuncPd .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 _Z6piFuncPd ; -- Begin function _Z6piFuncPd .globl _Z6piFuncPd .p2align 8 .type _Z6piFuncPd,@function _Z6piFuncPd: ; @_Z6piFuncPd ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x14 s_load_b64 s[0:1], s[0:1], 0x0 ...
dfe578c7fa18743cefdca75ad4c0a8f5b65b524d
#include <stdio.h> #include <cuda_runtime.h> __global__ void simple_histo(int *d_bins, const int *d_in, const int BIN_COUNT, int ARRAY_SIZE) { unsigned int myId = threadIdx.x + blockDim.x + blockIdx.x; // checking for out-of-bounds if (myId>=ARRAY_SIZE) { return; } unsigned int myItem = d_in[myId]; unsigned ...
.file "tmpxft_00296a71_00000000-6_histo_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__c...
code for sm_89 Function : _Z12simple_histoPiPKiii .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 <hip/hip_runtime.h> __global__ void simple_histo(int *d_bins, const int *d_in, const int BIN_COUNT, int ARRAY_SIZE) { unsigned int myId = threadIdx.x + blockDim.x + blockIdx.x; // checking for out-of-bounds if (myId>=ARRAY_SIZE) { return; } unsigned int myItem = d_in[myId]; unsign...
.text .file "histo_kernel.hip" .globl _Z27__device_stub__simple_histoPiPKiii # -- Begin function _Z27__device_stub__simple_histoPiPKiii .type _Z27__device_stub__simple_histoPiPKiii,@function _Z27__device_stub__simple_histoPiPKiii: # @_Z27__device_stub__simple_histoPiPKiii .cfi_startproc # %bb.0: pushq %r15 .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12simple_histoPiPKiii ; -- Begin function _Z12simple_histoPiPKiii .globl _Z12simple_histoPiPKiii .p2align 8 .type _Z12simple_histoPiPKiii,@function _Z12simple_histoPiPKiii: ; @_Z12simple_histoPiPKiii ; %bb.0: s_clause 0x1 s_load_b32 s...
e912be4c2576c4138a68c22d229e6f7b34dcc3a2
#include "includes.h" __global__ void skip_128b(float *A, float *C, const int N) { int i = (blockIdx.x * blockDim.x + threadIdx.x)+32*(threadIdx.x%32); if (i < N) C[i] = A[i]; }
.file "tmpxft_002f384f_00000000-6_skip_128b.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 : _Z9skip_128bPfS_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 skip_128b(float *A, float *C, const int N) { int i = (blockIdx.x * blockDim.x + threadIdx.x)+32*(threadIdx.x%32); if (i < N) C[i] = A[i]; }
.text .file "skip_128b.hip" .globl _Z24__device_stub__skip_128bPfS_i # -- Begin function _Z24__device_stub__skip_128bPfS_i .type _Z24__device_stub__skip_128bPfS_i,@function _Z24__device_stub__skip_128bPfS_i: # @_Z24__device_stub__skip_128bPfS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9skip_128bPfS_i ; -- Begin function _Z9skip_128bPfS_i .globl _Z9skip_128bPfS_i .p2align 8 .type _Z9skip_128bPfS_i,@function _Z9skip_128bPfS_i: ; @_Z9skip_128bPfS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_...
93eabc9e59f2f118cf06116458cf0257aa43ca61
#include <iostream> #include <cstdlib> #include <stdlib.h> #include <ctime> #include <queue> using namespace std; short iterative_bfs(short **matrix, unsigned long long N, short target, bool **visited_matrix); short recursive_bfs(short **matrix, unsigned long long N, short target, bool **visited_matrix); short recurs...
.file "tmpxft_002c406a_00000000-6_bfs.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4272: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpr...
code for sm_89 Function : _Z10bfs_kernelPsPiS0_ys .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 <cstdlib> #include <stdlib.h> #include <ctime> #include <queue> using namespace std; short iterative_bfs(short **matrix, unsigned long long N, short target, bool **visited_matrix); short recursive_bfs(short **matrix, unsigned long long N, short target, bool *...
.text .file "bfs.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 ma...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10bfs_kernelPsPiS0_ys ; -- Begin function _Z10bfs_kernelPsPiS0_ys .globl _Z10bfs_kernelPsPiS0_ys .p2align 8 .type _Z10bfs_kernelPsPiS0_ys,@function _Z10bfs_kernelPsPiS0_ys: ; @_Z10bfs_kernelPsPiS0_ys ; %bb.0: s_clause 0x1 s_load_b32 s...
07e75c7cb318533be0c721e75d182922de9195ee
//SEE bao_flow_c2f_classic_kernel.cu
.file "tmpxft_00277278_00000000-6_bao_flow_patchmatch_multiscale_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 ...
code for sm_89
#include <hip/hip_runtime.h> //SEE bao_flow_c2f_classic_kernel.cu
.text .file "bao_flow_patchmatch_multiscale_kernel.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 250...
.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-...
cd6780c43f489754d1a50d1a49400461d83f7e91
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <sys/types.h> #include <sys/times.h> #include <sys/time.h> #include <time.h> #define MAXN 8000 /* Max value of N */ int N; /* Matrix Dimension*/ int numThreads; /* Number of Threads */ /*Random*/ #define randm() 4|2[uid]&3 /*CU...
.file "tmpxft_0024e79a_00000000-6_matrix_cuda_norm.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2045: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2045: .size _ZL2...
code for sm_89 Function : _Z12Mean_SD_NormPfS_S_S_iii .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 <unistd.h> #include <math.h> #include <sys/types.h> #include <sys/times.h> #include <sys/time.h> #include <time.h> #define MAXN 8000 /* Max value of N */ int N; /* Matrix Dimension*/ int numThreads; /* Number of Threads */ /*Random*/ #d...
.text .file "matrix_cuda_norm.hip" .globl _Z27__device_stub__Mean_SD_NormPfS_S_S_iii # -- Begin function _Z27__device_stub__Mean_SD_NormPfS_S_S_iii .type _Z27__device_stub__Mean_SD_NormPfS_S_S_iii,@function _Z27__device_stub__Mean_SD_NormPfS_S_S_iii: # @_Z27__device_stub__Mean_SD_NormPfS_S_S_iii .cfi_startproc # %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12Mean_SD_NormPfS_S_S_iii ; -- Begin function _Z12Mean_SD_NormPfS_S_S_iii .globl _Z12Mean_SD_NormPfS_S_S_iii .p2align 8 .type _Z12Mean_SD_NormPfS_S_S_iii,@function _Z12Mean_SD_NormPfS_S_S_iii: ; @_Z12Mean_SD_NormPfS_S_S_iii ; %bb.0: s_clau...
d9f2f1bc28bc84193094267272a96122a07e7a46
#include <iostream> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/random/linear_congruential_engine.h> #include <thrust/random/uniform_real_distribution.h> int main() { int seed; std::cin >> seed; thrust::minstd_rand eng(seed); thrust::uniform_real_distributio...
.file "tmpxft_00358847_00000000-6_aula20-1.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text.nvtxEtiGetModuleFunctionTable_v3,"axG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat .weak nvtxEtiGetModuleFunctionTable_v3 .hidden nvtxEtiGetModuleFunctionTable_v3 .type nvtxEtiGetM...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv .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 <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/random/linear_congruential_engine.h> #include <thrust/random/uniform_real_distribution.h> int main() { int seed; std::cin >> seed; thrust::minstd_rand eng(seed); th...
.text .file "aula20-1.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 functi...
.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-...
1d952e8370ad6d69c2d6ce73c60d9ba928bf37db
/* Name: Jonathan Dunlap Course: Introduction to Parallel and Cloud Computing CRN: 75092 Assignment: Refactor ParallelTeam Data: 11/19/2013 */ #include <stdio.h> #include <assert.h> #include <cuda.h> #include <cstdlib> __global__ void incrementArrayOnDevice(int *a, int N, int *count) { int id = blockIdx.x ...
.file "tmpxft_003978c8_00000000-6_kernal.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 : _Z22incrementArrayOnDevicePiiS_ .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: Jonathan Dunlap Course: Introduction to Parallel and Cloud Computing CRN: 75092 Assignment: Refactor ParallelTeam Data: 11/19/2013 */ #include <stdio.h> #include <assert.h> #include <hip/hip_runtime.h> #include <cstdlib> __global__ void incrementArrayOnDevice(int *a, int N, int *count) { int id = ...
.text .file "kernal.hip" .globl _Z37__device_stub__incrementArrayOnDevicePiiS_ # -- Begin function _Z37__device_stub__incrementArrayOnDevicePiiS_ .type _Z37__device_stub__incrementArrayOnDevicePiiS_,@function _Z37__device_stub__incrementArrayOnDevicePiiS_: # @_Z37__device_stub__incrementArrayOnDevicePiiS_ .cfi_sta...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z22incrementArrayOnDevicePiiS_ ; -- Begin function _Z22incrementArrayOnDevicePiiS_ .globl _Z22incrementArrayOnDevicePiiS_ .p2align 8 .type _Z22incrementArrayOnDevicePiiS_,@function _Z22incrementArrayOnDevicePiiS_: ; @_Z22incrementArrayOnDevicePi...
2a28cc0a694194a7bfe330efeab423335abf0111
extern "C" __global__ void kernel_0arg() {} extern "C" __global__ void kernel_1arg(float * arg0) {} extern "C" __global__ void kernel_2arg(float * arg0, float * arg1) {} extern "C" __global__ void kernel_3arg(float * arg0, float * arg1, float * arg2) {} extern "C" __global__ void...
.file "tmpxft_0028752f_00000000-6_backend.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__cudaUn...
code for sm_89 Function : kernel_10arg .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 */ ...
#include <hip/hip_runtime.h> extern "C" __global__ void kernel_0arg() {} extern "C" __global__ void kernel_1arg(float * arg0) {} extern "C" __global__ void kernel_2arg(float * arg0, float * arg1) {} extern "C" __global__ void kernel_3arg(float * arg0, float * arg1, float * arg2)...
.text .file "backend.hip" .globl __device_stub__kernel_0arg # -- Begin function __device_stub__kernel_0arg .type __device_stub__kernel_0arg,@function __device_stub__kernel_0arg: # @__device_stub__kernel_0arg .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offs...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected kernel_0arg ; -- Begin function kernel_0arg .globl kernel_0arg .p2align 8 .type kernel_0arg,@function kernel_0arg: ; @kernel_0arg ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel ...
a3b43bca75b5a14b1ecd8053426e2c1f41459aa3
#include "includes.h" __global__ void cudaUZeroInit_kernel(unsigned int size, unsigned int* data) { const unsigned int index = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int stride = blockDim.x * gridDim.x; for (unsigned int i = index; i < size; i += stride) data[i] = 0U; }
.file "tmpxft_0027bd8a_00000000-6_cudaUZeroInit_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 ...
code for sm_89 Function : _Z20cudaUZeroInit_kerneljPj .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 cudaUZeroInit_kernel(unsigned int size, unsigned int* data) { const unsigned int index = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int stride = blockDim.x * gridDim.x; for (unsigned int i = index; i < size; i += stride) data[i] = 0U; }
.text .file "cudaUZeroInit_kernel.hip" .globl _Z35__device_stub__cudaUZeroInit_kerneljPj # -- Begin function _Z35__device_stub__cudaUZeroInit_kerneljPj .type _Z35__device_stub__cudaUZeroInit_kerneljPj,@function _Z35__device_stub__cudaUZeroInit_kerneljPj: # @_Z35__device_stub__cudaUZeroInit_kerneljPj .cfi_startproc...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20cudaUZeroInit_kerneljPj ; -- Begin function _Z20cudaUZeroInit_kerneljPj .globl _Z20cudaUZeroInit_kerneljPj .p2align 8 .type _Z20cudaUZeroInit_kerneljPj,@function _Z20cudaUZeroInit_kerneljPj: ; @_Z20cudaUZeroInit_kerneljPj ; %bb.0: s_clau...
9fbe5d0d2ce06b55ea1f79a039f90cffe4192fbe
#include <stdio.h> #include <time.h> #include <unistd.h> #include <stdlib.h> #include <math.h> __global__ void shared_mem(int x[], int n, int blks) { int thread_id = threadIdx.x + blockIdx.x * blockDim.x; __shared__ float temp_data; while(thread_id < n){ temp_data = x[thread_id]; for(int i=0;i<n;i++)...
.file "tmpxft_0024385a_00000000-6_shared.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2043: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2043: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z10global_memPiii .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 <unistd.h> #include <stdlib.h> #include <math.h> __global__ void shared_mem(int x[], int n, int blks) { int thread_id = threadIdx.x + blockIdx.x * blockDim.x; __shared__ float temp_data; while(thread_id < n){ temp_data = x[thread...
.text .file "shared.hip" .globl _Z25__device_stub__shared_memPiii # -- Begin function _Z25__device_stub__shared_memPiii .type _Z25__device_stub__shared_memPiii,@function _Z25__device_stub__shared_memPiii: # @_Z25__device_stub__shared_memPiii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10shared_memPiii ; -- Begin function _Z10shared_memPiii .globl _Z10shared_memPiii .p2align 8 .type _Z10shared_memPiii,@function _Z10shared_memPiii: ; @_Z10shared_memPiii ; %bb.0: ; %._crit_edge16...
bfb1a9d6bb1b5ef8f8c9734b90fdd39ae65dc7fa
#include "includes.h" __global__ void cu_fliplr(const float* src, float* dst, const int rows, const int cols, const int n){ int tid = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; while(tid < n){ int c = tid % cols; int r = tid / cols; dst[tid] = src[(cols - c - 1) + r * cols]; tid += stri...
.file "tmpxft_002a6dd3_00000000-6_cu_fliplr.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 : _Z9cu_fliplrPKfPfiii .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 cu_fliplr(const float* src, float* dst, const int rows, const int cols, const int n){ int tid = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; while(tid < n){ int c = tid % cols; int r = tid / cols; dst[tid] = src[(cols - c...
.text .file "cu_fliplr.hip" .globl _Z24__device_stub__cu_fliplrPKfPfiii # -- Begin function _Z24__device_stub__cu_fliplrPKfPfiii .type _Z24__device_stub__cu_fliplrPKfPfiii,@function _Z24__device_stub__cu_fliplrPKfPfiii: # @_Z24__device_stub__cu_fliplrPKfPfiii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_off...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9cu_fliplrPKfPfiii ; -- Begin function _Z9cu_fliplrPKfPfiii .globl _Z9cu_fliplrPKfPfiii .p2align 8 .type _Z9cu_fliplrPKfPfiii,@function _Z9cu_fliplrPKfPfiii: ; @_Z9cu_fliplrPKfPfiii ; %bb.0: s_clause 0x1 s_load_b32 s6, s[0:1], 0...
9443f18372c150c68f1167b7ed8260211c8cf2e0
#include "kernel.cuh" #define TX 32 #define TY 32 #define RAD 1 #define divUp(a,b) ((a) + (b) - 1) / (b) __device__ unsigned char clip(int n){ return n > 255 ? 255 : (n < 0 ? 0 : n);} __device__ int idxClip(int idx,int idxMax){ return idx > idxMax ? idxMax : (idx < 0 ? 0 : idx); } __device__ int flatten(int col...
.file "tmpxft_001fdc14_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2015: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2015: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z10tempKernelP6uchar4Pfii2BC .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 */ ...
// // Created by shuliang on 19-7-18. // #ifndef HARMONICCOORDINATEDEMO_KERNEL_CUH #define HARMONICCOORDINATEDEMO_KERNEL_CUH struct uchar4; typedef struct{ int x,y; float rad; int chamfer; float t_s,t_a,t_g; }BC; void kernelLauncher(uchar4 *d_out,float *d_temp,int w,int h,BC bc); void resetTemperatu...
.text .file "kernel.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-...
0d80adf2dbfb7c2ed7815186265b3ae81707d251
#include <iostream> using namespace std; void getCudaDeviceInfo() { int nDevices; cudaGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { cudaDeviceProp prop; cudaGetDeviceProperties(&prop, i); cout << "GPU Device Id: " << i << endl; cout << "Device name: " << pr...
.file "tmpxft_00398889_00000000-6_devices.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_e...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> using namespace std; void getCudaDeviceInfo() { int nDevices; hipGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { hipDeviceProp_t prop; hipGetDeviceProperties(&prop, i); cout << "GPU Device Id: " << i << endl; ...
.text .file "devices.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 functio...
.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-...
6c1882252ba0a49e484bacd0bfd6f20ed5df0cf9
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include<cmath> #include<iostream> #include <stdio.h> #include<iomanip> #include<fstream> using namespace std; #define precision 1E-8 #define PI 3.141592653589793238462643383 #define divide (8192) #define saving 8192 #define lambdamax 1.5 #define dlamb...
.file "tmpxft_00333117_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4008: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z6kernelPd .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<cmath> #include<iostream> #include <stdio.h> #include<iomanip> #include<fstream> using namespace std; #define precision 1E-8 #define PI 3.141592653589793238462643383 #define divide (8192) #define saving 8192 #define lambdamax 1.5 #define dlambda (double(lambdamax)/divide) con...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__kernelPd # -- Begin function _Z21__device_stub__kernelPd .type _Z21__...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPd ; -- Begin function _Z6kernelPd .globl _Z6kernelPd .p2align 8 .type _Z6kernelPd,@function _Z6kernelPd: ; @_Z6kernelPd ; %bb.0: s_load_b32 s2, s[0:1], 0x14 s_mov_b32 s4, 0x54442d18 s_mov_b32 s8, 0x6dc...
1eeb6c397c4972dbb5d3c4a1020a1af28c496ec6
/******************************************************************************* * serveral useful gpu functions will be defined in this file to calculate * weno derivatives ******************************************************************************/ __device__ inline double max2(double x, double y) { return (...
.file "tmpxft_0039fc24_00000000-6_nonoscillating_interpolant.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: ...
code for sm_89 Function : _Z26spatial_finite_volume_stepPdPKdS1_S1_S1_diiiddd .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> /******************************************************************************* * serveral useful gpu functions will be defined in this file to calculate * weno derivatives ******************************************************************************/ __device__ inline double max2(d...
.text .file "nonoscillating_interpolant.hip" .globl _Z30__device_stub__weno_derivativePdS_S_S_S_S_PKdiiiddd # -- Begin function _Z30__device_stub__weno_derivativePdS_S_S_S_S_PKdiiiddd .type _Z30__device_stub__weno_derivativePdS_S_S_S_S_PKdiiiddd,@function _Z30__device_stub__weno_derivativePdS_S_S_S_S_PKdiiiddd: # @...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .p2align 2 ; -- Begin function _Z24weno_onesided_derivativeddddd .type _Z24weno_onesided_derivativeddddd,@function _Z24weno_onesided_derivativeddddd: ; @_Z24weno_onesided_derivativeddddd ; %bb.0: s_waitcnt vmcnt(0) expcnt(0) lgkmc...
4250f397fc74f9ed473b65a4838691d279fb026d
// // Created by brian on 11/20/18. // #include "complex.cuh" #include <cmath> const float PI = 3.14159265358979f; __device__ __host__ Complex::Complex() : real(0.0f), imag(0.0f) {} __device__ __host__ Complex::Complex(float r) : real(r), imag(0.0f) {} __device__ __host__ Complex::Complex(float r, float i) : real...
.file "tmpxft_00311e45_00000000-6_complex.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3653: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_e...
code for sm_89
// // Created by brian on 11/20/18. // #pragma once #include <hip/hip_runtime.h> #include <iostream> class Complex { public: __device__ __host__ Complex(); __device__ __host__ Complex(float r, float i); __device__ __host__ Complex(float r); __device__ __host__ Complex operator+(const Complex& b) con...
.text .file "complex.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte ...
.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-...
a25fc2248de396d1ecc38a962d24e1732ee05244
#include <stdio.h> #include <cuda_runtime.h> /* Application adds two vectors declared in the code */ __global__ void vecAdd(int* a, int* b , int* c, int size){ // calculate thread id int id = blockIdx.x*blockDim.x+threadIdx.x; if(id < size){ c[id] = a[id] + b[id]; } } void printVector(int* ve...
.file "tmpxft_002bb09e_00000000-6_vector_addition.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...
code for sm_89 Function : _Z6vecAddPiS_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 <hip/hip_runtime.h> /* Application adds two vectors declared in the code */ __global__ void vecAdd(int* a, int* b , int* c, int size){ // calculate thread id int id = blockIdx.x*blockDim.x+threadIdx.x; if(id < size){ c[id] = a[id] + b[id]; } } void printVector(int*...
.text .file "vector_addition.hip" .globl _Z21__device_stub__vecAddPiS_S_i # -- Begin function _Z21__device_stub__vecAddPiS_S_i .type _Z21__device_stub__vecAddPiS_S_i,@function _Z21__device_stub__vecAddPiS_S_i: # @_Z21__device_stub__vecAddPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pu...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6vecAddPiS_S_i ; -- Begin function _Z6vecAddPiS_S_i .globl _Z6vecAddPiS_S_i .p2align 8 .type _Z6vecAddPiS_S_i,@function _Z6vecAddPiS_S_i: ; @_Z6vecAddPiS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 ...
421bb8991e020766bdcf5eb9a06fbbb4bd5780a0
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime.h> #define N (32) __global__ void inc(int *array, int len) { int i; for (i = 0; i < len; i++) array[i]++; return; } int main(int argc, char *argv[]) { int i; int arrayH[N]; int *arrayD; size_t array_size...
.file "tmpxft_0026d571_00000000-6_inc_sec.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 : _Z3incPii .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> #define N (32) __global__ void inc(int *array, int len) { int i; for (i = 0; i < len; i++) array[i]++; return; } int main(int argc, char *argv[]) { int i; int arrayH[N]; int *arrayD; size_t array_size; for (i=0...
.text .file "inc_sec.hip" .globl _Z18__device_stub__incPii # -- Begin function _Z18__device_stub__incPii .type _Z18__device_stub__incPii,@function _Z18__device_stub__incPii: # @_Z18__device_stub__incPii .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 _Z3incPii ; -- Begin function _Z3incPii .globl _Z3incPii .p2align 8 .type _Z3incPii,@function _Z3incPii: ; @_Z3incPii ; %bb.0: s_load_b32 s2, s[0:1], 0x8 s_waitcnt lgkmcnt(0) s_cmp_lt_i32 s2, 1 s_cbranch_sc...
f958219801d297a40363c6995387d150e6c92921
#include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void add(float *c, float* a, float *b, int values){ int blockD = blockDim.x; int blockX = blockIdx.x; int threadX = threadIdx.x; int i = blockX * blockD + threadX; if(i < values) c[i] = a[i] + b[i]; //printf("Hello Im thread %d in block %d of...
.file "tmpxft_00261055_00000000-6_code.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__cudaUnreg...
code for sm_89 Function : _Z3addPfS_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 add(float *c, float* a, float *b, int values){ int blockD = blockDim.x; int blockX = blockIdx.x; int threadX = threadIdx.x; int i = blockX * blockD + threadX; if(i < values) c[i] = a[i] + b[i]; //printf("Hel...
.text .file "code.hip" .globl _Z18__device_stub__addPfS_S_i # -- Begin function _Z18__device_stub__addPfS_S_i .type _Z18__device_stub__addPfS_S_i,@function _Z18__device_stub__addPfS_S_i: # @_Z18__device_stub__addPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPfS_S_i ; -- Begin function _Z3addPfS_S_i .globl _Z3addPfS_S_i .p2align 8 .type _Z3addPfS_S_i,@function _Z3addPfS_S_i: ; @_Z3addPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], ...
7ee043e51d9981a09a7cd94be808d406b451ab7b
/* * This sample implements a separable convolution * of a 2D image with an arbitrary filter. */ #include <time.h> #include <stdio.h> #include <stdlib.h> unsigned int filter_radius; #define FILTER_LENGTH (2 * filter_radius + 1) #define ABS(val) ((val)<0.0 ? (-(val)) : (val)) #define accuracy 0.0005 ///////////...
.file "tmpxft_00300181_00000000-6_quest28.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__cudaUn...
code for sm_89 Function : _Z20convolutionColumnGPUPfS_S_iii .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 sample implements a separable convolution * of a 2D image with an arbitrary filter. */ #include <hip/hip_runtime.h> #include <time.h> #include <stdio.h> #include <stdlib.h> unsigned int filter_radius; #define FILTER_LENGTH (2 * filter_radius + 1) #define ABS(val) ((val)<0.0 ? (-(val)) : (val)) #define ...
.text .file "quest28.hip" .globl _Z32__device_stub__convolutionRowGPUPfS_S_iii # -- Begin function _Z32__device_stub__convolutionRowGPUPfS_S_iii .type _Z32__device_stub__convolutionRowGPUPfS_S_iii,@function _Z32__device_stub__convolutionRowGPUPfS_S_iii: # @_Z32__device_stub__convolutionRowGPUPfS_S_iii .cfi_startpr...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17convolutionRowGPUPfS_S_iii ; -- Begin function _Z17convolutionRowGPUPfS_S_iii .globl _Z17convolutionRowGPUPfS_S_iii .p2align 8 .type _Z17convolutionRowGPUPfS_S_iii,@function _Z17convolutionRowGPUPfS_S_iii: ; @_Z17convolutionRowGPUPfS_S_iii ;...
5210e11f7cb0afb84629ea7284a3fe8f57162da3
#include "includes.h" #pragma once /* //åñëè äëÿ âñåõ êàðò õâàòèò âîçìîæíîñòåé âèäåîêàðòû (ÐÀÁÎÒÀÅÒ) */ __global__ void MapAdd1(int* one, const int* result, unsigned int mx, unsigned int width) { const unsigned int ppp = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int rix = ppp % width; const unsigned ...
.file "tmpxft_003800e5_00000000-6_MapAdd1.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__cudaUn...
code for sm_89 Function : _Z7MapAdd1PiPKijj .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 "includes.h" #pragma once #include <hip/hip_runtime.h> /* //åñëè äëÿ âñåõ êàðò õâàòèò âîçìîæíîñòåé âèäåîêàðòû (ÐÀÁÎÒÀÅÒ) */ __global__ void MapAdd1(int* one, const int* result, unsigned int mx, unsigned int width) { const unsigned int ppp = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int rix ...
.text .file "MapAdd1.hip" .globl _Z22__device_stub__MapAdd1PiPKijj # -- Begin function _Z22__device_stub__MapAdd1PiPKijj .type _Z22__device_stub__MapAdd1PiPKijj,@function _Z22__device_stub__MapAdd1PiPKijj: # @_Z22__device_stub__MapAdd1PiPKijj .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7MapAdd1PiPKijj ; -- Begin function _Z7MapAdd1PiPKijj .globl _Z7MapAdd1PiPKijj .p2align 8 .type _Z7MapAdd1PiPKijj,@function _Z7MapAdd1PiPKijj: ; @_Z7MapAdd1PiPKijj ; %bb.0: s_clause 0x1 s_load_b64 s[4:5], s[0:1], 0x10 s_l...
1a5419bebf3e48b2cb779c0673eeaaf0e58a46a1
#include <stdio.h> // Device code __global__ void VecAdd(float* A, float* B, float* C, int N) { int i = blockDim.x * blockIdx.x + threadIdx.x; if (i < N) C[i] = A[i] + B[i]; } // Initialise the input vectors void initialise_input_vect(float* A, float* B, int N) { for(int i=0; i<N; i++){ A[i]=i; ...
.file "tmpxft_002b1699_00000000-6_GPU_memory_challenge.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 : _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> // Device code __global__ void VecAdd(float* A, float* B, float* C, int N) { int i = blockDim.x * blockIdx.x + threadIdx.x; if (i < N) C[i] = A[i] + B[i]; } // Initialise the input vectors void initialise_input_vect(float* A, float* B, int N) { for(int i...
.text .file "GPU_memory_challenge.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 1...
.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 ...
0796ceb9275585aa0417599f77dc8f39da942d17
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <device_functions.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #define PI 3.1415926535897932 #define MAXEQNS 10 // maximum number of differential equations in the system const int itermax10 = 2; /...
.file "tmpxft_00312ba2_00000000-6_kernel.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__cudaUnr...
code for sm_89 Function : _Z13Order12KernelPdS_S_dS_ .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 <hip/device_functions.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #define PI 3.1415926535897932 #define MAXEQNS 10 // maximum number of differential equations in the system const int itermax10 = 2; // number of iterations to use ...
.text .file "kernel.hip" .globl _Z10cudaAssert10hipError_tPKci # -- Begin function _Z10cudaAssert10hipError_tPKci .type _Z10cudaAssert10hipError_tPKci,@function _Z10cudaAssert10hipError_tPKci: # @_Z10cudaAssert10hipError_tPKci .cfi_startproc # %bb.0: testl %edi, %edi jne .LBB0_2 # %bb.1: retq .LBB0_2: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9derKernelPdS_ ; -- Begin function _Z9derKernelPdS_ .globl _Z9derKernelPdS_ .p2align 8 .type _Z9derKernelPdS_,@function _Z9derKernelPdS_: ; @_Z9derKernelPdS_ ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 v_lshlrev_b32_e32 v2,...
6d51a9c23adfb9568835de91bacccf79a225d45f
#include <cstdio> #include <cstdlib> #include <vector> __global__ void initBucket(int *bucket) { int i = blockIdx.x*blockDim.x + threadIdx.x; // i = threadIdx.x in this code bucket[i] = 0; } __global__ void setBucket(int *bucket, int *key) { int i = blockIdx.x*blockDim.x + threadIdx.x; atomicAdd(&(bucket[key...
.file "tmpxft_00208c93_00000000-6_12_bucket_sort.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2899: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2899: .size _ZL26_...
code for sm_89 Function : _Z6setKeyPiS_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 <cstdio> #include <cstdlib> #include <vector> __global__ void initBucket(int *bucket) { int i = blockIdx.x*blockDim.x + threadIdx.x; // i = threadIdx.x in this code bucket[i] = 0; } __global__ void setBucket(int *bucket, int *key) { int i = blockIdx.x*blockDim.x + threadId...
.text .file "12_bucket_sort.hip" .globl _Z25__device_stub__initBucketPi # -- Begin function _Z25__device_stub__initBucketPi .type _Z25__device_stub__initBucketPi,@function _Z25__device_stub__initBucketPi: # @_Z25__device_stub__initBucketPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10initBucketPi ; -- Begin function _Z10initBucketPi .globl _Z10initBucketPi .p2align 8 .type _Z10initBucketPi,@function _Z10initBucketPi: ; @_Z10initBucketPi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x14 s_load_b64 ...
6b9d2cc8e08e422348e2039203ce6a931b462a8c
#include "includes.h" __global__ void assignColIds(int* colIds, const int* colOffsets) { int myId = blockIdx.x; int start = colOffsets[myId]; int end = colOffsets[myId + 1]; for (int id = start + threadIdx.x; id < end; id += blockDim.x) { colIds[id] = myId; } }
.file "tmpxft_0034957a_00000000-6_assignColIds.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 : _Z12assignColIdsPiPKi .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 assignColIds(int* colIds, const int* colOffsets) { int myId = blockIdx.x; int start = colOffsets[myId]; int end = colOffsets[myId + 1]; for (int id = start + threadIdx.x; id < end; id += blockDim.x) { colIds[id] = myId; } }
.text .file "assignColIds.hip" .globl _Z27__device_stub__assignColIdsPiPKi # -- Begin function _Z27__device_stub__assignColIdsPiPKi .type _Z27__device_stub__assignColIdsPiPKi,@function _Z27__device_stub__assignColIdsPiPKi: # @_Z27__device_stub__assignColIdsPiPKi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12assignColIdsPiPKi ; -- Begin function _Z12assignColIdsPiPKi .globl _Z12assignColIdsPiPKi .p2align 8 .type _Z12assignColIdsPiPKi,@function _Z12assignColIdsPiPKi: ; @_Z12assignColIdsPiPKi ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 s...
eea04f22e60e2652d37295a7a9ee9d89067e2412
extern "C" __global__ void sconv_bprop_C128_N128 ( float* param_test, float* param_O, const float* param_I, const float* param_F, float param_alpha, int param_N, int param_K, int param_D, int param_H, int param_W, int param_WN, int param_HWN, int param_DHWN, int param_C, int param_CRST, ...
.file "tmpxft_002e1f50_00000000-6_sconv_bprop_C128_N128.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 : sconv_bprop_C128_N128 .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> extern "C" __global__ void sconv_bprop_C128_N128 ( float* param_test, float* param_O, const float* param_I, const float* param_F, float param_alpha, int param_N, int param_K, int param_D, int param_H, int param_W, int param_WN, int param_HWN, int param_DHWN, int...
.text .file "sconv_bprop_C128_N128.hip" .globl __device_stub__sconv_bprop_C128_N128 # -- Begin function __device_stub__sconv_bprop_C128_N128 .type __device_stub__sconv_bprop_C128_N128,@function __device_stub__sconv_bprop_C128_N128: # @__device_stub__sconv_bprop_C128_N128 .cfi_startproc # %bb.0: pushq %r15 .cfi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected sconv_bprop_C128_N128 ; -- Begin function sconv_bprop_C128_N128 .globl sconv_bprop_C128_N128 .p2align 8 .type sconv_bprop_C128_N128,@function sconv_bprop_C128_N128: ; @sconv_bprop_C128_N128 ; %bb.0: v_dual_mov_b32 v1, 1.0 :: v_dual_l...
a815c95965241343cf5fbd756299c8eb5f014185
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <cuda.h> #define THREADS_PER_BLOCK 512 #define ARRAY_SIZE 512*512 __global__ void getMin(int* array, int* results, int n){ int i = threadIdx.x + blockIdx.x * blockDim.x; if(i >= n){ array[i] = INT_MAX; } __syncthreads(); ...
.file "tmpxft_003148ac_00000000-6_q1.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 : _Z10last_digitiPiS_ .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 <limits.h> #include <hip/hip_runtime.h> #define THREADS_PER_BLOCK 512 #define ARRAY_SIZE 512*512 __global__ void getMin(int* array, int* results, int n){ int i = threadIdx.x + blockIdx.x * blockDim.x; if(i >= n){ array[i] = INT_MAX; } __syncthre...
.text .file "q1.hip" .globl _Z21__device_stub__getMinPiS_i # -- Begin function _Z21__device_stub__getMinPiS_i .type _Z21__device_stub__getMinPiS_i,@function _Z21__device_stub__getMinPiS_i: # @_Z21__device_stub__getMinPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6getMinPiS_i ; -- Begin function _Z6getMinPiS_i .globl _Z6getMinPiS_i .p2align 8 .type _Z6getMinPiS_i,@function _Z6getMinPiS_i: ; @_Z6getMinPiS_i ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1], 0x24 s_load_b32 s9, s[0:...
c656c86c91cc1ef627d6282f55d68b65db8a9b70
#include "includes.h" __global__ void StarRadKernel (double *Qbase2, double *Vrad, double *QStar, double dt, int nrad, int nsec, double *invdiffRmed, double *Rmed, double *dq) { int j = threadIdx.x + blockDim.x*blockIdx.x; int i = threadIdx.y + blockDim.y*blockIdx.y; double dqm, dqp; if (i<nrad && j<nsec){ if ((i == ...
.file "tmpxft_00233403_00000000-6_StarRadKernel.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 : _Z13StarRadKernelPdS_S_diiS_S_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 "includes.h" __global__ void StarRadKernel (double *Qbase2, double *Vrad, double *QStar, double dt, int nrad, int nsec, double *invdiffRmed, double *Rmed, double *dq) { int j = threadIdx.x + blockDim.x*blockIdx.x; int i = threadIdx.y + blockDim.y*blockIdx.y; double dqm, dqp; if ...
.text .file "StarRadKernel.hip" .globl _Z28__device_stub__StarRadKernelPdS_S_diiS_S_S_ # -- Begin function _Z28__device_stub__StarRadKernelPdS_S_diiS_S_S_ .type _Z28__device_stub__StarRadKernelPdS_S_diiS_S_S_,@function _Z28__device_stub__StarRadKernelPdS_S_diiS_S_S_: # @_Z28__device_stub__StarRadKernelPdS_S_diiS_S_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13StarRadKernelPdS_S_diiS_S_S_ ; -- Begin function _Z13StarRadKernelPdS_S_diiS_S_S_ .globl _Z13StarRadKernelPdS_S_diiS_S_S_ .p2align 8 .type _Z13StarRadKernelPdS_S_diiS_S_S_,@function _Z13StarRadKernelPdS_S_diiS_S_S_: ; @_Z13StarRadKernelPdS_S_d...
36cd10cf2df020db7b278511b06718c1570c608c
#include "includes.h" #define N 100000000 __global__ void daxpy_simple(int n, double alpha, double *x, double *y) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < n) { y[idx] += alpha * x[idx]; } }
.file "tmpxft_0021a3a0_00000000-6_daxpy_simple.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 : _Z12daxpy_simpleidPdS_ .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" #define N 100000000 __global__ void daxpy_simple(int n, double alpha, double *x, double *y) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < n) { y[idx] += alpha * x[idx]; } }
.text .file "daxpy_simple.hip" .globl _Z27__device_stub__daxpy_simpleidPdS_ # -- Begin function _Z27__device_stub__daxpy_simpleidPdS_ .type _Z27__device_stub__daxpy_simpleidPdS_,@function _Z27__device_stub__daxpy_simpleidPdS_: # @_Z27__device_stub__daxpy_simpleidPdS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12daxpy_simpleidPdS_ ; -- Begin function _Z12daxpy_simpleidPdS_ .globl _Z12daxpy_simpleidPdS_ .p2align 8 .type _Z12daxpy_simpleidPdS_,@function _Z12daxpy_simpleidPdS_: ; @_Z12daxpy_simpleidPdS_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s...
7de6e973c5c56a1d87c79870547630208dee6e3f
#include <iostream> #include<ctime> using namespace std; __global__ void mini(int *a,int *b,int n) { int tid = threadIdx.x; int minn = INT_MAX; for(int i=0;i<min(tid+256,n);i++) { if(minn>a[i]) minn = a[i]; } b[tid] = minn; } int main() { int *a,*b,size,n; int *d_a,*d_b; cin>>n; size = n*sizeof(int); ...
.file "tmpxft_00307bdc_00000000-6_min.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_endpr...
code for sm_89 Function : _Z4miniPiS_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 <iostream> #include<ctime> using namespace std; __global__ void mini(int *a,int *b,int n) { int tid = threadIdx.x; int minn = INT_MAX; for(int i=0;i<min(tid+256,n);i++) { if(minn>a[i]) minn = a[i]; } b[tid] = minn; } int main() { int *a,*b,size,n; int *d_a,*d_b; c...
.text .file "min.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z19__device_stub__miniPiS_i # -- Begin function _Z19__device_stub__miniPiS_i .type _Z19__de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4miniPiS_i ; -- Begin function _Z4miniPiS_i .globl _Z4miniPiS_i .p2align 8 .type _Z4miniPiS_i,@function _Z4miniPiS_i: ; @_Z4miniPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x10 s_load_b128 s[0:3], s[0:1],...
bb6670397580863e0be7f7c00092dd95ff1bf282
// Copyright 2018,2019,2020,2021 Sony Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
.file "tmpxft_00301ae9_00000000-6_multi_process_data_parallel_communicator.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_endpr...
code for sm_89 Function : _ZN4nbla21cuda_increment_vectorEPf .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> // Copyright 2018,2019,2020,2021 Sony Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //...
.text .file "multi_process_data_parallel_communicator.hip" .globl _ZN4nbla36__device_stub__cuda_increment_vectorEPf # -- Begin function _ZN4nbla36__device_stub__cuda_increment_vectorEPf .type _ZN4nbla36__device_stub__cuda_increment_vectorEPf,@function _ZN4nbla36__device_stub__cuda_increment_vectorEPf: # @_ZN4nbla36...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _ZN4nbla21cuda_increment_vectorEPf ; -- Begin function _ZN4nbla21cuda_increment_vectorEPf .globl _ZN4nbla21cuda_increment_vectorEPf .p2align 8 .type _ZN4nbla21cuda_increment_vectorEPf,@function _ZN4nbla21cuda_increment_vectorEPf: ; @_ZN4nbla21cuda_i...
f3cf4677201e25bd40282afeaf82798596a2511e
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #include <math.h> #include <limits.h> #include "cuda_kernel.cuh" int solveProblem(const int argc, const char* argv[]){ cudaError_t return_value; if(argc == 2){ cudaEvent_t start, stop; float time; int threads = atoi(argv[1]); cudaEventCreate(&sta...
.file "tmpxft_003aad9c_00000000-6_cuda_base.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__cuda...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <limits.h> #include "cuda_kernel.cuh" int solveProblem(const int argc, const char* argv[]){ hipError_t return_value; if(argc == 2){ hipEvent_t start, stop; float time; int threads = atoi(argv[1]); hipEventCreate(&start); hipEventCr...
.text .file "cuda_base.hip" .globl _Z12solveProblemiPPKc # -- Begin function _Z12solveProblemiPPKc .type _Z12solveProblemiPPKc,@function _Z12solveProblemiPPKc: # @_Z12solveProblemiPPKc .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq ...
.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-...
4507869792910928dcbb9bd8c1d2f76b56d25e37
#include "includes.h" __device__ float explicitLocalStepHeat( float unjpo, float unjmo, float unj, float r) { return (1 - 2 * r)*unj + r*unjmo + r * unjpo; } __global__ void explicitTimestepHeat( int size, float *d_currentVal, float *d_nextVal, float r ) { int i = threadIdx.x + blockDim.x * blockIdx.x; if (i < size) { ...
.file "tmpxft_00309430_00000000-6_explicitTimestepHeat.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 ...
code for sm_89 Function : _Z20explicitTimestepHeatiPfS_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 "includes.h" __device__ float explicitLocalStepHeat( float unjpo, float unjmo, float unj, float r) { return (1 - 2 * r)*unj + r*unjmo + r * unjpo; } __global__ void explicitTimestepHeat( int size, float *d_currentVal, float *d_nextVal, float r ) { int i = threadIdx.x + blockDim.x ...
.text .file "explicitTimestepHeat.hip" .globl _Z35__device_stub__explicitTimestepHeatiPfS_f # -- Begin function _Z35__device_stub__explicitTimestepHeatiPfS_f .type _Z35__device_stub__explicitTimestepHeatiPfS_f,@function _Z35__device_stub__explicitTimestepHeatiPfS_f: # @_Z35__device_stub__explicitTimestepHeatiPfS_f ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20explicitTimestepHeatiPfS_f ; -- Begin function _Z20explicitTimestepHeatiPfS_f .globl _Z20explicitTimestepHeatiPfS_f .p2align 8 .type _Z20explicitTimestepHeatiPfS_f,@function _Z20explicitTimestepHeatiPfS_f: ; @_Z20explicitTimestepHeatiPfS_f ;...
1c7eec697f96a15e351f82cdc6f8b035219861fc
/** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
.file "tmpxft_0035b798_00000000-6_simpleConcurrency.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 _ZL...
code for sm_89 Function : _Z8kernel_3v .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 */ ...
/** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
.text .file "simpleConcurrency.hip" .globl _Z23__device_stub__kernel_1v # -- Begin function _Z23__device_stub__kernel_1v .type _Z23__device_stub__kernel_1v,@function _Z23__device_stub__kernel_1v: # @_Z23__device_stub__kernel_1v .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8kernel_1v ; -- Begin function _Z8kernel_1v .globl _Z8kernel_1v .p2align 8 .type _Z8kernel_1v,@function _Z8kernel_1v: ; @_Z8kernel_1v ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_ker...
baefa9a04fd0a537a0c91963a8d3bdc567ad0804
#include <cstdlib> #define PI 3.1415926535897932384626433832795029f #define PIx2 6.2831853071795864769252867665590058f #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define K_ELEMS_PER_GRID 2048 #define KERNEL_PHI_MAG_THREADS_PER_BLOCK 512 #define KERNEL_Q_THREADS_PER_BLOCK 256 #define KERNEL_Q_K_ELEMS_PER_GRID 1024 ...
.file "tmpxft_002fb2e0_00000000-6_computeQ.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2013: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2013: .size _ZL26__cudaU...
code for sm_89 Function : _Z12ComputeQ_GPUiiPfS_S_S_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 <cstdlib> #define PI 3.1415926535897932384626433832795029f #define PIx2 6.2831853071795864769252867665590058f #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define K_ELEMS_PER_GRID 2048 #define KERNEL_PHI_MAG_THREADS_PER_BLOCK 512 #define KERNEL_Q_THREADS_PER_BLOCK 256 #define KER...
.text .file "computeQ.hip" .globl _Z32__device_stub__ComputePhiMag_GPUPfS_S_i # -- Begin function _Z32__device_stub__ComputePhiMag_GPUPfS_S_i .type _Z32__device_stub__ComputePhiMag_GPUPfS_S_i,@function _Z32__device_stub__ComputePhiMag_GPUPfS_S_i: # @_Z32__device_stub__ComputePhiMag_GPUPfS_S_i .cfi_startproc # %bb....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17ComputePhiMag_GPUPfS_S_i ; -- Begin function _Z17ComputePhiMag_GPUPfS_S_i .globl _Z17ComputePhiMag_GPUPfS_S_i .p2align 8 .type _Z17ComputePhiMag_GPUPfS_S_i,@function _Z17ComputePhiMag_GPUPfS_S_i: ; @_Z17ComputePhiMag_GPUPfS_S_i ; %bb.0: s...
d82b819e4cb0a62d628db8f0ca1978c59fbba489
#include <cstdio> #include <math.h> #include <ctime> #include <iostream> using namespace std; int performanceMeasure1(); int performanceMeasure2(); int performanceMeasure3(); int performanceMeasure4(); int performanceMeasure5(); int countSortSerial1(); int countSortSerial2(); int countSortSerial3(); int countSortSeri...
.file "tmpxft_002292c9_00000000-6_counting_sort.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3648: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z11copyToArrayPiS_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 <cstdio> #include <math.h> #include <ctime> #include <iostream> using namespace std; int performanceMeasure1(); int performanceMeasure2(); int performanceMeasure3(); int performanceMeasure4(); int performanceMeasure5(); int countSortSerial1(); int countSortSerial2(); int countSo...
.text .file "counting_sort.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__histogramPiS_ii # -- Begin function _Z24__device_stub__histogramPiS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9histogramPiS_ii ; -- Begin function _Z9histogramPiS_ii .globl _Z9histogramPiS_ii .p2align 8 .type _Z9histogramPiS_ii,@function _Z9histogramPiS_ii: ; @_Z9histogramPiS_ii ; %bb.0: s_clause 0x1 s_load_b64 s[2:3], s[0:1], 0x14 ...
b5ae1ad5c5cd60f11927bf14ccf7335b0f6fbe24
#include "includes.h" __global__ void cube_select(int b, int n,float radius, const float* xyz, int* idx_out) { int batch_idx = blockIdx.x; xyz += batch_idx * n * 3; idx_out += batch_idx * n * 8; float temp_dist[8]; float judge_dist = radius * radius; for(int i = threadIdx.x; i < n;i += blockDim.x) { float x = xyz[i * 3...
.file "tmpxft_002e9e0e_00000000-6_cube_select.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__cu...
code for sm_89 Function : _Z11cube_selectiifPKfPi .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 cube_select(int b, int n,float radius, const float* xyz, int* idx_out) { int batch_idx = blockIdx.x; xyz += batch_idx * n * 3; idx_out += batch_idx * n * 8; float temp_dist[8]; float judge_dist = radius * radius; for(int i = threadIdx.x; i < n;i += blo...
.text .file "cube_select.hip" .globl _Z26__device_stub__cube_selectiifPKfPi # -- Begin function _Z26__device_stub__cube_selectiifPKfPi .type _Z26__device_stub__cube_selectiifPKfPi,@function _Z26__device_stub__cube_selectiifPKfPi: # @_Z26__device_stub__cube_selectiifPKfPi .cfi_startproc # %bb.0: pushq %r15 .cfi_d...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11cube_selectiifPKfPi ; -- Begin function _Z11cube_selectiifPKfPi .globl _Z11cube_selectiifPKfPi .p2align 8 .type _Z11cube_selectiifPKfPi,@function _Z11cube_selectiifPKfPi: ; @_Z11cube_selectiifPKfPi ; %bb.0: s_load_b64 s[2:3], s[0:1],...
8b2efafcbd227be7e58c174287c06ca28ec27111
#include <cuda_runtime.h> __global__ void matmult_gpu1Kernel(int m, int n, int k, double * d_A, double * d_B, double * d_C); extern "C" { void matmult_gpu1(int m, int n, int k, double * A, double * B, double * C){ double * d_A, * d_B, * d_C; cudaMalloc((void **)&d_A, m * k * sizeof(double *)); cudaMalloc((void **...
.file "tmpxft_00318f4f_00000000-6_matmult_gpu1.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__c...
code for sm_89 Function : _Z18matmult_gpu1KerneliiiPdS_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> __global__ void matmult_gpu1Kernel(int m, int n, int k, double * d_A, double * d_B, double * d_C); extern "C" { void matmult_gpu1(int m, int n, int k, double * A, double * B, double * C){ double * d_A, * d_B, * d_C; hipMalloc((void **)&d_A, m * k * sizeof(double *)); hipMalloc((void *...
.text .file "matmult_gpu1.hip" .globl matmult_gpu1 # -- Begin function matmult_gpu1 .type matmult_gpu1,@function matmult_gpu1: # @matmult_gpu1 .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offse...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18matmult_gpu1KerneliiiPdS_S_ ; -- Begin function _Z18matmult_gpu1KerneliiiPdS_S_ .globl _Z18matmult_gpu1KerneliiiPdS_S_ .p2align 8 .type _Z18matmult_gpu1KerneliiiPdS_S_,@function _Z18matmult_gpu1KerneliiiPdS_S_: ; @_Z18matmult_gpu1KerneliiiPdS...
ea722e8ed4dc2368b3a7f81a5250870ad52e80b9
#include <stdio.h> #include <stdlib.h> #include <cuda.h> // CUDA example: finds row sums of an integer matrix m // find1elt() finds the row sum of one row of the nxn matrix m, // storing the result in the corresponding position in the // rowsum array rs; matrix is in 1-dimensional, row-major order // this is the ...
.file "tmpxft_0036af8f_00000000-6_RowSums.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 : _Z8find1eltPiS_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> // CUDA example: finds row sums of an integer matrix m // find1elt() finds the row sum of one row of the nxn matrix m, // storing the result in the corresponding position in the // rowsum array rs; matrix is in 1-dimensional, row-major order // t...
.text .file "RowSums.hip" .globl _Z23__device_stub__find1eltPiS_i # -- Begin function _Z23__device_stub__find1eltPiS_i .type _Z23__device_stub__find1eltPiS_i,@function _Z23__device_stub__find1eltPiS_i: # @_Z23__device_stub__find1eltPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8find1eltPiS_i ; -- Begin function _Z8find1eltPiS_i .globl _Z8find1eltPiS_i .p2align 8 .type _Z8find1eltPiS_i,@function _Z8find1eltPiS_i: ; @_Z8find1eltPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s5, s[0:1], 0x10 s_load_b128...
b40c4fd7b4b07c36a2be82f8aba67412c30c89c8
#include "includes.h" __global__ void gpu_stencil37_hack2_cp_slices(double * dst, double * shared_rows, double *shared_cols,double *shared_slices,int d_xpitch,int d_ypitch,int d_zpitch,int s_xpitch,int s_ypitch, int s_zpitch, int n_rows, int n_cols,int n_slices, int tile_x,int tile_y, int tile_z){ #ifdef CUDA_CUDA_DEB...
.file "tmpxft_00393704_00000000-6_gpu_stencil37_hack2_cp_slices.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...
code for sm_89 Function : _Z29gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii .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 gpu_stencil37_hack2_cp_slices(double * dst, double * shared_rows, double *shared_cols,double *shared_slices,int d_xpitch,int d_ypitch,int d_zpitch,int s_xpitch,int s_ypitch, int s_zpitch, int n_rows, int n_cols,int n_slices, int tile_x,int tile_y, int ...
.text .file "gpu_stencil37_hack2_cp_slices.hip" .globl _Z44__device_stub__gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii # -- Begin function _Z44__device_stub__gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii .type _Z44__device_stub__gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii,@function _Z44__device_stub_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z29gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii ; -- Begin function _Z29gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii .globl _Z29gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiiiiiiiii .p2align 8 .type _Z29gpu_stencil37_hack2_cp_slicesPdS_S_S_iiiiii...
8bc73f69649af5db37ed45792903e4f7309ca712
#include "includes.h" __global__ void x_avpb_py_f32 (float* x, float a, float* v, float b, float* y, int len) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < len) { y[idx] += x[idx] * (a * v[idx] + b); } }
.file "tmpxft_002d150b_00000000-6_x_avpb_py_f32.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 : _Z13x_avpb_py_f32PffS_fS_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 x_avpb_py_f32 (float* x, float a, float* v, float b, float* y, int len) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < len) { y[idx] += x[idx] * (a * v[idx] + b); } }
.text .file "x_avpb_py_f32.hip" .globl _Z28__device_stub__x_avpb_py_f32PffS_fS_i # -- Begin function _Z28__device_stub__x_avpb_py_f32PffS_fS_i .type _Z28__device_stub__x_avpb_py_f32PffS_fS_i,@function _Z28__device_stub__x_avpb_py_f32PffS_fS_i: # @_Z28__device_stub__x_avpb_py_f32PffS_fS_i .cfi_startproc # %bb.0: p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13x_avpb_py_f32PffS_fS_i ; -- Begin function _Z13x_avpb_py_f32PffS_fS_i .globl _Z13x_avpb_py_f32PffS_fS_i .p2align 8 .type _Z13x_avpb_py_f32PffS_fS_i,@function _Z13x_avpb_py_f32PffS_fS_i: ; @_Z13x_avpb_py_f32PffS_fS_i ; %bb.0: s_clause 0x...
92aa4b3ca71e3f7248aea705b5af85b53313b6af
#include "includes.h" __global__ void reduction(int* input, int* output) { __shared__ int tmp[TPB]; tmp[threadIdx.x] = input[threadIdx.x + blockIdx.x * blockDim.x]; __syncthreads(); if(threadIdx.x < blockDim.x / 2) tmp[threadIdx.x] += tmp[threadIdx.x + blockDim.x / 2]; __syncthreads(); if(threadIdx.x < blockDim.x ...
.file "tmpxft_002c0178_00000000-6_reduction.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 : _Z9reductionPiS_ .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 reduction(int* input, int* output) { __shared__ int tmp[TPB]; tmp[threadIdx.x] = input[threadIdx.x + blockIdx.x * blockDim.x]; __syncthreads(); if(threadIdx.x < blockDim.x / 2) tmp[threadIdx.x] += tmp[threadIdx.x + blockDim.x / 2]; __syncthreads();...
.text .file "reduction.hip" .globl _Z24__device_stub__reductionPiS_ # -- Begin function _Z24__device_stub__reductionPiS_ .type _Z24__device_stub__reductionPiS_,@function _Z24__device_stub__reductionPiS_: # @_Z24__device_stub__reductionPiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9reductionPiS_ ; -- Begin function _Z9reductionPiS_ .globl _Z9reductionPiS_ .p2align 8 .type _Z9reductionPiS_,@function _Z9reductionPiS_: ; @_Z9reductionPiS_ ; %bb.0: s_clause 0x1 s_load_b32 s6, s[0:1], 0x1c s_load_b128...
88dce1af016339ef193ba0a8dc55eee0181b4bad
#include <stdio.h> #include <stdlib.h> #include <math.h> // Kernel that executes on the CUDA device __global__ void square_array(float *a, float *b, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx<N) { a[idx] = a[idx] * a[idx]; } } // main routine that executes on the host int main(void) { ...
.file "tmpxft_002ccc0b_00000000-6_Ejemplo5.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__cudaU...
code for sm_89 Function : _Z12square_arrayPfS_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> // Kernel that executes on the CUDA device __global__ void square_array(float *a, float *b, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx<N) { a[idx] = a[idx] * a[idx]; } } // main routine that executes ...
.text .file "Ejemplo5.hip" .globl _Z27__device_stub__square_arrayPfS_i # -- Begin function _Z27__device_stub__square_arrayPfS_i .type _Z27__device_stub__square_arrayPfS_i,@function _Z27__device_stub__square_arrayPfS_i: # @_Z27__device_stub__square_arrayPfS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offs...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12square_arrayPfS_i ; -- Begin function _Z12square_arrayPfS_i .globl _Z12square_arrayPfS_i .p2align 8 .type _Z12square_arrayPfS_i,@function _Z12square_arrayPfS_i: ; @_Z12square_arrayPfS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
ca027a525fd8270216de413cc8067be6752a29eb
//nvcc -ptx EM4.cu -ccbin "F:Visual Studio\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64" __device__ void EM1( double * x, double * y, double * z, double * vx, double * vy, double * vz, double * ...
.file "tmpxft_002ee94e_00000000-6_EM4.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__cudaUnregi...
code for sm_89 Function : _Z24processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd .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] ; /* 0x000...
#include <hip/hip_runtime.h> //nvcc -ptx EM4.cu -ccbin "F:Visual Studio\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64" __device__ void EM1( double * x, double * y, double * z, double * vx, double * vy, double * vz, ...
.text .file "EM4.hip" .globl _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd # -- Begin function _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd .type _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd,...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd ; -- Begin function _Z24processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd .globl _Z24processMandelbrotElementPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_Piidddiiddddd .p2align 8 ...
cb1964a5a98fa7b836a71c62b131afacceee9ca0
#include <unistd.h> #include <stdio.h> #define THREADS 256 #define START 0 #define END 1000 __global__ void sum(int* result) { __shared__ int partials[THREADS]; int start = ((END - START) / blockDim.x) * threadIdx.x; int end = start + ((END - START) / blockDim.x) - 1; if (threadIdx.x == (THREADS - 1...
.file "tmpxft_002e6f0f_00000000-6_sharedsum.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2043: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2043: .size _ZL26__cuda...
code for sm_89 Function : _Z3sumPi .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 <unistd.h> #include <stdio.h> #define THREADS 256 #define START 0 #define END 1000 __global__ void sum(int* result) { __shared__ int partials[THREADS]; int start = ((END - START) / blockDim.x) * threadIdx.x; int end = start + ((END - START) / blockDim.x) - 1; i...
.text .file "sharedsum.hip" .globl _Z18__device_stub__sumPi # -- Begin function _Z18__device_stub__sumPi .type _Z18__device_stub__sumPi,@function _Z18__device_stub__sumPi: # @_Z18__device_stub__sumPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 2...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3sumPi ; -- Begin function _Z3sumPi .globl _Z3sumPi .p2align 8 .type _Z3sumPi,@function _Z3sumPi: ; @_Z3sumPi ; %bb.0: s_load_b32 s2, s[0:1], 0x14 s_mov_b32 s4, 0 s_mov_b32 s3, exec_lo s_waitcnt lgkmcnt...
d07dc1a54fd5b9719ad95c56420def193c017ba0
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include<bits/stdc++.h> #include <numeric> #include<math.h> //#define 10 10 using namespace std; __global__ void cuda_add(int *da,int *db,int *dc) { int i = threadIdx.x + blockIdx.x * blockDim.x; //dc[i] = da[i]=db[i]=0; dc[i] = da[i]+db[i]; //prin...
.file "tmpxft_0035b9b7_00000000-6_cuda.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 .cfi_end...
code for sm_89 Function : _Z8cuda_addPiS_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> #include <numeric> #include<math.h> //#define 10 10 using namespace std; __global__ void cuda_add(int *da,int *db,int *dc) { int i = threadIdx.x + blockIdx.x * blockDim.x; //dc[i] = da[i]=db[i]=0; dc[i] = da[i]+db[i]; //printf("IN GLOBAL %d > %d %d %d \n",i,...
.text .file "cuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z23__device_stub__cuda_addPiS_S_ # -- Begin function _Z23__device_stub__cuda_addPiS_S_ .type ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8cuda_addPiS_S_ ; -- Begin function _Z8cuda_addPiS_S_ .globl _Z8cuda_addPiS_S_ .p2align 8 .type _Z8cuda_addPiS_S_,@function _Z8cuda_addPiS_S_: ; @_Z8cuda_addPiS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_...
50c807e2dddcbb00875861feb9e899723d1c2421
#include <iostream> #include <stdio.h> #include <math.h> #include <vector> /** * Several variations of a simple 3D 7-point Laplacian. * * Notes: * - Since it is a very simple example which naturally fits the parallelization * model of CUDA, there are not many elaborate optimization. * - Using shared memory might...
.file "tmpxft_00261fd7_00000000-6_main.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4021: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z15laplace3d_smem2PdS_4dim3S0_ .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 <stdio.h> #include <math.h> #include <vector> /** * Several variations of a simple 3D 7-point Laplacian. * * Notes: * - Since it is a very simple example which naturally fits the parallelization * model of CUDA, there are not many elaborate optimization. ...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z31__device_stub__laplace3d_no_ldgPdS_4dim3S0_ # -- Begin function _Z31__device_stub__laplace3...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16laplace3d_no_ldgPdS_4dim3S0_ ; -- Begin function _Z16laplace3d_no_ldgPdS_4dim3S0_ .globl _Z16laplace3d_no_ldgPdS_4dim3S0_ .p2align 8 .type _Z16laplace3d_no_ldgPdS_4dim3S0_,@function _Z16laplace3d_no_ldgPdS_4dim3S0_: ; @_Z16laplace3d_no_ldgPdS_...
17aa78523c85ab3d1838968bfe9761864b78ae1f
#include <iostream> #include <cmath> /* Ryan McDonald CSUF Spring 2021 CPSC 479 - Dr. Bein */ __global__ void squareMatrix(int* matrix, int* result, int N) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int sum = 0; if (row < N && col < N) { for (int i = 0;...
.file "tmpxft_003717af_00000000-6_Matrix-Min-Value-And-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 __cudaUnregisterF...
code for sm_89 Function : _Z13findLowestValPiS_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 <iostream> #include <cmath> /* Ryan McDonald CSUF Spring 2021 CPSC 479 - Dr. Bein */ __global__ void squareMatrix(int* matrix, int* result, int N) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int sum = 0; if (row < N &&...
.text .file "Matrix-Min-Value-And-Square.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z27__device_stub__squareMatrixPiS_i # -- Begin function _Z27__device_st...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12squareMatrixPiS_i ; -- Begin function _Z12squareMatrixPiS_i .globl _Z12squareMatrixPiS_i .p2align 8 .type _Z12squareMatrixPiS_i,@function _Z12squareMatrixPiS_i: ; @_Z12squareMatrixPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
122db3fce6e4174bcf64b93268a0be5c4927e336
#include "cuda_runtime.h" #include <cuda.h> #include <cstdio> #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include "device_launch_parameters.h" using namespace std; const int MAX_STRING_LENGTH = 256; const int THREADS = 3; const string DATA_FILE = "/home/lukasz/Documents/GitHub/Lygret...
.file "tmpxft_0033a263_00000000-6_main.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4381: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc .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 <cstdio> #include <iostream> #include <iomanip> #include <fstream> #include <vector> using namespace std; const int MAX_STRING_LENGTH = 256; const int THREADS = 3; const string DATA_FILE = "/home/lukasz/Documents/GitHub/Lygretus_Programavimas/lab3_cuda/IFF-8-8_ZumarasLukas_L1_...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc ; -- Begin function _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc .globl _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc .p2align 8 .type _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc,@function _Z10sum_on_gpuP12BenchmarkGPUPiS1_S1_Pc...
0d57b0cdec8282b53c25e69ab0bf7a5fb5d087e5
#include <iostream> #include <thrust/version.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/reduce.h> #include <thrust/fill.h> // examples // [1] https://github.com/thrust/thrust/wiki/Quick-Start-Guide void thrust_reduce_by_key(thrust::device_vector<int> &d_keys, ...
.file "tmpxft_0021847c_00000000-6_test1.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat ...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tElN6thrust20THRUST_200700_890_NS8cuda_cub6__fill7functorINS7_6detail15normal_iteratorINS7_10device_ptrIfEEEEfEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_C...
#include <hip/hip_runtime.h> #include <iostream> #include <thrust/version.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/reduce.h> #include <thrust/fill.h> // examples // [1] https://github.com/thrust/thrust/wiki/Quick-Start-Guide void thrust_reduce_by_key(thrust::device_vecto...
.text .file "test1.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23reduce_by_key_kernel_v1PiS_PfiiS0_ ; -- Begin function _Z23reduce_by_key_kernel_v1PiS_PfiiS0_ .globl _Z23reduce_by_key_kernel_v1PiS_PfiiS0_ .p2align 8 .type _Z23reduce_by_key_kernel_v1PiS_PfiiS0_,@function _Z23reduce_by_key_kernel_v1PiS_PfiiS0_: ; @...
b516d28929901b19eaa5e305a007d290aa041a09
#include <iostream> #include <cstdlib> #include <cassert> #include <zlib.h> #include <png.h> #include <queue> #include <thread> #include <mutex> #include <condition_variable> #include <vector> using namespace std; #define MASK_N 2 #define MASK_X 5 #define MASK_Y 5 #define SCALE 8 #define NUM_THREAD 512 __constant__ i...
.file "tmpxft_0022fef6_00000000-6_sobel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNSt6thread24_M_thread_deps_never_runEv,"axG",@progbits,_ZNSt6thread24_M_thread_deps_never_runEv,comdat .weak _ZNSt6thread24_M_thread_deps_never_runEv .type _ZNSt6thread24_M_thread_deps_nev...
code for sm_89 Function : _Z5sobelPhS_jjjmi .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 <cstdlib> #include <cassert> #include <zlib.h> #include <png.h> #include <queue> #include <thread> #include <mutex> #include <condition_variable> #include <vector> using namespace std; #define MASK_N 2 #define MASK_X 5 #define MASK_Y 5 #define SCALE 8 #define ...
.text .file "sobel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z8read_pngPKcPPhPjS3_S3_ # -- Begin function _Z8read_pngPKcPPhPjS3_S3_ .type _Z8read_p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5sobelPhS_jjjmi ; -- Begin function _Z5sobelPhS_jjjmi .globl _Z5sobelPhS_jjjmi .p2align 8 .type _Z5sobelPhS_jjjmi,@function _Z5sobelPhS_jjjmi: ; @_Z5sobelPhS_jjjmi ; %bb.0: s_load_b256 s[16:23], s[0:1], 0x0 v_lshl_add_u32 ...
dee9e94f7ed1ca8005c8b8e82ca5038d48006fb3
#include "includes.h" __global__ void ExactResampleKernel_1toN(float *input, float *output, int inputWidth, int inputHeight, int outputWidth, int outputHeight) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int size = outputWidth * outputHeight; if (id < size) { //output point ...
.file "tmpxft_0038b09e_00000000-6_ExactResampleKernel_1toN.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 : _Z24ExactResampleKernel_1toNPfS_iiii .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 ExactResampleKernel_1toN(float *input, float *output, int inputWidth, int inputHeight, int outputWidth, int outputHeight) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int size = outputWidth * outputHeight; if...
.text .file "ExactResampleKernel_1toN.hip" .globl _Z39__device_stub__ExactResampleKernel_1toNPfS_iiii # -- Begin function _Z39__device_stub__ExactResampleKernel_1toNPfS_iiii .type _Z39__device_stub__ExactResampleKernel_1toNPfS_iiii,@function _Z39__device_stub__ExactResampleKernel_1toNPfS_iiii: # @_Z39__device_stub_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24ExactResampleKernel_1toNPfS_iiii ; -- Begin function _Z24ExactResampleKernel_1toNPfS_iiii .globl _Z24ExactResampleKernel_1toNPfS_iiii .p2align 8 .type _Z24ExactResampleKernel_1toNPfS_iiii,@function _Z24ExactResampleKernel_1toNPfS_iiii: ; @_Z24Exac...
18bdb13b4dc5df24ff6c70c5a296b37572f3011a
#include <stdio.h> #include <stdlib.h> // questions: // 1. if I had a bunch of vectors to add in succession, would there be any benefit in keeping the memory allocated // and doing all the additions before freeing memory? What would be the impact? // 2. given that thread creation has some overhead, would it make sen...
.file "tmpxft_0031a80a_00000000-6_vector_add.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 : _Z9addKernelPfS_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> // questions: // 1. if I had a bunch of vectors to add in succession, would there be any benefit in keeping the memory allocated // and doing all the additions before freeing memory? What would be the impact? // 2. given that thread creation has so...
.text .file "vector_add.hip" .globl _Z24__device_stub__addKernelPfS_S_i # -- Begin function _Z24__device_stub__addKernelPfS_S_i .type _Z24__device_stub__addKernelPfS_S_i,@function _Z24__device_stub__addKernelPfS_S_i: # @_Z24__device_stub__addKernelPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9addKernelPfS_S_i ; -- Begin function _Z9addKernelPfS_S_i .globl _Z9addKernelPfS_S_i .p2align 8 .type _Z9addKernelPfS_S_i,@function _Z9addKernelPfS_S_i: ; @_Z9addKernelPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c ...
70fdc63664a655328708945e385d876c8fa24785
#include "includes.h" __global__ void addKernel(int *c, const int *a, const int *b, int size) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < size) { c[i] = a[i] + b[i]; } }
.file "tmpxft_00315968_00000000-6_addKernel.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 : _Z9addKernelPiPKiS1_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 addKernel(int *c, const int *a, const int *b, int size) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < size) { c[i] = a[i] + b[i]; } }
.text .file "addKernel.hip" .globl _Z24__device_stub__addKernelPiPKiS1_i # -- Begin function _Z24__device_stub__addKernelPiPKiS1_i .type _Z24__device_stub__addKernelPiPKiS1_i,@function _Z24__device_stub__addKernelPiPKiS1_i: # @_Z24__device_stub__addKernelPiPKiS1_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9addKernelPiPKiS1_i ; -- Begin function _Z9addKernelPiPKiS1_i .globl _Z9addKernelPiPKiS1_i .p2align 8 .type _Z9addKernelPiPKiS1_i,@function _Z9addKernelPiPKiS1_i: ; @_Z9addKernelPiPKiS1_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
f9af58469d672bb9c374b90520665c8633c27dd2
#include <iostream> using namespace std; void SimpleIntegerAdd(); void TestIntegerArrayAdd(); int main(int argc, char *argv[]) { // SimpleIntegerAdd(); TestIntegerArrayAdd(); }
.file "tmpxft_0038c2ba_00000000-6_LearnCUDAMain.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 ...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> using namespace std; void SimpleIntegerAdd(); void TestIntegerArrayAdd(); int main(int argc, char *argv[]) { // SimpleIntegerAdd(); TestIntegerArrayAdd(); }
.text .file "LearnCUDAMain.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.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-...
d3ee4a9f3a7db851e54b48cf60a8cfdec0335f11
/* #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <iostream> //vector int main(void) { // H has storage for 4 integers thrust::host_vector<int> H(4); // initialize individual elements H...
.file "tmpxft_003b387d_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat ...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tElN6thrust20THRUST_200700_890_NS8cuda_cub6__fill7functorINS7_6detail15normal_iteratorINS7_10device_ptrIiEEEEiEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_C...
/* #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <iostream> //vector int main(void) { // H has storage for 4 integers thrust::host_vector<int> H(4); // initialize individual elements H...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEiEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEi...
2abc5fdaa92271008cccf5cbd4b4cd04c74d49b0
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <sys/time.h> using namespace std; // ############### COMMON ############### #define CHECK(call) \ { \ const cuda...
.file "tmpxft_0032de35_00000000-6_sumVector_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2036: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2036: .size _ZL26_...
code for sm_89 Function : _Z20reduceCompleteUnrollILj64EEvPdS0_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 <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> using namespace std; // ############### COMMON ############### #define CHECK(call) \ { \ const h...
.text .file "sumVector_main.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z11initialDataPdi .LCPI0_0: .quad 0x41dfffffffc00000 # double 2147483647 .text .globl _Z11initialDataPdi .type _Z11initialDataPdi,@function _Z11initialDataPdi: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16reduceNeighboredPdS_j ; -- Begin function _Z16reduceNeighboredPdS_j .globl _Z16reduceNeighboredPdS_j .p2align 8 .type _Z16reduceNeighboredPdS_j,@function _Z16reduceNeighboredPdS_j: ; @_Z16reduceNeighboredPdS_j ; %bb.0: s_clause 0x1 s_...
0cccb54624c8317d05d0a50541dbaf44add2959f
#include <cstdio> #include <cstdlib> #include <vector> __device__ __managed__ int sum; __global__ void thread(int *a) { a[threadIdx.x] = 0; } __global__ void reduction(int *bucket,int *key) { int i = threadIdx.x; atomicAdd(&bucket[key[i]], 1); } __global__ void sort(int num,int *key,int sum) { int thread ...
.file "tmpxft_002dd2fc_00000000-6_12_bucket_sort.cudafe1.cpp" .text #APP #NO_APP .type _ZL20__nv_init_managed_rtv, @function _ZL20__nv_init_managed_rtv: .LFB1: .cfi_startproc movb _ZL22__nv_inited_managed_rt(%rip), %al testb %al, %al jne .L4 pushq %rax .cfi_def_cfa_offset 16 movq _ZL32__nv_fatbinhandle_for_m...
code for sm_89 Function : _Z4sortiPii .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 <cstdlib> #include <vector> __device__ __managed__ int sum; __global__ void thread(int *a) { a[threadIdx.x] = 0; } __global__ void reduction(int *bucket,int *key) { int i = threadIdx.x; atomicAdd(&bucket[key[i]], 1); } __global__ void sort(int num,int...
.text .file "12_bucket_sort.hip" .globl _Z21__device_stub__threadPi # -- Begin function _Z21__device_stub__threadPi .type _Z21__device_stub__threadPi,@function _Z21__device_stub__threadPi: # @_Z21__device_stub__threadPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6threadPi ; -- Begin function _Z6threadPi .globl _Z6threadPi .p2align 8 .type _Z6threadPi,@function _Z6threadPi: ; @_Z6threadPi ; %bb.0: s_load_b64 s[0:1], s[0:1], 0x0 v_dual_mov_b32 v1, 0 :: v_dual_lshlrev_b32...
81292b4e5b664b78621fadad2c57044fe99c75a2
#include<bits/stdc++.h> #define N 16 #define BLOCK_DIM 16 using namespace std; __global__ void multiply(float A[], float B[], float C[]) { __shared__ float sub_A[BLOCK_DIM][BLOCK_DIM], sub_B[BLOCK_DIM][BLOCK_DIM]; int global_x = threadIdx.x + blockIdx.x * blockDim.x, global_y = threadIdx.y + blockIdx....
.file "tmpxft_00315bb0_00000000-6_p6.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB10830: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpr...
code for sm_89 Function : _Z8multiplyPfS_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> #define N 16 #define BLOCK_DIM 16 using namespace std; __global__ void multiply(float A[], float B[], float C[]) { __shared__ float sub_A[BLOCK_DIM][BLOCK_DIM], sub_B[BLOCK_DIM][BLOCK_DIM]; int global_x = threadIdx.x + blockIdx.x * blockDim.x, glob...
.text .file "p6.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z23__device_stub__multiplyPfS_S_ # -- Begin function _Z23__device_stub__multiplyPfS_S_ .type _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8multiplyPfS_S_ ; -- Begin function _Z8multiplyPfS_S_ .globl _Z8multiplyPfS_S_ .p2align 8 .type _Z8multiplyPfS_S_,@function _Z8multiplyPfS_S_: ; @_Z8multiplyPfS_S_ ; %bb.0: ; %.critedge s_clau...
28ef25403165ce7eb24f740640bfa2c9218cae85
#include<stdio.h> #include<stdlib.h> #include<math.h> __global__ void add(double *a,double *b,double *c,int n) { int id=blockIdx.x*blockDim.x+threadIdx.x; if(id<n) { c[id] = a[id] + b[id]; } } int main() { int n=8; double *h_a,*h_b,*h_c,*d_a,*d_b,*d_c; size_t bytes = n*sizeof(double); h_a=...
.file "tmpxft_0020d68c_00000000-6_vecadd.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 : _Z3addPdS_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 add(double *a,double *b,double *c,int n) { int id=blockIdx.x*blockDim.x+threadIdx.x; if(id<n) { c[id] = a[id] + b[id]; } } int main() { int n=8; double *h_a,*h_b,*h_c,*d_a,*d_b,*d_c; size_t byt...
.text .file "vecadd.hip" .globl _Z18__device_stub__addPdS_S_i # -- Begin function _Z18__device_stub__addPdS_S_i .type _Z18__device_stub__addPdS_S_i,@function _Z18__device_stub__addPdS_S_i: # @_Z18__device_stub__addPdS_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 _Z3addPdS_S_i ; -- Begin function _Z3addPdS_S_i .globl _Z3addPdS_S_i .p2align 8 .type _Z3addPdS_S_i,@function _Z3addPdS_S_i: ; @_Z3addPdS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], ...
a3fb5e938e411f34c1d1e93e50b263b28b224d3b
//Based on the work of Andrew Krepps #include <stdio.h> #include <stdio.h> #define ARRAY_SIZE N #define ARRAY_SIZE_IN_BYTES (sizeof(unsigned int) * (ARRAY_SIZE)) ////////////////////////OPERATIONS////////////////////////////////////////////// //ADD=1 __global__ void add(int * array1,int * array2,int * array3) { ...
.file "tmpxft_0030b0ca_00000000-6_assignment.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__cud...
code for sm_89 Function : _Z3modPiS_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 */ ...
//Based on the work of Andrew Krepps #include <hip/hip_runtime.h> #include <stdio.h> #include <stdio.h> #define ARRAY_SIZE N #define ARRAY_SIZE_IN_BYTES (sizeof(unsigned int) * (ARRAY_SIZE)) ////////////////////////OPERATIONS////////////////////////////////////////////// //ADD=1 __global__ void add(int * array1,...
.text .file "assignment.hip" .globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_ .type _Z18__device_stub__addPiS_S_,@function _Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_ ; -- Begin function _Z3addPiS_S_ .globl _Z3addPiS_S_ .p2align 8 .type _Z3addPiS_S_,@function _Z3addPiS_S_: ; @_Z3addPiS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4:7], s[0:1],...
1e4a680550aadc7554bde83fbe469e04099fba5a
#include<stdio.h> #include<sys/time.h> // time of execution AOS will be more than SOA as AOS contains other data // which is not yet loaded. // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char* msg); const int numThreads = 1000000; int numThreadsPerBlock = 16; // Array of str...
.file "tmpxft_00291be5_00000000-6_hw1-b-AOS.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__cuda...
code for sm_89 Function : _Z16updateAtomKernelPK4atomPS_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<sys/time.h> // time of execution AOS will be more than SOA as AOS contains other data // which is not yet loaded. // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char* msg); const int numThreads = 1000000; int numThreadsPe...
.text .file "hw1-b-AOS.hip" .globl _Z31__device_stub__updateAtomKernelPK4atomPS_i # -- Begin function _Z31__device_stub__updateAtomKernelPK4atomPS_i .type _Z31__device_stub__updateAtomKernelPK4atomPS_i,@function _Z31__device_stub__updateAtomKernelPK4atomPS_i: # @_Z31__device_stub__updateAtomKernelPK4atomPS_i .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16updateAtomKernelPK4atomPS_i ; -- Begin function _Z16updateAtomKernelPK4atomPS_i .globl _Z16updateAtomKernelPK4atomPS_i .p2align 8 .type _Z16updateAtomKernelPK4atomPS_i,@function _Z16updateAtomKernelPK4atomPS_i: ; @_Z16updateAtomKernelPK4atomP...
7406f15ca731337647b3027169f7aa1a2dd13067
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #define TIMER_CREATE(t) \ cudaEvent_t t##_start, t##_end; \ cudaEventCreate(&t##_start); \ cudaEventCreate(&t##_end); #define TIMER_START(t) \ cudaEven...
.file "tmpxft_002cf4de_00000000-6_code2.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__cudaUnre...
code for sm_89 Function : _Z5RelaxPiS_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 <math.h> #include <time.h> #include <string.h> #define TIMER_CREATE(t) \ hipEvent_t t##_start, t##_end; \ hipEventCreate(&t##_start); \ hipEventCreate(&t##_end); #define TIMER_START(t) ...
.text .file "code2.hip" .globl _Z27__device_stub__InitializingPiS_i # -- Begin function _Z27__device_stub__InitializingPiS_i .type _Z27__device_stub__InitializingPiS_i,@function _Z27__device_stub__InitializingPiS_i: # @_Z27__device_stub__InitializingPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12InitializingPiS_i ; -- Begin function _Z12InitializingPiS_i .globl _Z12InitializingPiS_i .p2align 8 .type _Z12InitializingPiS_i,@function _Z12InitializingPiS_i: ; @_Z12InitializingPiS_i ; %bb.0: s_load_b32 s2, s[0:1], 0x24 s_wai...
1adde7b742106051d77aae7ad4ffb3ba03bc9f52
#include "includes.h" extern "C" { } #define TB 256 #define EPS 0.1 #undef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) #undef MAX #define MAX(a, b) ((a) > (b) ? (a) : (b)) __global__ void patchmatch2_conv_kernel( float *A, float *B, float *AP, float *BP, float *conv, int *prev_corrAB_upsampled, int patch, int ...
.file "tmpxft_0023b020_00000000-6_patchmatch2_conv_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: .si...
code for sm_89 Function : _Z23patchmatch2_conv_kernelPfS_S_S_S_Piiiiii .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" extern "C" { } #define TB 256 #define EPS 0.1 #undef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) #undef MAX #define MAX(a, b) ((a) > (b) ? (a) : (b)) __global__ void patchmatch2_conv_kernel( float *A, float *B, float *AP, float *BP, float *conv, int *prev_cor...
.text .file "patchmatch2_conv_kernel.hip" .globl _Z38__device_stub__patchmatch2_conv_kernelPfS_S_S_S_Piiiiii # -- Begin function _Z38__device_stub__patchmatch2_conv_kernelPfS_S_S_S_Piiiiii .type _Z38__device_stub__patchmatch2_conv_kernelPfS_S_S_S_Piiiiii,@function _Z38__device_stub__patchmatch2_conv_kernelPfS_S_S_S...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23patchmatch2_conv_kernelPfS_S_S_S_Piiiiii ; -- Begin function _Z23patchmatch2_conv_kernelPfS_S_S_S_Piiiiii .globl _Z23patchmatch2_conv_kernelPfS_S_S_S_Piiiiii .p2align 8 .type _Z23patchmatch2_conv_kernelPfS_S_S_S_Piiiiii,@function _Z23patchmatch2_con...
f7c7c5d2767eaf54da8866e264f9eaac6d41023a
#include <stdio.h> // by lectures and "CUDA by Example" book #define ind(k, i, j, rows, cols) (k * (rows * cols) + i * cols + j) // device code: matrices sum calculation __global__ void sum_matrices_kernel(int* mat_stack, int* mat, int rows, int cols, int num) { printf("blockId, threadId, dims: [%d, %d], [%d, %...
.file "tmpxft_003ab108_00000000-6_demo.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2036: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2036: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z19sum_matrices_kernelPiS_iii .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> // by lectures and "CUDA by Example" book #define ind(k, i, j, rows, cols) (k * (rows * cols) + i * cols + j) // device code: matrices sum calculation __global__ void sum_matrices_kernel(int* mat_stack, int* mat, int rows, int cols, int num) { printf("blockId, th...
.text .file "demo.hip" .globl _Z34__device_stub__sum_matrices_kernelPiS_iii # -- Begin function _Z34__device_stub__sum_matrices_kernelPiS_iii .type _Z34__device_stub__sum_matrices_kernelPiS_iii,@function _Z34__device_stub__sum_matrices_kernelPiS_iii: # @_Z34__device_stub__sum_matrices_kernelPiS_iii .cfi_startproc ...
.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...
fed5d47223e86c5dce9a2dfa64ebc6561188ca81
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdint.h> #include<stdio.h> __global__ void convolution_kernel(const uint8_t *d_source, uint8_t *d_target, const int width, const int height, const float *d_stancil, c...
.file "tmpxft_003851c9_00000000-6_convolution_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 _Z...
code for sm_89 Function : _Z18convolution_kernelPKhPhiiPKfii .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 <stdint.h> #include<stdio.h> __global__ void convolution_kernel(const uint8_t *d_source, uint8_t *d_target, const int width, const int height, const float *d_stancil, const int st_width, ...
.text .file "convolution_kernel.hip" .globl _Z33__device_stub__convolution_kernelPKhPhiiPKfii # -- Begin function _Z33__device_stub__convolution_kernelPKhPhiiPKfii .type _Z33__device_stub__convolution_kernelPKhPhiiPKfii,@function _Z33__device_stub__convolution_kernelPKhPhiiPKfii: # @_Z33__device_stub__convolution_k...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18convolution_kernelPKhPhiiPKfii ; -- Begin function _Z18convolution_kernelPKhPhiiPKfii .globl _Z18convolution_kernelPKhPhiiPKfii .p2align 8 .type _Z18convolution_kernelPKhPhiiPKfii,@function _Z18convolution_kernelPKhPhiiPKfii: ; @_Z18convolution_...