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
dedbaff9ba3ef8e09e62ef9aba9f6107bc76e122
/* * Copyright 1993-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. * * This software and the information contained herein is being provided * under the terms and conditions of a Source ...
.file "tmpxft_002e4db0_00000000-6_dlaswp.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB6561: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE6561: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z6dlaswpiPdiPiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the information contained herein is being provided * under the terms and conditions of a Source ...
.text .file "dlaswp.hip" .globl _Z21__device_stub__dlaswpiPdiPiii # -- Begin function _Z21__device_stub__dlaswpiPdiPiii .type _Z21__device_stub__dlaswpiPdiPiii,@function _Z21__device_stub__dlaswpiPdiPiii: # @_Z21__device_stub__dlaswpiPdiPiii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6dlaswpiPdiPiii ; -- Begin function _Z6dlaswpiPdiPiii .globl _Z6dlaswpiPdiPiii .p2align 8 .type _Z6dlaswpiPdiPiii,@function _Z6dlaswpiPdiPiii: ; @_Z6dlaswpiPdiPiii ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x20 s_waitcnt lgkmcnt...
ec77988d194ac52e10450cfe43ef811a64e091aa
#include<stdio.h> #include<cuda.h> __global__ void add(int *a,int *b,int *c) { int id = blockIdx.x*blockDim.x+threadIdx.x; if(id<5) c[id] = a[id] + b[id]; } int main() { const int arraySize = 5; float avg,sd; int d[arraySize]; const int a[arraySize] = { 1, 2, 3, 4, 5 }; const int b[arra...
.file "tmpxft_00392880_00000000-6_stdev.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 : _Z3addPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include<stdio.h> #include<hip/hip_runtime.h> __global__ void add(int *a,int *b,int *c) { int id = blockIdx.x*blockDim.x+threadIdx.x; if(id<5) c[id] = a[id] + b[id]; } int main() { const int arraySize = 5; float avg,sd; int d[arraySize]; const int a[arraySize] = { 1, 2, 3, 4, 5 }; const...
.text .file "stdev.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_cfa_...
.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_load_b32 s2, s[0:1], 0x24 s_waitcnt lgkmcnt(0) s_and_b32 s2, s2, 0...
fb6aba7d911c3f20235d558e8b52a14fbf656256
#include <thrust/host_vector.h> #include <thrust/device_vector.h> #include<thrust/transform.h> #include<thrust/functional.h> #include <iostream> struct saxpi{ float k1; float k2; saxpi(float k1_, float k2_) :k1(k1_), k2(k2_) {} __host__ __device__ float operator()(float &x)const{ return x*k1 + k2; } }; i...
.file "tmpxft_00341ecc_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_cub11__transform17unary_transform_fINS7_6detail15normal_iteratorINS7_10device_ptrIfEEEESF_NS9_14no_stencil_tagE5saxpiNS9_21always_true_predicateEEEEEvT0_T1_ .hea...
#include <hip/hip_runtime.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include<thrust/transform.h> #include<thrust/functional.h> #include <iostream> struct saxpi{ float k1; float k2; saxpi(float k1_, float k2_) :k1(k1_), k2(k2_) {} __host__ __device__ float operator()(float &x)const{...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 # -- Begin functi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_11__transform17unary_transform_fINS_17counting_iteratorImNS_11use_defaultES6_S6_EENS_6detail15normal_iteratorINS_10device_ptrIiEEEENS3_14no_stencil_tagEZNS0_6fill_nINS0_3tagESC_miEET0_RNS0_16exec...
7f5c099acc7a370455b27b479fdfa72df63ccc15
#include "includes.h" // ERROR CHECKING MACROS ////////////////////////////////////////////////////// __global__ void computePathStates(int noPaths, int noDims, int nYears, int noControls, int year, float unitCost, float unitRevenue, int* controls, int noFuels, float *fuelCosts, float *uResults, float *uComposition, ...
.file "tmpxft_002bacac_00000000-6_computePathStates.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL...
code for sm_89 Function : _Z17computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_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 "includes.h" // ERROR CHECKING MACROS ////////////////////////////////////////////////////// __global__ void computePathStates(int noPaths, int noDims, int nYears, int noControls, int year, float unitCost, float unitRevenue, int* controls, int noFuels, float *fuelCosts, float *u...
.text .file "computePathStates.hip" .globl _Z32__device_stub__computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_ # -- Begin function _Z32__device_stub__computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_ .type _Z32__device_stub__computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_,@function _Z32__device_stub__computeP...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_ ; -- Begin function _Z17computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_ .globl _Z17computePathStatesiiiiiffPiiPfS0_S0_iS_iS0_S0_S0_S_ .p2align 8 .type _Z17computePathStatesiiiiiffPiiPfS0_S0_iS_iS...
c35892ed32de5e3319e1872420d6149789623a09
#include <chrono> #include <iostream> //Kernel definition template<typename T> __global__ void copyKernel (T* out, T* in, const unsigned int N) { const unsigned int id = threadIdx.x + blockIdx.x * blockDim.x; for (unsigned int i= id; i < N; i = i + blockDim.x * gridDim.x) { const unsigned el_id = i; ((T*)...
.file "tmpxft_00324945_00000000-6_pagelockedinon.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3744: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z10copyKernelIiEvPT_S1_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <chrono> #include <iostream> //Kernel definition template<typename T> __global__ void copyKernel (T* out, T* in, const unsigned int N) { const unsigned int id = threadIdx.x + blockIdx.x * blockDim.x; for (unsigned int i= id; i < N; i = i + blockDim.x * gridDim.x) { con...
.text .file "pagelockedinon.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 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z10plusKernelIiEvPT_S1_j,"axG",@progbits,_Z10plusKernelIiEvPT_S1_j,comdat .protected _Z10plusKernelIiEvPT_S1_j ; -- Begin function _Z10plusKernelIiEvPT_S1_j .globl _Z10plusKernelIiEvPT_S1_j .p2align 8 .type _Z10plusKernelIiEvPT_S1_j,@function _Z10...
3407cbcf9fe2324c75f7402503cf5596c561b10e
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <time.h> #define N 289 __global__ void MatMul(float d_A[N][N], float d_B[N][N], float d_C[N][N]) { int i = threadIdx.x + blockIdx.x * blockDim.x; int j = threadIdx.y + blockIdx.y * blockDim.y; if (i < N && j < N) { ...
.file "tmpxft_0028cb23_00000000-6_cuda_matmul_art.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 : _Z10setElementPA289_fS0_S0_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <time.h> #define N 289 __global__ void MatMul(float d_A[N][N], float d_B[N][N], float d_C[N][N]) { int i = threadIdx.x + blockIdx.x * blockDim.x; int j = threadIdx.y + blockIdx.y * blockDim.y; ...
.text .file "cuda_matmul_art.hip" .globl _Z21__device_stub__MatMulPA289_fS0_S0_ # -- Begin function _Z21__device_stub__MatMulPA289_fS0_S0_ .type _Z21__device_stub__MatMulPA289_fS0_S0_,@function _Z21__device_stub__MatMulPA289_fS0_S0_: # @_Z21__device_stub__MatMulPA289_fS0_S0_ .cfi_startproc # %bb.0: pushq %r15 .c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6MatMulPA289_fS0_S0_ ; -- Begin function _Z6MatMulPA289_fS0_S0_ .globl _Z6MatMulPA289_fS0_S0_ .p2align 8 .type _Z6MatMulPA289_fS0_S0_,@function _Z6MatMulPA289_fS0_S0_: ; @_Z6MatMulPA289_fS0_S0_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 v...
b8533a7b2de12d95eeccf68d311db2fca4ddb897
#include <cuda_runtime_api.h> __global__ void scaleKernel(float *src, float *dst, float scale) { const int idx = blockIdx.x * blockDim.x + threadIdx.x; dst[idx] = src[idx] * scale; } int main() { float *a_dev; float *b_dev; float *a = new float[128*100]; float *b = new float[128*100]; cud...
.file "tmpxft_002fb7e1_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z11scaleKernelPfS_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 <hip/hip_runtime_api.h> __global__ void scaleKernel(float *src, float *dst, float scale) { const int idx = blockIdx.x * blockDim.x + threadIdx.x; dst[idx] = src[idx] * scale; } int main() { float *a_dev; float *b_dev; float *a = new float[128*100]; float...
.text .file "main.hip" .globl _Z26__device_stub__scaleKernelPfS_f # -- Begin function _Z26__device_stub__scaleKernelPfS_f .type _Z26__device_stub__scaleKernelPfS_f,@function _Z26__device_stub__scaleKernelPfS_f: # @_Z26__device_stub__scaleKernelPfS_f .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11scaleKernelPfS_f ; -- Begin function _Z11scaleKernelPfS_f .globl _Z11scaleKernelPfS_f .p2align 8 .type _Z11scaleKernelPfS_f,@function _Z11scaleKernelPfS_f: ; @_Z11scaleKernelPfS_f ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0...
a7f2cb83053297d3dd1346f1678367fc43dd02f0
#include <iostream> int static_cxx11_func(int); void test_functions() { auto x = static_cxx11_func(int(42)); std::cout << x << std::endl; } int main(int argc, char** argv) { test_functions(); std::cout << "this executable doesn't use cuda code, just call methods defined" << std::endl; std::cout <<...
.file "tmpxft_002993c5_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_cxx11_func(int); void test_functions() { auto x = static_cxx11_func(int(42)); std::cout << x << std::endl; } int main(int argc, char** argv) { test_functions(); std::cout << "this executable doesn't use cuda code, just call methods defined" ...
.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-...
e2dc9c19cfb0e2936dab7537e73144432d43843b
/* This is a automatically generated test. Do not modify */ #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,float var_2,float var_3,float* var_4,int var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,float var_12) { if (comp <= (var_...
.file "tmpxft_00285745_00000000-6_test.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z7computefiffPfifffffff .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/* This is a automatically generated test. Do not modify */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,float var_2,float var_3,float* var_4,int var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,flo...
.text .file "test.hip" .globl _Z22__device_stub__computefiffPfifffffff # -- Begin function _Z22__device_stub__computefiffPfifffffff .type _Z22__device_stub__computefiffPfifffffff,@function _Z22__device_stub__computefiffPfifffffff: # @_Z22__device_stub__computefiffPfifffffff .cfi_startproc # %bb.0: pushq %r15 .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7computefiffPfifffffff ; -- Begin function _Z7computefiffPfifffffff .globl _Z7computefiffPfifffffff .p2align 8 .type _Z7computefiffPfifffffff,@function _Z7computefiffPfifffffff: ; @_Z7computefiffPfifffffff ; %bb.0: s_load_b128 s[12:15],...
0186d8336d4ab4d1a0cced5af195601c833b4499
#include <stdio.h> #include <sys/time.h> #define NUM_BLOCKS 1000 #define NUM_THREADS 1000 #define ALL_THREADS NUM_BLOCKS * NUM_THREADS __device__ void is_prime(int number, int *output) { for (int i = 2; i*i < number; i++) { if (number%i == 0) { *output = 0; return; } } ...
.file "tmpxft_0033c811_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z13primes_kerneliiPiiS_ .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 <sys/time.h> #define NUM_BLOCKS 1000 #define NUM_THREADS 1000 #define ALL_THREADS NUM_BLOCKS * NUM_THREADS __device__ void is_prime(int number, int *output) { for (int i = 2; i*i < number; i++) { if (number%i == 0) { *output = 0; ...
.text .file "main.hip" .globl _Z28__device_stub__primes_kerneliiPiiS_ # -- Begin function _Z28__device_stub__primes_kerneliiPiiS_ .type _Z28__device_stub__primes_kerneliiPiiS_,@function _Z28__device_stub__primes_kerneliiPiiS_: # @_Z28__device_stub__primes_kerneliiPiiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13primes_kerneliiPiiS_ ; -- Begin function _Z13primes_kerneliiPiiS_ .globl _Z13primes_kerneliiPiiS_ .p2align 8 .type _Z13primes_kerneliiPiiS_,@function _Z13primes_kerneliiPiiS_: ; @_Z13primes_kerneliiPiiS_ ; %bb.0: s_clause 0x1 s_load_...
134103604e09b8d7a5822151d581ab30ee3c4754
__global__ void wave1Drusanov1(double * f_nm, double * f_in, double nu,int N){ int tid=threadIdx.x+blockIdx.x*blockDim.x; if(tid<N){ int x_p = tid+1; if(x_p==N) x_p=0; double fp = f_in[x_p]; double f = f_in[tid]; f_nm[tid]=0.5*(fp+f)-(nu/3.)*(fp-f); } }
.file "tmpxft_003485a1_00000000-6_wave1Drusanov1.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 : _Z14wave1Drusanov1PdS_di .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 wave1Drusanov1(double * f_nm, double * f_in, double nu,int N){ int tid=threadIdx.x+blockIdx.x*blockDim.x; if(tid<N){ int x_p = tid+1; if(x_p==N) x_p=0; double fp = f_in[x_p]; double f = f_in[tid]; f_nm[tid]=0.5*(fp+f)-(nu/3.)*(fp-f); } }
.text .file "wave1Drusanov1.hip" .globl _Z29__device_stub__wave1Drusanov1PdS_di # -- Begin function _Z29__device_stub__wave1Drusanov1PdS_di .type _Z29__device_stub__wave1Drusanov1PdS_di,@function _Z29__device_stub__wave1Drusanov1PdS_di: # @_Z29__device_stub__wave1Drusanov1PdS_di .cfi_startproc # %bb.0: pushq %r15...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14wave1Drusanov1PdS_di ; -- Begin function _Z14wave1Drusanov1PdS_di .globl _Z14wave1Drusanov1PdS_di .p2align 8 .type _Z14wave1Drusanov1PdS_di,@function _Z14wave1Drusanov1PdS_di: ; @_Z14wave1Drusanov1PdS_di ; %bb.0: s_clause 0x1 s_load_...
9f50770e119d18b5ab307331e44913d2af6d7a31
/* $ nvcc -o device_prop device_prop.cu */ #include <stdio.h> #include <cuda.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> void getCudaDeviceInfo() { int nDevices; cudaGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { cudaDeviceProp prop; cudaGetDeviceProperties(...
.file "tmpxft_002fb2bb_00000000-6_device_prop.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__cu...
code for sm_89
/* $ nvcc -o device_prop device_prop.cu */ #include <stdio.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> void getCudaDeviceInfo() { int nDevices; hipGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { hipDeviceProp_t prop; hipGetDeviceProperties(&prop, i); ...
.text .file "device_prop.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z17getCudaDeviceInfov .LCPI0_0: .quad 0x412e848000000000 # double 1.0E+6 .text .globl _Z17getCudaDeviceInfov .type _Z17getCudaDeviceInfov,@function _Z17getCudaDeviceInf...
.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-...
708a01a1153216c6c0bf8b85694babe56236d1bf
#include <stdio.h> __global__ void task_allocate(){ int i = threadIdx.x; if(i==0){ // 计算 1+2+3+...+100 int n = 100; int sum = 0; while(n>0){ sum+=n; n--; } printf("1+2+...+100 = %d\n",sum); }else if(i==1){ // 计算 10 的阶乘 int n = 10; ...
.file "tmpxft_0025b634_00000000-6_taskallocate.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 : _Z13task_allocatev .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void task_allocate(){ int i = threadIdx.x; if(i==0){ // 计算 1+2+3+...+100 int n = 100; int sum = 0; while(n>0){ sum+=n; n--; } printf("1+2+...+100 = %d\n",sum); }else if(i==1){ // 计算 ...
.text .file "taskallocate.hip" .globl _Z28__device_stub__task_allocatev # -- Begin function _Z28__device_stub__task_allocatev .type _Z28__device_stub__task_allocatev,@function _Z28__device_stub__task_allocatev: # @_Z28__device_stub__task_allocatev .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 p...
.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...
7e66473659d229f78209703a71a9966735e13a07
#include <cstdio> #include <cstdlib> #include <iostream> using std::cout; using std::endl; #define BLOCKSIZE 50 #define RADIUS 10 #define maxn 2000 #define size maxn*sizeof(int) __global__ void add(const int *a, const int *b, int *c) { c[threadIdx.x + blockIdx.x * blockDim.x] = a[threadIdx.x + blockI...
.file "tmpxft_00298316_00000000-6_main.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_endp...
code for sm_89 Function : _Z8stentialPKiPi .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 <iostream> using std::cout; using std::endl; #define BLOCKSIZE 50 #define RADIUS 10 #define maxn 2000 #define size maxn*sizeof(int) __global__ void add(const int *a, const int *b, int *c) { c[threadIdx.x + blockIdx.x * blockDim.x] = ...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addPKiS0_Pi # -- Begin function _Z18__device_stub__addPKiS0_Pi .type _Z18_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPKiS0_Pi ; -- Begin function _Z3addPKiS0_Pi .globl _Z3addPKiS0_Pi .p2align 8 .type _Z3addPKiS0_Pi,@function _Z3addPKiS0_Pi: ; @_Z3addPKiS0_Pi ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4:7],...
17ec56676f1735984f961c4349b2b0c2941ce45b
#include <thrust/device_vector.h> #include <thrust/tabulate.h> #include <stdio.h> #include <iostream> #include <time.h> #include <chrono> struct generator{ __host__ __device__ int operator() (const int& i) const{ return i % 2 == 0 ? 1 : -1; } }; int main(int argc, char** argv){ //If there are no argum...
.file "tmpxft_002e18c9_00000000-6_thrust.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_cub10__tabulate7functorINS7_6detail15normal_iteratorINS7_10device_ptrIiEEEE9generatorlEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF...
#include <hip/hip_runtime.h> #include <thrust/device_vector.h> #include <thrust/tabulate.h> #include <stdio.h> #include <iostream> #include <time.h> #include <chrono> struct generator{ __host__ __device__ int operator() (const int& i) const{ return i % 2 == 0 ? 1 : -1; } }; int main(int argc, char** arg...
.text .file "thrust.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEiEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEi...
005ccfb7eae581cb0b512f51ffeae89bbcf9e2e7
#define MODE_MANDEL 1 #define MODE_MANDEL_DISTANCE 2 #define MODE_JULIA 3 #define WIDTH gridDim.x*blockDim.x #define HEIGHT gridDim.y*blockDim.y #define X ((blockIdx.x * blockDim.x) + threadIdx.x) #define Y ((blockIdx.y * blockDim.y) + threadIdx.y) __device__ inline float2 mul(const float2 pFF1, const float2 pFF2) { ...
.file "tmpxft_0030af0d_00000000-6_FFMandel.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__cudaU...
code for sm_89 Function : compute .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> #define MODE_MANDEL 1 #define MODE_MANDEL_DISTANCE 2 #define MODE_JULIA 3 #define WIDTH gridDim.x*blockDim.x #define HEIGHT gridDim.y*blockDim.y #define X ((blockIdx.x * blockDim.x) + threadIdx.x) #define Y ((blockIdx.y * blockDim.y) + threadIdx.y) __device__ inline float2 mul(const floa...
.text .file "FFMandel.hip" .globl __device_stub__compute # -- Begin function __device_stub__compute .type __device_stub__compute,@function __device_stub__compute: # @__device_stub__compute .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected compute ; -- Begin function compute .globl compute .p2align 8 .type compute,@function compute: ; @compute ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x8c s_load_b32 s16, s[0:1], 0x38 v_and_b32_e32 v3,...
eb4e76beac883ee7669e4b5ffa14dc64f7ee3a40
#include<stdio.h> __global__ void hello_from_gpu(){ int bx = blockIdx.x; int by = blockIdx.y; int bz = blockIdx.z; int gdx = gridDim.x; int gdy = gridDim.y; int gdz = gridDim.z; int tx = threadIdx.x; int ty = threadIdx.y; int tz = threadIdx.z; int bdx = blockDim.x; int bdy...
.file "tmpxft_0022f9d4_00000000-6_04.HelloWorld.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 : _Z14hello_from_gpuv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include<stdio.h> __global__ void hello_from_gpu(){ int bx = blockIdx.x; int by = blockIdx.y; int bz = blockIdx.z; int gdx = gridDim.x; int gdy = gridDim.y; int gdz = gridDim.z; int tx = threadIdx.x; int ty = threadIdx.y; int tz = threadIdx.z; int...
.text .file "04.HelloWorld.hip" .globl _Z29__device_stub__hello_from_gpuv # -- Begin function _Z29__device_stub__hello_from_gpuv .type _Z29__device_stub__hello_from_gpuv,@function _Z29__device_stub__hello_from_gpuv: # @_Z29__device_stub__hello_from_gpuv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14hello_from_gpuv ; -- Begin function _Z14hello_from_gpuv .globl _Z14hello_from_gpuv .p2align 8 .type _Z14hello_from_gpuv,@function _Z14hello_from_gpuv: ; @_Z14hello_from_gpuv ; %bb.0: s_clause 0x2 s_load_b128 s[4:7], s[0:1], ...
4bba410b48afab2adb6a77b31309b5c55367d722
// allocate pitch memory and cudaArray #include <stdio.h> #include <memory.h> #include <cuda.h> #include <cuda_runtime.h> #define NX 1003 #define NY 1024 __global__ void PLShift(float* odata, int pitch, int width, int height, int shiftx, int shifty, cudaTextureObject_t texRefPL ){ int global_x_ = threadIdx.x + ...
.file "tmpxft_00236f5f_00000000-6_simplePitchLinearTexture.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: .s...
code for sm_89 Function : _Z7PLShiftPfiiiiiy .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 */ ...
// allocate pitch memory and cudaArray #include <stdio.h> #include <memory.h> #include <hip/hip_runtime.h> #define NX 1003 #define NY 1024 __global__ void PLShift(float* odata, int pitch, int width, int height, int shiftx, int shifty, hipTextureObject_t texRefPL ){ int global_x_ = threadIdx.x + blockIdx.x*bloc...
.text .file "simplePitchLinearTexture.hip" .globl _Z22__device_stub__PLShiftPfiiiiiP13__hip_texture # -- Begin function _Z22__device_stub__PLShiftPfiiiiiP13__hip_texture .type _Z22__device_stub__PLShiftPfiiiiiP13__hip_texture,@function _Z22__device_stub__PLShiftPfiiiiiP13__hip_texture: # @_Z22__device_stub__PLShift...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7PLShiftPfiiiiiP13__hip_texture ; -- Begin function _Z7PLShiftPfiiiiiP13__hip_texture .globl _Z7PLShiftPfiiiiiP13__hip_texture .p2align 8 .type _Z7PLShiftPfiiiiiP13__hip_texture,@function _Z7PLShiftPfiiiiiP13__hip_texture: ; @_Z7PLShiftPfiiiiiP13...
a61e45276b8fd6eb62dc55fa3e2e669cbfdc7b2a
#include "includes.h" // includes, project #define PI 3.1415926536f int MaxThreadsPerBlock; int MaxThreadsX; int MaxThreadsY; // Conversion d'un vecteur réel en vecteur complexe // Conversion d'un vecteur complexe en vecteur réel // Multiplie point par point un vecteur complex par un vecteur réel // Applique...
.file "tmpxft_002cbcdc_00000000-6_AutoRegK.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaU...
code for sm_89 Function : _Z8AutoRegKPdS_S_S_idd .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" // includes, project #define PI 3.1415926536f int MaxThreadsPerBlock; int MaxThreadsX; int MaxThreadsY; // Conversion d'un vecteur réel en vecteur complexe // Conversion d'un vecteur complexe en vecteur réel // Multiplie point par point un vecteur complex pa...
.text .file "AutoRegK.hip" .globl _Z23__device_stub__AutoRegKPdS_S_S_idd # -- Begin function _Z23__device_stub__AutoRegKPdS_S_S_idd .type _Z23__device_stub__AutoRegKPdS_S_S_idd,@function _Z23__device_stub__AutoRegKPdS_S_S_idd: # @_Z23__device_stub__AutoRegKPdS_S_S_idd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8AutoRegKPdS_S_S_idd ; -- Begin function _Z8AutoRegKPdS_S_S_idd .globl _Z8AutoRegKPdS_S_S_idd .p2align 8 .type _Z8AutoRegKPdS_S_S_idd,@function _Z8AutoRegKPdS_S_S_idd: ; @_Z8AutoRegKPdS_S_S_idd ; %bb.0: s_clause 0x1 s_load_b32 s2, s...
81f2a6f24ad73a166d0a1777d6237a155d1f548b
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cuda.h> #include <device_functions.h> #include <cuda_runtime_api.h> #include <iostream> template<typename T> struct ShouldSwap { __host__ __device__ virtual bool operator() (const T left, const T right) const; }; template <typename T> __host...
.file "tmpxft_00211bb0_00000000-6_generic-bubble-sort.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK10ShouldSwapIiEclEii,"axG",@progbits,_ZNK10ShouldSwapIiEclEii,comdat .align 2 .weak _ZNK10ShouldSwapIiEclEii .type _ZNK10ShouldSwapIiEclEii, @function _ZNK10ShouldSwapIiEc...
code for sm_89 Function : _Z10bubbleSortIiEvPT_j10ShouldSwapIS0_E .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 <hip/device_functions.h> #include <hip/hip_runtime_api.h> #include <iostream> template<typename T> struct ShouldSwap { __host__ __device__ virtual bool operator() (const T left, const T right) const; }; template <typename T> __host__ __device__ __inline__ void swap(T* a, T* ...
.text .file "generic-bubble-sort.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 # --...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z10bubbleSortIiEvPT_j10ShouldSwapIS0_E,"axG",@progbits,_Z10bubbleSortIiEvPT_j10ShouldSwapIS0_E,comdat .protected _Z10bubbleSortIiEvPT_j10ShouldSwapIS0_E ; -- Begin function _Z10bubbleSortIiEvPT_j10ShouldSwapIS0_E .globl _Z10bubbleSortIiEvPT_j10Shoul...
2e6566d300bd7bfe462f62dcd00fa2f6deebd3cc
#include <cuda.h> #include <cufft.h> #include <cuda_profiler_api.h> #include <stdio.h> template<typename T> __device__ __forceinline__ T ldg(const T* ptr) { #if __CUDA_ARCH__ >= 350 return __ldg(ptr); #else return *ptr; #endif } extern "C" __global__ void SemblanceDiv( int nx , int ny , int nz , float * numerator...
.file "tmpxft_00262cb5_00000000-6_cu_semblance.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2053: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2053: .size _ZL26__c...
code for sm_89 Function : Semblance .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 <hipfft/hipfft.h> #include <hip/hip_runtime_api.h> #include <stdio.h> template<typename T> __device__ __forceinline__ T ldg(const T* ptr) { #if __CUDA_ARCH__ >= 350 return __ldg(ptr); #else return *ptr; #endif } extern "C" __global__ void SemblanceDiv( int nx , int ny , int nz ...
.text .file "cu_semblance.hip" .globl __device_stub__SemblanceDiv # -- Begin function __device_stub__SemblanceDiv .type __device_stub__SemblanceDiv,@function __device_stub__SemblanceDiv: # @__device_stub__SemblanceDiv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected SemblanceDiv ; -- Begin function SemblanceDiv .globl SemblanceDiv .p2align 8 .type SemblanceDiv,@function SemblanceDiv: ; @SemblanceDiv ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x34 s_load_b128 s[4:7], s[0:1],...
cfdb1df760299b9605cf564b5b9a667844cf0053
#include "includes.h" __device__ __forceinline__ int mirror(int index, int len){ int s2 = 2 * len - 2; if(index < 0){ index = s2 * (-index / s2) + index; return index <= 1 - len ? index + s2 : -index; } if(index >= len){ index -= s2 * (index / s2); if(index >= len) index = s2 - index; return index; } if(index < 0 || in...
.file "tmpxft_00235e53_00000000-6_gussain_filter_x.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 : _Z16gussain_filter_xPfS_immmif .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__ __forceinline__ int mirror(int index, int len){ int s2 = 2 * len - 2; if(index < 0){ index = s2 * (-index / s2) + index; return index <= 1 - len ? index + s2 : -index; } if(index >= len){ index -= s2 * (index / s2); if(index >= len) index = s2 - index; retu...
.text .file "gussain_filter_x.hip" .globl _Z31__device_stub__gussain_filter_xPfS_immmif # -- Begin function _Z31__device_stub__gussain_filter_xPfS_immmif .type _Z31__device_stub__gussain_filter_xPfS_immmif,@function _Z31__device_stub__gussain_filter_xPfS_immmif: # @_Z31__device_stub__gussain_filter_xPfS_immmif .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16gussain_filter_xPfS_immmif ; -- Begin function _Z16gussain_filter_xPfS_immmif .globl _Z16gussain_filter_xPfS_immmif .p2align 8 .type _Z16gussain_filter_xPfS_immmif,@function _Z16gussain_filter_xPfS_immmif: ; @_Z16gussain_filter_xPfS_immmif ;...
34a44786033e038cceb529893649ed0e8afb0bf0
#include <stdio.h> //printf #include <stdlib.h>//srand, rand #include <time.h> //time #include <fstream> #include <string> #include <iostream> #include <ctime> #include <ratio> #include <chrono> //globalne ustawienia const unsigned BLOCKS_PER_GRID = 16; const unsigned THREADS_PER_BLOCK = 256; class Matrix{ unsigne...
.file "tmpxft_002db097_00000000-6_stable.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3893: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z9detHelperPvPd .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> //printf #include <stdlib.h>//srand, rand #include <time.h> //time #include <fstream> #include <string> #include <iostream> #include <ctime> #include <ratio> #include <chrono> //globalne ustawienia const unsigned BLOCKS_PER_GRID = 16; const unsigned THREADS_PER_BLOCK ...
.text .file "stable.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z14printMatrixCPUPKcRK6Matrix # -- Begin function _Z14printMatrixCPUPKcRK6Matrix .type _Z1...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPvS_S_ ; -- Begin function _Z3addPvS_S_ .globl _Z3addPvS_S_ .p2align 8 .type _Z3addPvS_S_,@function _Z3addPvS_S_: ; @_Z3addPvS_S_ ; %bb.0: s_clause 0x1 s_load_b128 s[4:7], s[0:1], 0x0 s_load_b32 s8, s[0:1], ...
75389e1353763b8fd7f1fabb978af1244e39f5f5
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <limits.h> #include <math.h> #include <cuda.h> #include <algorithm> #define BLOCK_SIZE 1024 __device__ unsigned int counter, counter_2; __constant__ const unsigned int INTMAX = 2147483647; // structure for dictionary struct huffm...
.file "tmpxft_00281f47_00000000-6_compress.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2315: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2315: .size _ZL26__cudaU...
code for sm_89 Function : _Z8compressPhPjP17huffmanDictionaryS_j .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 <time.h> #include <limits.h> #include <math.h> #include <hip/hip_runtime.h> #include <algorithm> #define BLOCK_SIZE 1024 __device__ unsigned int counter, counter_2; __constant__ const unsigned int INTMAX = 2147483647; // structure for dictionary s...
.text .file "compress.hip" .globl _Z33__device_stub__CalculateFrequencyPhPjj # -- Begin function _Z33__device_stub__CalculateFrequencyPhPjj .type _Z33__device_stub__CalculateFrequencyPhPjj,@function _Z33__device_stub__CalculateFrequencyPhPjj: # @_Z33__device_stub__CalculateFrequencyPhPjj .cfi_startproc # %bb.0: p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18CalculateFrequencyPhPjj ; -- Begin function _Z18CalculateFrequencyPhPjj .globl _Z18CalculateFrequencyPhPjj .p2align 8 .type _Z18CalculateFrequencyPhPjj,@function _Z18CalculateFrequencyPhPjj: ; @_Z18CalculateFrequencyPhPjj ; %bb.0: s_clau...
4feb5526a67d2a1a1a945ceeec9df06f43713763
#include "includes.h" __global__ void rotate2(float*a,float b, float * c, int sx,int sy,int sz, int dx, int dy, int dz) { int ids=(blockIdx.x*blockDim.x+threadIdx.x); // id of this processor int x=(ids + dx)%sx; // advance by the offset steps along the chain int y=(ids/sx + dy)%sy; int z=(ids/(sx*sy) + dz)%sz; int idd...
.file "tmpxft_003a2611_00000000-6_rotate2.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 : _Z7rotate2PffS_iiiiii .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 rotate2(float*a,float b, float * c, int sx,int sy,int sz, int dx, int dy, int dz) { int ids=(blockIdx.x*blockDim.x+threadIdx.x); // id of this processor int x=(ids + dx)%sx; // advance by the offset steps along the chain int y=(ids/sx + dy)%sy; int z=...
.text .file "rotate2.hip" .globl _Z22__device_stub__rotate2PffS_iiiiii # -- Begin function _Z22__device_stub__rotate2PffS_iiiiii .type _Z22__device_stub__rotate2PffS_iiiiii,@function _Z22__device_stub__rotate2PffS_iiiiii: # @_Z22__device_stub__rotate2PffS_iiiiii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7rotate2PffS_iiiiii ; -- Begin function _Z7rotate2PffS_iiiiii .globl _Z7rotate2PffS_iiiiii .p2align 8 .type _Z7rotate2PffS_iiiiii,@function _Z7rotate2PffS_iiiiii: ; @_Z7rotate2PffS_iiiiii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
77eb92c7e67918d0af56aa210a7bb5acfb586a2e
#include <stdio.h> #include <stdlib.h> #define ROWS 2 #define COLS 3 // F1 // __global__ void add(int *a, int *b, int *c){ // int idx = blockIdx.x*blockDim.x + threadIdx.x; // if (idx<ROWS*COLS){ // c[idx] = a[idx] + b[idx]; // } // } // F2 __global__ void add(int *a, int *b, int *c){ int col = blockIdx...
.file "tmpxft_002450e8_00000000-6_addTwoMatrices.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 : _Z3addPiS_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 <stdlib.h> #define ROWS 2 #define COLS 3 // F1 // __global__ void add(int *a, int *b, int *c){ // int idx = blockIdx.x*blockDim.x + threadIdx.x; // if (idx<ROWS*COLS){ // c[idx] = a[idx] + b[idx]; // } // } // F2 __global__ void add(int *a, int *b,...
.text .file "addTwoMatrices.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...
.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_load_b32 s3, s[0:1], 0x24 s_waitcnt lgkmcnt(0) s_lshr_b32 s2, s3, ...
069ba8cef46df0f4c5d4d35e28c3baf1b363b571
//nvcc -ptx "E:\семестр 7\НИР\kernel.cu" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64" //nvcc -ptx "E:\семестр 7\НИР\kernel.cu" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64" -gencode arc...
.file "tmpxft_0020159c_00000000-6_kernel_simple.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 : _Z7kernel2PfS_jjfff .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> //nvcc -ptx "E:\семестр 7\НИР\kernel.cu" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64" //nvcc -ptx "E:\семестр 7\НИР\kernel.cu" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023...
.text .file "kernel_simple.hip" .globl _Z21__device_stub__kernelPfjjiffff # -- Begin function _Z21__device_stub__kernelPfjjiffff .type _Z21__device_stub__kernelPfjjiffff,@function _Z21__device_stub__kernelPfjjiffff: # @_Z21__device_stub__kernelPfjjiffff .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPfjjiffff ; -- Begin function _Z6kernelPfjjiffff .globl _Z6kernelPfjjiffff .p2align 8 .type _Z6kernelPfjjiffff,@function _Z6kernelPfjjiffff: ; @_Z6kernelPfjjiffff ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x34 s_l...
9076697af6ca551427ff0c0b2286e4167248a5d7
#include <stdio.h> #include <chrono> #include <iostream> #include <cmath> #define TPB 256 /* array size 5000: CPU computing time:1.21e-05 GPU computing time:0.167205 The difference is 0.000000 array size 50000: CPU computing time:0.0001292 GPU computing time:0.158399 The difference is 0.000000 array size 500000: CPU ...
.file "tmpxft_0029da87_00000000-6_ex_2.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3743: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z11saxpyKernelPfS_fi .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 <chrono> #include <iostream> #include <cmath> #define TPB 256 /* array size 5000: CPU computing time:1.21e-05 GPU computing time:0.167205 The difference is 0.000000 array size 50000: CPU computing time:0.0001292 GPU computing time:0.158399 The difference is 0....
.text .file "ex_2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z26__device_stub__saxpyKernelPfS_fi # -- Begin function _Z26__device_stub__saxpyKernelPfS_fi ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11saxpyKernelPfS_fi ; -- Begin function _Z11saxpyKernelPfS_fi .globl _Z11saxpyKernelPfS_fi .p2align 8 .type _Z11saxpyKernelPfS_fi,@function _Z11saxpyKernelPfS_fi: ; @_Z11saxpyKernelPfS_fi ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1...
340407b99f8920ca7a629cbe297b0dbab6aa05b6
#include "includes.h" __global__ void big_add(int *a, int *b, int *c, unsigned int N){ int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; while(tid < N){ c[tid] = a[tid] + b[tid]; tid += stride; } }
.file "tmpxft_00397849_00000000-6_big_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__cudaUn...
code for sm_89 Function : _Z7big_addPiS_S_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void big_add(int *a, int *b, int *c, unsigned int N){ int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; while(tid < N){ c[tid] = a[tid] + b[tid]; tid += stride; } }
.text .file "big_add.hip" .globl _Z22__device_stub__big_addPiS_S_j # -- Begin function _Z22__device_stub__big_addPiS_S_j .type _Z22__device_stub__big_addPiS_S_j,@function _Z22__device_stub__big_addPiS_S_j: # @_Z22__device_stub__big_addPiS_S_j .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7big_addPiS_S_j ; -- Begin function _Z7big_addPiS_S_j .globl _Z7big_addPiS_S_j .p2align 8 .type _Z7big_addPiS_S_j,@function _Z7big_addPiS_S_j: ; @_Z7big_addPiS_S_j ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x2c s_load_...
10018b69e348cc077b7f8e80cc2eb35f061f365b
#include <iostream> // Kernel detenition __global__ void MatAdd(int N, float *A, float *B, float *C){ int i = threadIdx.x; int j = threadIdx.y; C[N*i + j] = A[N*i + j] + B[N*i + j]; } int main(){ float *A, *B, *C; int N = 100; cudaMalloc((void**)&A, N*N*sizeof(float)); cudaMalloc((void**)&B...
.file "tmpxft_002fa7d9_00000000-6_hello_cuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z6MatAddiPfS_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 <iostream> // Kernel detenition __global__ void MatAdd(int N, float *A, float *B, float *C){ int i = threadIdx.x; int j = threadIdx.y; C[N*i + j] = A[N*i + j] + B[N*i + j]; } int main(){ float *A, *B, *C; int N = 100; hipMalloc((void**)&A, N*N*sizeof(float...
.text .file "hello_cuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__MatAddiPfS_S_ # -- Begin function _Z21__device_stub__MatAddiPfS_S_ .t...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6MatAddiPfS_S_ ; -- Begin function _Z6MatAddiPfS_S_ .globl _Z6MatAddiPfS_S_ .p2align 8 .type _Z6MatAddiPfS_S_,@function _Z6MatAddiPfS_S_: ; @_Z6MatAddiPfS_S_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x0 s_load_b128 ...
66564b15831151a0f8488430a65e6be3c33a0c4c
// *---------------------------------------------- // Author Contact Information: // Hao Gao // hao.gao@emory.edu || hao.gao.2012@gmail.com // Department of Mathematics and Computer Science, Emory University // Department of Radiology and Imaging Sciences, Emory University // // Copyright (c) Hao Gao 2012 // ----...
.file "tmpxft_002a7dd0_00000000-6_Ax_fan_mf_gpu_new.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 : _Z24Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// *---------------------------------------------- // Author Contact Information: // Hao Gao // hao.gao@emory.edu || hao.gao.2012@gmail.com // Department of Mathematics and Computer Science, Emory University // Department of Radiology and Imaging Sciences, Emory University // // Copyright (c) Hao Gao 2012 // ----...
.text .file "Ax_fan_mf_gpu_new.hip" .globl _Z39__device_stub__Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi # -- Begin function _Z39__device_stub__Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi .type _Z39__device_stub__Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi,@function _Z39__device_stub__Ax_fan_mf_gpu_new_kernelPfS_fffiiiS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi ; -- Begin function _Z24Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi .globl _Z24Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi .p2align 8 .type _Z24Ax_fan_mf_gpu_new_kernelPfS_fffiiiS_iS_Pi,@function _Z24Ax_fan_mf_g...
120acd2101efd913b11ee19f11395cf8de83359f
#include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/functional.h> #include <thrust/transform.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/random.h> #include <thrust/inner_product.h> // This example shows how thrust::zip_iterator can be used to create a // 'virtual' arra...
.file "tmpxft_00344bca_00000000-6_dot_product_with_zip.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_condi...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tEmN6thrust20THRUST_200700_890_NS8cuda_cub20__uninitialized_fill7functorINS7_10device_ptrIfEEfEEEEvT0_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> #include <thrust/functional.h> #include <thrust/transform.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/random.h> #include <thrust/inner_product.h> // This example shows how thrust::zip_iterator can be used...
.text .file "dot_product_with_zip.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 ...
.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...
02e7277158c42653f64a7e94bd4202f05c74ece5
#include <cuda_runtime_api.h> __global__ void batchmap_add_kernel( float *xs, int frame_len, int batch_size, float alpha, const float *scalars) { int idx = threadIdx.x + blockIdx.x * blockDim.x; int i = idx % frame_len; int batch_idx = idx / frame_len; if ((i < frame_len) && (batch_idx < ba...
.file "tmpxft_0021f6ff_00000000-6_map.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__cudaUnregi...
code for sm_89 Function : _Z19batchmap_div_kernelPfiiPKf .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 <hip/hip_runtime_api.h> __global__ void batchmap_add_kernel( float *xs, int frame_len, int batch_size, float alpha, const float *scalars) { int idx = threadIdx.x + blockIdx.x * blockDim.x; int i = idx % frame_len; int batch_idx = idx / frame_len; if ((...
.text .file "map.hip" .globl _Z34__device_stub__batchmap_add_kernelPfiifPKf # -- Begin function _Z34__device_stub__batchmap_add_kernelPfiifPKf .type _Z34__device_stub__batchmap_add_kernelPfiifPKf,@function _Z34__device_stub__batchmap_add_kernelPfiifPKf: # @_Z34__device_stub__batchmap_add_kernelPfiifPKf .cfi_startp...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19batchmap_add_kernelPfiifPKf ; -- Begin function _Z19batchmap_add_kernelPfiifPKf .globl _Z19batchmap_add_kernelPfiifPKf .p2align 8 .type _Z19batchmap_add_kernelPfiifPKf,@function _Z19batchmap_add_kernelPfiifPKf: ; @_Z19batchmap_add_kernelPfiif...
e77efb481eb57bc5f0125990ce36208cb16376d1
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "cuda.h" #include "device_atomic_functions.h" #include <stdio.h> #include "Bfs.cuh" __global__ void bfs_kernel(unsigned int* current_set, unsigned int* new_set, int current_set_size, int* current_set_size_new, Node* node_list, Edge* edge_list...
.file "tmpxft_002f41b6_00000000-6_Bfs.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnregi...
code for sm_89 Function : _Z10bfs_kernelPjS_iPiP6node_tP6edge_tS0_S0_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 */ ...
#ifndef BFS_CUH #define BFS_CUH #define WHITE 0 /* not visited */ #define GREY 1 /* visiting */ #define BLACK 2 /* visited */ #define INF 2147483647 /* infinity distance */ #define MAX_LEVEL 20000 #define THREAD_PER_BLOCK 512 /* can depend on number of nodes*/ #define BLOCK_NUM 256 typedef struct node...
.text .file "Bfs.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 e5bf7e55c91490b07c49d8960fa7983...
.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-...
e32b69b392da905e79a6bcbe3677822d78d7ae05
#include <stdio.h> __global__ void kernel(unsigned char *p) { // int i = blockIdx.x; // int j = blockIdx.y; int i = threadIdx.x; int j = threadIdx.y; p[i * 9 + j] = (i + 1) * (j + 1); } int main( void ) { unsigned char table[81]; unsigned char *mem; cudaMalloc((void **)&mem, 81); // dim3 b(9, 9); dim3 t(9, 9);...
.file "tmpxft_002ff090_00000000-6_main.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 : _Z6kernelPh .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void kernel(unsigned char *p) { // int i = blockIdx.x; // int j = blockIdx.y; int i = threadIdx.x; int j = threadIdx.y; p[i * 9 + j] = (i + 1) * (j + 1); } int main( void ) { unsigned char table[81]; unsigned char *mem; hipMalloc((void **)&mem, 81); //...
.text .file "main.hip" .globl _Z21__device_stub__kernelPh # -- Begin function _Z21__device_stub__kernelPh .type _Z21__device_stub__kernelPh,@function _Z21__device_stub__kernelPh: # @_Z21__device_stub__kernelPh .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 _Z6kernelPh ; -- Begin function _Z6kernelPh .globl _Z6kernelPh .p2align 8 .type _Z6kernelPh,@function _Z6kernelPh: ; @_Z6kernelPh ; %bb.0: s_load_b64 s[0:1], s[0:1], 0x0 v_and_b32_e32 v1, 0x3ff, v0 v_bfe_u32 v0,...
a543e1122c69f683a1cd89bf1f9b55c8fba1d8f4
#include "Backpropogation.cuh" #include "NeuralNetwork.cuh" /** * Gets the errors associated with each neuron's output * Parameter nn: the neural network to get the error for * Parameter errors: the matrix to put the errors in * Parameter layer: the layer to get the error for * Return: nothing */ __global...
.file "tmpxft_00363c4f_00000000-6_Backpropogation.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26...
code for sm_89 Function : _Z12changeBiasesP2nnPPdi .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 "Backpropogation.cuh" #include "NeuralNetwork.cuh" /** * Gets the errors associated with each neuron's output * Parameter nn: the neural network to get the error for * Parameter errors: the matrix to put the errors in * Parameter layer: the layer to get the error for * ...
.text .file "Backpropogation.hip" .globl _Z29__device_stub__getErrorKernelP2nnPPdS2_S1_i # -- Begin function _Z29__device_stub__getErrorKernelP2nnPPdS2_S1_i .type _Z29__device_stub__getErrorKernelP2nnPPdS2_S1_i,@function _Z29__device_stub__getErrorKernelP2nnPPdS2_S1_i: # @_Z29__device_stub__getErrorKernelP2nnPPdS2_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14getErrorKernelP2nnPPdS2_S1_i ; -- Begin function _Z14getErrorKernelP2nnPPdS2_S1_i .globl _Z14getErrorKernelP2nnPPdS2_S1_i .p2align 8 .type _Z14getErrorKernelP2nnPPdS2_S1_i,@function _Z14getErrorKernelP2nnPPdS2_S1_i: ; @_Z14getErrorKernelP2nnPP...
3f7b70e77aae79eb40a88ab588374ffd75654a1d
//add 2 arrays in parallel, often this is faster on CPU than GPU //reason is computation is not intense, require more data than //computation #include <cstdlib> #include <ctime> #include <iostream> #define BSZ 2048 #define TSZ 1024 #define TEST_SIZE BSZ * TSZ #define TT float #define EPS 10e-6 using namespace std; ...
.file "tmpxft_002513b2_00000000-6_add1d.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3642: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_end...
code for sm_89 Function : _Z10add1d_cudaIfEvPT_S1_S1_ .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 */ ...
//add 2 arrays in parallel, often this is faster on CPU than GPU //reason is computation is not intense, require more data than //computation #include <hip/hip_runtime.h> #include <cstdlib> #include <ctime> #include <iostream> #define BSZ 2048 #define TSZ 1024 #define TEST_SIZE BSZ * TSZ #define TT float #define EPS...
.text .file "add1d.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z10add1d_cudaIfEvPT_S1_S1_,"axG",@progbits,_Z10add1d_cudaIfEvPT_S1_S1_,comdat .protected _Z10add1d_cudaIfEvPT_S1_S1_ ; -- Begin function _Z10add1d_cudaIfEvPT_S1_S1_ .globl _Z10add1d_cudaIfEvPT_S1_S1_ .p2align 8 .type _Z10add1d_cudaIfEvPT_S1_S1_,@f...
eb0ffcfd850a26cfce07c13751bedc0052c4d6ba
/* Based on code from here: http://devblogs.nvidia.com/parallelforall/easy-introduction-cuda-c-and-c/ */ #include <stdio.h> #include <stdlib.h> #define N (1000*1000*8) /* Calculate SAXPY, single-precision vector math */ /* y[i]=a*x[i]+y[i] */ __global__ void saxpy (int n, float a, float *x, float *y) { int ...
.file "tmpxft_002f7656_00000000-6_saxpy.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 : _Z5saxpyifPfS_ .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 */ ...
/* Based on code from here: http://devblogs.nvidia.com/parallelforall/easy-introduction-cuda-c-and-c/ */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define N (1000*1000*8) /* Calculate SAXPY, single-precision vector math */ /* y[i]=a*x[i]+y[i] */ __global__ void saxpy (int n, float a...
.text .file "saxpy.hip" .globl _Z20__device_stub__saxpyifPfS_ # -- Begin function _Z20__device_stub__saxpyifPfS_ .type _Z20__device_stub__saxpyifPfS_,@function _Z20__device_stub__saxpyifPfS_: # @_Z20__device_stub__saxpyifPfS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5saxpyifPfS_ ; -- Begin function _Z5saxpyifPfS_ .globl _Z5saxpyifPfS_ .p2align 8 .type _Z5saxpyifPfS_,@function _Z5saxpyifPfS_: ; @_Z5saxpyifPfS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x24 s_load_b64 s[2:3], ...
1c8d276673b2b76524bc5e269696c9f67f883b01
#include <emmintrin.h> #include <sys/time.h> #include <stdio.h> //#include <> int N = 64000000; int nTrapsPow2 = 2046; int nSumsPow2 = 10; int nTraps; int nSums; int doPrint = 0; /...
.file "tmpxft_00316b63_00000000-6_final.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2561: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2561: .size _ZL26__cudaUnre...
code for sm_89 Function : _Z7trapSumiPdiS_ .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 <emmintrin.h> #include <sys/time.h> #include <stdio.h> //#include <> int N = 64000000; int nTrapsPow2 = 2046; int nSumsPow2 = 10; int nTraps; int nSums; ...
.text .file "final.hip" .globl _Z10initializePfi # -- Begin function _Z10initializePfi .type _Z10initializePfi,@function _Z10initializePfi: # @_Z10initializePfi .cfi_startproc # %bb.0: testl %esi, %esi jle .LBB0_4 # %bb.1: # %.lr.ph.preheader pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8gpu_sqrtPfi ; -- Begin function _Z8gpu_sqrtPfi .globl _Z8gpu_sqrtPfi .p2align 8 .type _Z8gpu_sqrtPfi,@function _Z8gpu_sqrtPfi: ; @_Z8gpu_sqrtPfi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x1c s_load_b32 s3, s[0:...
5a966a159c37265a5398d002bd07a7b48de26ac7
/*************************************************** * Module that applay the function sigmoid to all the elements of the matrix * Author: Alonso Vidales <alonso.vidales@tras2.es> * * To be compiled with nvcc -ptx matrix_sum_all.cu * Debug: nvcc -arch=sm_20 -ptx matrix_sum_all.cu * ******************************...
.file "tmpxft_0027e8d1_00000000-6_matrix_sum_all.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2029: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2029: .size _ZL26_...
code for sm_89 Function : matrixSumAll .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 */ ...
/*************************************************** * Module that applay the function sigmoid to all the elements of the matrix * Author: Alonso Vidales <alonso.vidales@tras2.es> * * To be compiled with nvcc -ptx matrix_sum_all.cu * Debug: nvcc -arch=sm_20 -ptx matrix_sum_all.cu * ******************************...
.text .file "matrix_sum_all.hip" .globl __device_stub__matrixSumAll # -- Begin function __device_stub__matrixSumAll .type __device_stub__matrixSumAll,@function __device_stub__matrixSumAll: # @__device_stub__matrixSumAll .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected matrixSumAll ; -- Begin function matrixSumAll .globl matrixSumAll .p2align 8 .type matrixSumAll,@function matrixSumAll: ; @matrixSumAll ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x8 s_waitcnt lgkmcnt(0) s_cmp_lt_i32 s2,...
d3dec882ca19d42f7b44ea263e07fc6e5cd7cb7f
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> /* CUDA C keyword __global__ indicates that a function - runs on the device - and is called from host code */ // define kernel for add two integers __global__ void add_kernel(int *dev_c, int const *dev_a, int co...
.file "tmpxft_00301f81_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z10add_kernelPiPKiS1_ .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> /* CUDA C keyword __global__ indicates that a function - runs on the device - and is called from host code */ // define kernel for add two integers __global__ void add_kernel(int *dev_c, int const *dev_a, int const *dev_b) { // assign to the va...
.text .file "kernel.hip" .globl _Z25__device_stub__add_kernelPiPKiS1_ # -- Begin function _Z25__device_stub__add_kernelPiPKiS1_ .type _Z25__device_stub__add_kernelPiPKiS1_,@function _Z25__device_stub__add_kernelPiPKiS1_: # @_Z25__device_stub__add_kernelPiPKiS1_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10add_kernelPiPKiS1_ ; -- Begin function _Z10add_kernelPiPKiS1_ .globl _Z10add_kernelPiPKiS1_ .p2align 8 .type _Z10add_kernelPiPKiS1_,@function _Z10add_kernelPiPKiS1_: ; @_Z10add_kernelPiPKiS1_ ; %bb.0: s_clause 0x1 s_load_b128 s[4:...
65a39d32e17dd03c3d9b844898da870fcc375ec2
#include "LinkTest.cuh" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void addKernel(int* c, const int* a, const int* b) { int i = threadIdx.x; c[i] = a[i] + b[i]; } void addWithCuda(int* c, const int* a, const int* b, unsigned int size) { int* dev_a = 0; int* dev_b = 0; int* dev_c ...
.file "tmpxft_0037c637_00000000-6_LinkTest.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__cudaU...
code for sm_89 Function : _Z9addKernelPiPKiS1_ .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> void addWithCuda(int* c, const int* a, const int* b, unsigned int size); template<unsigned int D>struct AHH { int gg[D]; void set(); };
.text .file "LinkTest.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960f...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
22fb43b356614eec0230563ad488559d03260707
#include "includes.h" __global__ void device_ll () { __shared__ double partial_ll[REDUC_THREADS] ; int i, n, ntarg, index ; double sum_ll ; index = threadIdx.x ; n = d_ncases ; ntarg = d_ntarg ; sum_ll = 0.0 ; for (i=blockIdx.x*blockDim.x+index ; i<n ; i+=blockDim.x*gridDim.x) sum_ll -= log ( d_output[i*ntarg+d_class...
.file "tmpxft_002f978f_00000000-6_device_ll.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 : _Z9device_llv .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 device_ll () { __shared__ double partial_ll[REDUC_THREADS] ; int i, n, ntarg, index ; double sum_ll ; index = threadIdx.x ; n = d_ncases ; ntarg = d_ntarg ; sum_ll = 0.0 ; for (i=blockIdx.x*blockDim.x+index ; i<n ; i+=blockDim.x*gridDim.x) sum_ll -= ...
.text .file "device_ll.hip" .globl _Z24__device_stub__device_llv # -- Begin function _Z24__device_stub__device_llv .type _Z24__device_stub__device_llv,@function _Z24__device_stub__device_llv: # @_Z24__device_stub__device_llv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_d...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9device_llv ; -- Begin function _Z9device_llv .globl _Z9device_llv .p2align 8 .type _Z9device_llv,@function _Z9device_llv: ; @_Z9device_llv ; %bb.0: s_load_b32 s3, s[0:1], 0xc s_getpc_b64 s[4:5] s_add_u32 s4, s4, ...
69f80337bee3e8fcb507355076b663f30627250a
#include <stdio.h> #include <stdint.h> #include <chrono> // Constant values. #define TB_SIZE 256 uint64_t ARRAY_SIZE = 300'000'000; // Check if the given pointer is NULL. #define PTR_CHECK(cmd) if ((x) == NULL) { \ printf("ERROR: null pointer at line %d\n", __LINE__); abort(); } // Check if the given command ha...
.file "tmpxft_0025cd59_00000000-6_exercise_2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2133: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2133: .size _ZL26__cud...
code for sm_89 Function : _Z9SAXPY_gpuPfS_fm .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 <stdint.h> #include <chrono> // Constant values. #define TB_SIZE 256 uint64_t ARRAY_SIZE = 300'000'000; // Check if the given pointer is NULL. #define PTR_CHECK(cmd) if ((x) == NULL) { \ printf("ERROR: null pointer at line %d\n", __LINE__); abort(); } //...
.text .file "exercise_2.hip" .globl _Z24__device_stub__SAXPY_gpuPfS_fm # -- Begin function _Z24__device_stub__SAXPY_gpuPfS_fm .type _Z24__device_stub__SAXPY_gpuPfS_fm,@function _Z24__device_stub__SAXPY_gpuPfS_fm: # @_Z24__device_stub__SAXPY_gpuPfS_fm .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9SAXPY_gpuPfS_fm ; -- Begin function _Z9SAXPY_gpuPfS_fm .globl _Z9SAXPY_gpuPfS_fm .p2align 8 .type _Z9SAXPY_gpuPfS_fm,@function _Z9SAXPY_gpuPfS_fm: ; @_Z9SAXPY_gpuPfS_fm ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x2c s_l...
dd7b2f14338b2f1220c761e2e3f88f2009a5456c
#include "includes.h" __global__ void kernel_test0_global_write(char* _ptr, char* _end_ptr) { unsigned int* ptr = (unsigned int*)_ptr; unsigned int* end_ptr = (unsigned int*)_end_ptr; unsigned int* orig_ptr = ptr; unsigned int pattern = 1; unsigned long mask = 4; *ptr = pattern; while(ptr < end_ptr){ ptr = (unsig...
.file "tmpxft_003b9238_00000000-6_kernel_test0_global_write.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 : _Z25kernel_test0_global_writePcS_ .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 kernel_test0_global_write(char* _ptr, char* _end_ptr) { unsigned int* ptr = (unsigned int*)_ptr; unsigned int* end_ptr = (unsigned int*)_end_ptr; unsigned int* orig_ptr = ptr; unsigned int pattern = 1; unsigned long mask = 4; *ptr = pattern; while...
.text .file "kernel_test0_global_write.hip" .globl _Z40__device_stub__kernel_test0_global_writePcS_ # -- Begin function _Z40__device_stub__kernel_test0_global_writePcS_ .type _Z40__device_stub__kernel_test0_global_writePcS_,@function _Z40__device_stub__kernel_test0_global_writePcS_: # @_Z40__device_stub__kernel_tes...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z25kernel_test0_global_writePcS_ ; -- Begin function _Z25kernel_test0_global_writePcS_ .globl _Z25kernel_test0_global_writePcS_ .p2align 8 .type _Z25kernel_test0_global_writePcS_,@function _Z25kernel_test0_global_writePcS_: ; @_Z25kernel_test0_glo...
dbd66a672339c0d54d1b7a0a8975fe77c66fceef
// This example demonstrates the use of shared per-block arrays // implement an optimized dense matrix multiplication algorithm. // Like the shared_variables.cu example, a per-block __shared__ // array acts as a "bandwidth multiplier" by eliminating redundant // loads issued by neighboring threads. #include <stdlib.h>...
.file "tmpxft_00206128_00000000-6_MatrixMultiplication.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4256: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinar...
code for sm_89 Function : _Z22matrix_multiply_simplePiS_S_m .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 */ ...
// This example demonstrates the use of shared per-block arrays // implement an optimized dense matrix multiplication algorithm. // Like the shared_variables.cu example, a per-block __shared__ // array acts as a "bandwidth multiplier" by eliminating redundant // loads issued by neighboring threads. #include <stdlib.h>...
.text .file "MatrixMultiplication.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z37__device_stub__matrix_multiply_simplePiS_S_m # -- Begin function _Z37__devi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z22matrix_multiply_simplePiS_S_m ; -- Begin function _Z22matrix_multiply_simplePiS_S_m .globl _Z22matrix_multiply_simplePiS_S_m .p2align 8 .type _Z22matrix_multiply_simplePiS_S_m,@function _Z22matrix_multiply_simplePiS_S_m: ; @_Z22matrix_multiply_...
c5d5b3d3f2ca136b9857371b54adc63563b76c54
/////// ///////////////////////////////////////////////////////////////////// // Calculate scalar products of VectorN vectors of ElementN elements on CPU. // Straight accumulation in double precision. //////////////////////////////////////////////////////////////////////////// #include <iostream> #include <cmath> usin...
.file "tmpxft_00254f24_00000000-6_Kernel_5_CPU.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
/////// ///////////////////////////////////////////////////////////////////// // Calculate scalar products of VectorN vectors of ElementN elements on CPU. // Straight accumulation in double precision. //////////////////////////////////////////////////////////////////////////// #include <hip/hip_runtime.h> #include <i...
.text .file "Kernel_5_CPU.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z12Kernel_5_CPUPiS_S_S_iiiiiiii # -- Begin function _Z12Kernel_5_CPUPiS_S_S_iiiiiiii ...
.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-...
20c55a226ecd4dc6e413c25bd3485af0e8eaa0c2
#include "includes.h" __global__ void Kernel(int* a,int* b,int *c,int n){ int i = blockIdx.x*blockDim.x + threadIdx.x; __shared__ extern int shared_mem[]; int reg; if(i>= n) return; reg = a[i] + b[i]; shared_mem[i] = reg; c[i] = shared_mem[i]; }
.file "tmpxft_0039ce10_00000000-6_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 _ZL26__cudaUnr...
code for sm_89 Function : _Z6KernelPiS_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 Kernel(int* a,int* b,int *c,int n){ int i = blockIdx.x*blockDim.x + threadIdx.x; __shared__ extern int shared_mem[]; int reg; if(i>= n) return; reg = a[i] + b[i]; shared_mem[i] = reg; c[i] = shared_mem[i]; }
.text .file "Kernel.hip" .globl _Z21__device_stub__KernelPiS_S_i # -- Begin function _Z21__device_stub__KernelPiS_S_i .type _Z21__device_stub__KernelPiS_S_i,@function _Z21__device_stub__KernelPiS_S_i: # @_Z21__device_stub__KernelPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6KernelPiS_S_i ; -- Begin function _Z6KernelPiS_S_i .globl _Z6KernelPiS_S_i .p2align 8 .type _Z6KernelPiS_S_i,@function _Z6KernelPiS_S_i: ; @_Z6KernelPiS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 ...
0f7bf56fc5f336fcd84a50afcc14a486d78e27c6
#include "sha5.cuh" #include <string.h> __device__ static const uint64_t rhash_k512[80] = { I64(0x428a2f98d728ae22), I64(0x7137449123ef65cd), I64(0xb5c0fbcfec4d3b2f), I64(0xe9b5dba58189dbbc), I64(0x3956c25bf348b538), I64(0x59f111f1b605d019), I64(0x923f82a4af194f9b), I64(0xab1c5ed5da6d8118), I64(0xd807aa98a3030242)...
.file "tmpxft_0032c25f_00000000-6_sha5.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2017: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2017: .size _ZL26__cudaUnreg...
code for sm_89
#include <hip/hip_runtime.h> #include "sha5.cuh" #include <string.h> __device__ static const uint64_t rhash_k512[80] = { I64(0x428a2f98d728ae22), I64(0x7137449123ef65cd), I64(0xb5c0fbcfec4d3b2f), I64(0xe9b5dba58189dbbc), I64(0x3956c25bf348b538), I64(0x59f111f1b605d019), I64(0x923f82a4af194f9b), I64(0xab1c5ed5da6d...
.text .file "sha5.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-...
85008750a8d4ad8bb7c79c8900bb24bdf263b6c1
/* * gapped_extender_gpu_ref.cu * * Created on: 2014/08/23 * Author: shu */ #ifndef GAPPED_EXTENDER_GPU_REF_CU_ #define GAPPED_EXTENDER_GPU_REF_CU_ /* #include "gapped_extender_gpu.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/system/cuda/experimental/pinned_allocat...
.file "tmpxft_002c41af_00000000-6_gapped_extender_gpu_ref_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 .LFE201...
code for sm_89
/* * gapped_extender_gpu_ref.cu * * Created on: 2014/08/23 * Author: shu */ #ifndef GAPPED_EXTENDER_GPU_REF_CU_ #define GAPPED_EXTENDER_GPU_REF_CU_ /* #include "gapped_extender_gpu.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/system/cuda/experimental/pinned_allocat...
.text .file "gapped_extender_gpu_ref_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 e5bf...
.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-...
43c2c1ed63b990ccf5fe8eda651156d50a7b65c0
#include "includes.h" __global__ void finishCentroids(int* centroidMass, unsigned int* centroidCount, float* centroids) { int centroidNumber = blockIdx.y * blockDim.y + threadIdx.y; int dimensionNumber = blockIdx.x * blockDim.x + threadIdx.x; if ((centroidNumber < 32) && (dimensionNumber < 34)) { float totalCount = (fl...
.file "tmpxft_00291f68_00000000-6_finishCentroids.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 : _Z15finishCentroidsPiPjPf .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 finishCentroids(int* centroidMass, unsigned int* centroidCount, float* centroids) { int centroidNumber = blockIdx.y * blockDim.y + threadIdx.y; int dimensionNumber = blockIdx.x * blockDim.x + threadIdx.x; if ((centroidNumber < 32) && (dimensionNumber <...
.text .file "finishCentroids.hip" .globl _Z30__device_stub__finishCentroidsPiPjPf # -- Begin function _Z30__device_stub__finishCentroidsPiPjPf .type _Z30__device_stub__finishCentroidsPiPjPf,@function _Z30__device_stub__finishCentroidsPiPjPf: # @_Z30__device_stub__finishCentroidsPiPjPf .cfi_startproc # %bb.0: push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15finishCentroidsPiPjPf ; -- Begin function _Z15finishCentroidsPiPjPf .globl _Z15finishCentroidsPiPjPf .p2align 8 .type _Z15finishCentroidsPiPjPf,@function _Z15finishCentroidsPiPjPf: ; @_Z15finishCentroidsPiPjPf ; %bb.0: s_load_b32 s2, s...
cc30631175c13a270a0c591d67cabb8c495b1f11
#include <cuda_runtime.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <sys/time.h> //Tamaño de matrices (cuadradas) #define N 1024 //Kernel __global__ void mul(int * A, int * B, int * C){ int i = blockIdx.x; int j = threadIdx.x; //TODO -> Calcular elemento C(i,j) } int main(){ struct time...
.file "tmpxft_002d1400_00000000-6_ToDo_simpleMatrixMul.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 ...
code for sm_89 Function : _Z3mulPiS_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 */ /* 0x000fe40000000f00 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <sys/time.h> //Tamaño de matrices (cuadradas) #define N 1024 //Kernel __global__ void mul(int * A, int * B, int * C){ int i = blockIdx.x; int j = threadIdx.x; //TODO -> Calcular elemento C(i,j) } int main(){ struct t...
.text .file "ToDo_simpleMatrixMul.hip" .globl _Z18__device_stub__mulPiS_S_ # -- Begin function _Z18__device_stub__mulPiS_S_ .type _Z18__device_stub__mulPiS_S_,@function _Z18__device_stub__mulPiS_S_: # @_Z18__device_stub__mulPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3mulPiS_S_ ; -- Begin function _Z3mulPiS_S_ .globl _Z3mulPiS_S_ .p2align 8 .type _Z3mulPiS_S_,@function _Z3mulPiS_S_: ; @_Z3mulPiS_S_ ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_ker...
ebfd293698e58d2f3a3a7d8f74feb0241e9b2f23
#include <cuda.h> #include <stdio.h> #include <sys/time.h> #define BLOCK_SIZE 16 __global__ void lud_diagonal(float *m, int matrix_dim, int offset) { int i,j; __shared__ float shadow[BLOCK_SIZE][BLOCK_SIZE]; /* Each thread block, i.e. 1D 16 threads, loads a * 2D block, i.e. 16x16, of data from the diagona...
.file "tmpxft_002b5e52_00000000-6_lud_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__cud...
code for sm_89 Function : _Z18lud_internal_noshrPfii .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> #define BLOCK_SIZE 16 __global__ void lud_diagonal(float *m, int matrix_dim, int offset) { int i,j; __shared__ float shadow[BLOCK_SIZE][BLOCK_SIZE]; /* Each thread block, i.e. 1D 16 threads, loads a * 2D block, i.e. 16x16, of data from ...
.text .file "lud_kernel.hip" .globl _Z27__device_stub__lud_diagonalPfii # -- Begin function _Z27__device_stub__lud_diagonalPfii .type _Z27__device_stub__lud_diagonalPfii,@function _Z27__device_stub__lud_diagonalPfii: # @_Z27__device_stub__lud_diagonalPfii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12lud_diagonalPfii ; -- Begin function _Z12lud_diagonalPfii .globl _Z12lud_diagonalPfii .p2align 8 .type _Z12lud_diagonalPfii,@function _Z12lud_diagonalPfii: ; @_Z12lud_diagonalPfii ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 v_lsh...
7fb37c75c43facf927133ab020438eb5333711a1
#include<stdio.h> #include<stdlib.h> #include<time.h> # define FILL_PERCENT 10 # define SIZE 250 # define BLOCK_SIZE 32 __global__ void spmvNormal( int *M, int *V, int *res){ int idx = blockIdx.x * blockDim.x + threadIdx.x; int temp,i; if (idx < SIZE) { temp = 0; //dot product for one row ...
.file "tmpxft_00287194_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z12spmvECSR_modPiS_S_S_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<stdlib.h> #include<time.h> # define FILL_PERCENT 10 # define SIZE 250 # define BLOCK_SIZE 32 __global__ void spmvNormal( int *M, int *V, int *res){ int idx = blockIdx.x * blockDim.x + threadIdx.x; int temp,i; if (idx < SIZE) { temp = 0; ...
.text .file "main.hip" .globl _Z25__device_stub__spmvNormalPiS_S_ # -- Begin function _Z25__device_stub__spmvNormalPiS_S_ .type _Z25__device_stub__spmvNormalPiS_S_,@function _Z25__device_stub__spmvNormalPiS_S_: # @_Z25__device_stub__spmvNormalPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10spmvNormalPiS_S_ ; -- Begin function _Z10spmvNormalPiS_S_ .globl _Z10spmvNormalPiS_S_ .p2align 8 .type _Z10spmvNormalPiS_S_,@function _Z10spmvNormalPiS_S_: ; @_Z10spmvNormalPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 s_waitcnt...
b46dae5433975b8c2c83cb9a2bc163dd232f38d6
//pass //--blockDim=10 --gridDim=64 --no-inline #include "cuda.h" __global__ void foo() { __shared__ int A[10][10]; A[threadIdx.y][threadIdx.x] = 2; }
.file "tmpxft_00286f4f_00000000-6_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 _ZL26__cudaUnr...
code for sm_89 Function : _Z3foov .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 */ ...
//pass //--blockDim=10 --gridDim=64 --no-inline #include "hip/hip_runtime.h" __global__ void foo() { __shared__ int A[10][10]; A[threadIdx.y][threadIdx.x] = 2; }
.text .file "kernel.hip" .globl _Z18__device_stub__foov # -- Begin function _Z18__device_stub__foov .type _Z18__device_stub__foov,@function _Z18__device_stub__foov: # @_Z18__device_stub__foov .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3foov ; -- Begin function _Z3foov .globl _Z3foov .p2align 8 .type _Z3foov,@function _Z3foov: ; @_Z3foov ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z3foov .amdhs...
416bd22ae3e983f916ad700a271ef00779fc6aac
#include "includes.h" __global__ void applyLinearFunction(int size, const short *x, short *y, short a, short b) { const long ix = threadIdx.x + blockIdx.x * (long)blockDim.x; if (ix < size) { y[ix] = a + b * x[ix]; } }
.file "tmpxft_0033da80_00000000-6_applyLinearFunction.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 : _Z19applyLinearFunctioniPKsPsss .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 applyLinearFunction(int size, const short *x, short *y, short a, short b) { const long ix = threadIdx.x + blockIdx.x * (long)blockDim.x; if (ix < size) { y[ix] = a + b * x[ix]; } }
.text .file "applyLinearFunction.hip" .globl _Z34__device_stub__applyLinearFunctioniPKsPsss # -- Begin function _Z34__device_stub__applyLinearFunctioniPKsPsss .type _Z34__device_stub__applyLinearFunctioniPKsPsss,@function _Z34__device_stub__applyLinearFunctioniPKsPsss: # @_Z34__device_stub__applyLinearFunctioniPKsP...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19applyLinearFunctioniPKsPsss ; -- Begin function _Z19applyLinearFunctioniPKsPsss .globl _Z19applyLinearFunctioniPKsPsss .p2align 8 .type _Z19applyLinearFunctioniPKsPsss,@function _Z19applyLinearFunctioniPKsPsss: ; @_Z19applyLinearFunctioniPKsP...
5ad258526086138d2f68af12a516d8a6e8fd79fb
#include "includes.h" __global__ void generateGaussian_kernel(float* og, float delta, int radius) { int x = threadIdx.x - radius; og[threadIdx.x] = __expf(-(x * x) / (2 * delta * delta)); }
.file "tmpxft_00258a54_00000000-6_generateGaussian_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 : _Z23generateGaussian_kernelPffi .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 generateGaussian_kernel(float* og, float delta, int radius) { int x = threadIdx.x - radius; og[threadIdx.x] = __expf(-(x * x) / (2 * delta * delta)); }
.text .file "generateGaussian_kernel.hip" .globl _Z38__device_stub__generateGaussian_kernelPffi # -- Begin function _Z38__device_stub__generateGaussian_kernelPffi .type _Z38__device_stub__generateGaussian_kernelPffi,@function _Z38__device_stub__generateGaussian_kernelPffi: # @_Z38__device_stub__generateGaussian_ker...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23generateGaussian_kernelPffi ; -- Begin function _Z23generateGaussian_kernelPffi .globl _Z23generateGaussian_kernelPffi .p2align 8 .type _Z23generateGaussian_kernelPffi,@function _Z23generateGaussian_kernelPffi: ; @_Z23generateGaussian_kernelP...
cd72e8db757431b60cc36ba399b8a0f0d0150f87
#include <iostream> #include <cstdlib> #include <cassert> #include <cmath> #include <fstream> #include <sstream> #include "training_reader.cuh" using namespace std; //-----------------------Training Class to load training data------------------- // class TrainingData // { // public: // __host__ TrainingData(const...
.file "tmpxft_001fe0b0_00000000-6_training_reader.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3835: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> #include <cstdlib> #include <cassert> #include <cmath> #include <fstream> #include <sstream> using namespace std; //-----------------------Training Class to load training data------------------- class TrainingData { public: __host__ TrainingData(const string file...
.text .file "training_reader.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_:...
.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-...
65409be87a9f3c0529949aa4dab9461ff015ec05
#include "includes.h" __device__ float sigmoid(float x) { return 1.0f / (1 + __expf(-x)); } __global__ void matrixMultiplyUpdateWeights_sigmoid(float * A, float * B, float * C, int numARows, int numAColumns, int numBRows, int numBColumns, int numCRows, int numCColumns, float learning_rate) { //@@ Insert code to impleme...
.file "tmpxft_0021c44f_00000000-6_matrixMultiplyUpdateWeights_sigmoid.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 .L...
code for sm_89 Function : _Z35matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __device__ float sigmoid(float x) { return 1.0f / (1 + __expf(-x)); } __global__ void matrixMultiplyUpdateWeights_sigmoid(float * A, float * B, float * C, int numARows, int numAColumns, int numBRows, int numBColumns, int numCRows, int numCColumns, float learning_rate)...
.text .file "matrixMultiplyUpdateWeights_sigmoid.hip" .globl _Z50__device_stub__matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif # -- Begin function _Z50__device_stub__matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif .type _Z50__device_stub__matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif,@function _Z50__device_st...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z35matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif ; -- Begin function _Z35matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif .globl _Z35matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiiiif .p2align 8 .type _Z35matrixMultiplyUpdateWeights_sigmoidPfS_S_iiiii...
c9e2f88135d40de829a8b71b4a589f287cfde1bc
extern "C" __global__ void calc_entropy_atomic(float *float_image_in, float *entropy_out, int blk_size) { //calculate entropy of a block through a single thread __shared__ float sum; if (threadIdx.x == 0 && threadIdx.y == 0) { sum = 0.0; } __syncthreads(); int blocksize = blk_size*blk_size; //vertical offset t...
.file "tmpxft_0030dd97_00000000-6_encoding.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaU...
code for sm_89 Function : thread_dct_v .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> extern "C" __global__ void calc_entropy_atomic(float *float_image_in, float *entropy_out, int blk_size) { //calculate entropy of a block through a single thread __shared__ float sum; if (threadIdx.x == 0 && threadIdx.y == 0) { sum = 0.0; } __syncthreads(); int blocksize = blk_size*...
.text .file "encoding.hip" .globl __device_stub__calc_entropy_atomic # -- Begin function __device_stub__calc_entropy_atomic .type __device_stub__calc_entropy_atomic,@function __device_stub__calc_entropy_atomic: # @__device_stub__calc_entropy_atomic .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected calc_entropy_atomic ; -- Begin function calc_entropy_atomic .globl calc_entropy_atomic .p2align 8 .type calc_entropy_atomic,@function calc_entropy_atomic: ; @calc_entropy_atomic ; %bb.0: v_and_b32_e32 v1, 0x3ff, v0 v_bfe_u32 v0,...
31b33d129fea5c693bc98a7f0fd648e2f043fa8a
__global__ void dummyKernel(){ unsigned int count = 0; for(unsigned int i = 0; i < 1000; i++){ count += i; } } void dummyKernelWrapper(){ dummyKernel<<<1,1>>>(); }
.file "tmpxft_00218a3c_00000000-6_dummyKernel.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__cu...
code for sm_89 Function : _Z11dummyKernelv .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> __global__ void dummyKernel(){ unsigned int count = 0; for(unsigned int i = 0; i < 1000; i++){ count += i; } } void dummyKernelWrapper(){ dummyKernel<<<1,1>>>(); }
.text .file "dummyKernel.hip" .globl _Z26__device_stub__dummyKernelv # -- Begin function _Z26__device_stub__dummyKernelv .type _Z26__device_stub__dummyKernelv,@function _Z26__device_stub__dummyKernelv: # @_Z26__device_stub__dummyKernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11dummyKernelv ; -- Begin function _Z11dummyKernelv .globl _Z11dummyKernelv .p2align 8 .type _Z11dummyKernelv,@function _Z11dummyKernelv: ; @_Z11dummyKernelv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, ...
f412ca19f58a42526e7c41a973faeb59728b975d
#include <cuda.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cmath> #include <time.h> #include <iostream> #define DTYPE float __global__ void kernel(float *a, float *x, float* buff,int Xblocks,int size,bool comp,int toreduce) { int i=threadIdx.x+blockIdx.x*blockDim.x; int j=threadIdx.y+blo...
.file "tmpxft_002e9992_00000000-6_onlyshared.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3641: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z6kernelPfS_S_iibi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cmath> #include <time.h> #include <iostream> #define DTYPE float __global__ void kernel(float *a, float *x, float* buff,int Xblocks,int size,bool comp,int toreduce) { int i=threadIdx.x+blockIdx.x*blockDim.x; int j=thre...
.text .file "onlyshared.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__kernelPfS_S_iibi # -- Begin function _Z21__device_stub__kernelPfS_S_ii...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPfS_S_iibi ; -- Begin function _Z6kernelPfS_S_iibi .globl _Z6kernelPfS_S_iibi .p2align 8 .type _Z6kernelPfS_S_iibi,@function _Z6kernelPfS_S_iibi: ; @_Z6kernelPfS_S_iibi ; %bb.0: s_clause 0x2 s_load_b32 s8, s[0:1], 0x34 ...
618f8ff73b9b860db73d4f7f704ebe14f94d2b0d
#include <iostream> #include <cstdlib> #include <ctime> #include "cuda_runtime.h" #include <thrust/host_vector.h> #include <thrust/device_vector.h> using namespace std; __global__ void action(int *array1, int* array2, int* array_res) { int i = blockIdx.x * blockDim.x + threadIdx.x; switch(i % 3) { c...
.file "tmpxft_00389436_00000000-6_paper.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 nvtxEtiGetModu...
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 <iostream> #include <cstdlib> #include <ctime> #include "hip/hip_runtime.h" #include <thrust/host_vector.h> #include <thrust/device_vector.h> using namespace std; __global__ void action(int *array1, int* array2, int* array_res) { int i = blockIdx.x * blockDim.x + threadIdx.x; switch(i % 3) { ...
.text .file "paper.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__actionPiS_S_ # -- Begin function _Z21__device_stub__actionPiS_S_ .type _Z2...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6actionPiS_S_ ; -- Begin function _Z6actionPiS_S_ .globl _Z6actionPiS_S_ .p2align 8 .type _Z6actionPiS_S_,@function _Z6actionPiS_S_: ; @_Z6actionPiS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4...
4cb51b6552a90cbdc2ba2f456b693b70f47d7ef8
//#include "shallow.h" #include <iostream> #include <time.h> #include <stdlib.h> #define RELU(a) ((a > 0) ? a : 0) #define KERNEL_SIZE(n_C) ((n_C * 2 > 8) ? 8 : n_C * 2) struct layer_param { int M; //Ilosc tablic podawanych na wejscie int pad; //Grubosc warstwy zer na krawedziach (zero-padding) ...
.file "tmpxft_002de7d9_00000000-6_convnet.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZSt5fixedRSt8ios_base,"axG",@progbits,_ZSt5fixedRSt8ios_base,comdat .weak _ZSt5fixedRSt8ios_base .type _ZSt5fixedRSt8ios_base, @function _ZSt5fixedRSt8ios_base: .LFB3285: .cfi_startproc ...
code for sm_89
//#include "shallow.h" #include <hip/hip_runtime.h> #include <iostream> #include <time.h> #include <stdlib.h> #define RELU(a) ((a > 0) ? a : 0) #define KERNEL_SIZE(n_C) ((n_C * 2 > 8) ? 8 : n_C * 2) struct layer_param { int M; //Ilosc tablic podawanych na wejscie int pad; //Grubosc warstwy zer ...
.text .file "convnet.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 # -- Begin funct...
.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-...
1d4913740b6e93c3e3c7288c0168ebc78b851eac
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> //Defining number of elements in Array #define arraySize 5 //Defining number of thread per block #define threadPerBlock 5 // 秩排序算法,对于数组中每个元素,统计小于它的元素个数 __global__ void addKernel(int *d_a, int *d_b) { // 当前元素在排序后数组中的位置 int count = 0; ...
.file "tmpxft_0020fd55_00000000-6_04_rank_sort.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 : _Z9addKernelPiS_ .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> //Defining number of elements in Array #define arraySize 5 //Defining number of thread per block #define threadPerBlock 5 // 秩排序算法,对于数组中每个元素,统计小于它的元素个数 __global__ void addKernel(int *d_a, int *d_b) { // 当前元素在排序后数组中的位置 int count = 0; // 块中当前线程索引 int tid = threadIdx....
.text .file "04_rank_sort.hip" .globl _Z24__device_stub__addKernelPiS_ # -- Begin function _Z24__device_stub__addKernelPiS_ .type _Z24__device_stub__addKernelPiS_,@function _Z24__device_stub__addKernelPiS_: # @_Z24__device_stub__addKernelPiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9addKernelPiS_ ; -- Begin function _Z9addKernelPiS_ .globl _Z9addKernelPiS_ .p2align 8 .type _Z9addKernelPiS_,@function _Z9addKernelPiS_: ; @_Z9addKernelPiS_ ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 v_mad_u64_u32 v[1:2],...
85dcc8897f9fdb9eee46f00a19a3378b7272f06e
/* * * Programa de Introducción a los conceptos de CUDA * Mariana Hernández * Alan Córdova * * */ #include <stdio.h> #include <stdlib.h> /* Declaración de métodos/ /* Utilidad para checar errores de CUDA */ void checkCUDAError(const char*); /* Kernel para sumar dos vectores en un sólo bloque de hilos */ __g...
.file "tmpxft_00200ffe_00000000-6_intro.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 : _Z19vect_add_multiblockPiS_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 */ ...
/* * * Programa de Introducción a los conceptos de CUDA * Mariana Hernández * Alan Córdova * * */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> /* Declaración de métodos/ /* Utilidad para checar errores de CUDA */ void checkCUDAError(const char*); /* Kernel para sumar dos vectores en ...
.text .file "intro.hip" .globl _Z23__device_stub__vect_addPiS_S_ # -- Begin function _Z23__device_stub__vect_addPiS_S_ .type _Z23__device_stub__vect_addPiS_S_,@function _Z23__device_stub__vect_addPiS_S_: # @_Z23__device_stub__vect_addPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8vect_addPiS_S_ ; -- Begin function _Z8vect_addPiS_S_ .globl _Z8vect_addPiS_S_ .p2align 8 .type _Z8vect_addPiS_S_,@function _Z8vect_addPiS_S_: ; @_Z8vect_addPiS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_...
2335113fb203c0a199388b6cea9ca3f9e70ab542
#include <stdio.h> #define WIDTH gridDim.x*blockDim.x #define HEIGHT gridDim.y*blockDim.y #define X ((blockIdx.x * blockDim.x) + threadIdx.x) #define Y ((blockIdx.y * blockDim.y) + threadIdx.y) extern "C" __global__ void computeFloat( int *iters, float4 area, int maxIterations, float sqrEscape...
.file "tmpxft_0039e8f8_00000000-6_MandelStdOut.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 : computeFloat .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #define WIDTH gridDim.x*blockDim.x #define HEIGHT gridDim.y*blockDim.y #define X ((blockIdx.x * blockDim.x) + threadIdx.x) #define Y ((blockIdx.y * blockDim.y) + threadIdx.y) extern "C" __global__ void computeFloat( int *iters, float4 area, int maxIte...
.text .file "MandelStdOut.hip" .globl __device_stub__computeFloat # -- Begin function __device_stub__computeFloat .type __device_stub__computeFloat,@function __device_stub__computeFloat: # @__device_stub__computeFloat .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected computeFloat ; -- Begin function computeFloat .globl computeFloat .p2align 8 .type computeFloat,@function computeFloat: ; @computeFloat ; %bb.0: s_clause 0x2 s_load_b32 s5, s[0:1], 0x34 s_load_b64 s[2:3], s[0:1], ...
94c354c90b75e4752d3fba03a5257330c5bfd91d
#include "includes.h" __global__ void pnpoly_cnGPU1(const float *px, const float *py, const float *vx, const float *vy, char* cs, int npoint, int nvert) { int i = blockIdx.x*blockDim.x + threadIdx.x; if (i < npoint) { int j, k, c = 0; for (j = 0, k = nvert-1; j < nvert; k = j++) { if ( ((vy[j]>py[i]) != (vy[k]>py[i])) ...
.file "tmpxft_00224ed1_00000000-6_pnpoly_cnGPU1.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 : _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii .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 pnpoly_cnGPU1(const float *px, const float *py, const float *vx, const float *vy, char* cs, int npoint, int nvert) { int i = blockIdx.x*blockDim.x + threadIdx.x; if (i < npoint) { int j, k, c = 0; for (j = 0, k = nvert-1; j < nvert; k = j++) { if ( ((v...
.text .file "pnpoly_cnGPU1.hip" .globl _Z28__device_stub__pnpoly_cnGPU1PKfS0_S0_S0_Pcii # -- Begin function _Z28__device_stub__pnpoly_cnGPU1PKfS0_S0_S0_Pcii .type _Z28__device_stub__pnpoly_cnGPU1PKfS0_S0_S0_Pcii,@function _Z28__device_stub__pnpoly_cnGPU1PKfS0_S0_S0_Pcii: # @_Z28__device_stub__pnpoly_cnGPU1PKfS0_S0_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii ; -- Begin function _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii .globl _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii .p2align 8 .type _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii,@function _Z13pnpoly_cnGPU1PKfS0_S0_S0_Pcii: ; @_Z13pnpoly_cnGPU1PKf...
8d0f37d099772de6e5678d1939bb0eb89ab52e32
#include <cuda.h> int main(int argc, char ** argv) { int deviceCount; cudaGetDeviceCount(&deviceCount); for (int dev = 0; dev < deviceCount; dev++) { cudaDeviceProp deviceProp; cudaGetDeviceProperties(&deviceProp, dev); if (dev == 0) { if (deviceProp.major == 9999 &...
.file "tmpxft_0033542a_00000000-6_cuda_info.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__cuda...
code for sm_89
#include <hip/hip_runtime.h> int main(int argc, char ** argv) { int deviceCount; hipGetDeviceCount(&deviceCount); for (int dev = 0; dev < deviceCount; dev++) { hipDeviceProp_t deviceProp; hipGetDeviceProperties(&deviceProp, dev); if (dev == 0) { if (deviceProp.major...
.text .file "cuda_info.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 $1480, %rsp # imm = 0x5C8 .cfi_...
.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-...
787acee989dc4907251ab1f4d74ea4fa1c8b1445
/** * Writed By: Huaxia Wang * hwang122@hawk.iit.edu **/ #include <stdio.h> #include <stdlib.h> #include <string.h> #define CHECK_ERR(x) \ if (x != cudaSuccess) { \ fprintf(stderr, "%s in %s at line %d\n", \...
.file "tmpxft_0039a86c_00000000-6_cuda_grep.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__cuda...
code for sm_89 Function : _Z6d_GrepPcS_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 */ ...
/** * Writed By: Huaxia Wang * hwang122@hawk.iit.edu **/ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define CHECK_ERR(x) \ if (x != hipSuccess) { \ fprintf(stderr, "%s in %s at...
.text .file "cuda_grep.hip" .globl _Z21__device_stub__d_GrepPcS_S_ii # -- Begin function _Z21__device_stub__d_GrepPcS_S_ii .type _Z21__device_stub__d_GrepPcS_S_ii,@function _Z21__device_stub__d_GrepPcS_S_ii: # @_Z21__device_stub__d_GrepPcS_S_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6d_GrepPcS_S_ii ; -- Begin function _Z6d_GrepPcS_S_ii .globl _Z6d_GrepPcS_S_ii .p2align 8 .type _Z6d_GrepPcS_S_ii,@function _Z6d_GrepPcS_S_ii: ; @_Z6d_GrepPcS_S_ii ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x2c s_load_...
a23fd67e9a0d8503ec8e408efa2115fae485f743
#include <stdio.h> #include <stdlib.h> #include <string> #include <curand.h> #include <curand_kernel.h> #define ull unsigned long long #define ld long double #define GTX_1060_BLOCKS 1280 #define WARP_SIZE 32 // количество потоков в блоке /** * Запуск по всем блокам. После выполнения функции в per_blocks_sum лежат ...
.file "tmpxft_002a2898_00000000-6_monteCarloPi.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3242: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3242: .size _ZL26__c...
code for sm_89 Function : _Z6kernelPyy .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 <string> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #define ull unsigned long long #define ld long double #define GTX_1060_BLOCKS 1280 #define WARP_SIZE 32 // количество потоков в блоке /** * Запуск по всем блокам. ...
.text .file "monteCarloPi.hip" .globl _Z21__device_stub__kernelPyy # -- Begin function _Z21__device_stub__kernelPyy .type _Z21__device_stub__kernelPyy,@function _Z21__device_stub__kernelPyy: # @_Z21__device_stub__kernelPyy .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_d...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPyy ; -- Begin function _Z6kernelPyy .globl _Z6kernelPyy .p2align 8 .type _Z6kernelPyy,@function _Z6kernelPyy: ; @_Z6kernelPyy ; %bb.0: s_load_b64 s[0:1], s[0:1], 0x4 s_load_b32 s6, s[2:3], 0x1c s_mov_b32...
871e603ccea26bd64f1350790e1f04fcf145c0eb
#include <stdio.h> #include <stdlib.h> __device__ int d_value; __global__ void test_Kernel() { int threadID = threadIdx.x; d_value = 1; printf("threadID %-3d d_value%3d\n",threadID,d_value); } int main() { int h_value = 0; test_Kernel<<<1,2>>>(); cudaMemcpyFromSymbol(&h_value,d_value, sizeof(int),0,cudaMemcpyD...
.file "tmpxft_003482c3_00000000-6_deviceVariable.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 : _Z11test_Kernelv .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> __device__ int d_value; __global__ void test_Kernel() { int threadID = threadIdx.x; d_value = 1; printf("threadID %-3d d_value%3d\n",threadID,d_value); } int main() { int h_value = 0; test_Kernel<<<1,2>>>(); hipMemcpyFromSymbol(&h_value,HIP_SYM...
.text .file "deviceVariable.hip" .globl _Z26__device_stub__test_Kernelv # -- Begin function _Z26__device_stub__test_Kernelv .type _Z26__device_stub__test_Kernelv,@function _Z26__device_stub__test_Kernelv: # @_Z26__device_stub__test_Kernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11test_Kernelv ; -- Begin function _Z11test_Kernelv .globl _Z11test_Kernelv .p2align 8 .type _Z11test_Kernelv,@function _Z11test_Kernelv: ; @_Z11test_Kernelv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b32 v2...
19b73f51a8be8c486fa5d6ad83c8adbf7b29cc74
#include "includes.h" __global__ void Subtract(float *d_Result, float *d_Data1, float *d_Data2, int width, int pitch, int height) { const int x = blockIdx.x*SUBTRACT_W + threadIdx.x; const int y = blockIdx.y*SUBTRACT_H + threadIdx.y; int p = y*pitch + x; if (x<width && y<height) d_Result[p] = d_Data1[p] - d_Data2[p]; _...
.file "tmpxft_002a77e8_00000000-6_Subtract.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaU...
code for sm_89 Function : _Z8SubtractPfS_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 "includes.h" __global__ void Subtract(float *d_Result, float *d_Data1, float *d_Data2, int width, int pitch, int height) { const int x = blockIdx.x*SUBTRACT_W + threadIdx.x; const int y = blockIdx.y*SUBTRACT_H + threadIdx.y; int p = y*pitch + x; if (x<width && y<height) d_Result[p...
.text .file "Subtract.hip" .globl _Z23__device_stub__SubtractPfS_S_iii # -- Begin function _Z23__device_stub__SubtractPfS_S_iii .type _Z23__device_stub__SubtractPfS_S_iii,@function _Z23__device_stub__SubtractPfS_S_iii: # @_Z23__device_stub__SubtractPfS_S_iii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offs...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8SubtractPfS_S_iii ; -- Begin function _Z8SubtractPfS_S_iii .globl _Z8SubtractPfS_S_iii .p2align 8 .type _Z8SubtractPfS_S_iii,@function _Z8SubtractPfS_S_iii: ; @_Z8SubtractPfS_S_iii ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x18 v_an...
8417d696cdc1cf5435d515d3093e9c8558df4a95
#include <iostream> #include <time.h> #include <string> #include <vector> #include <sstream> #include <cuda_runtime.h> #include <math.h> #include <fstream> // Libreria para leer archivos #include <typeinfo> // for 'typeid' to work #include <tuple> using namespace std; /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
.file "tmpxft_0023a0f9_00000000-6_hitori.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4266: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z16kernelMuerteC_CMPii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <iostream> #include <time.h> #include <string> #include <vector> #include <sstream> #include <hip/hip_runtime.h> #include <math.h> #include <fstream> // Libreria para leer archivos #include <typeinfo> // for 'typeid' to work #include <tuple> using namespace std; /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
.text .file "hitori.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z8tokenizeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcRSt6vectorIS4_SaIS4_EE # --...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14kernelTripletFPiS_i ; -- Begin function _Z14kernelTripletFPiS_i .globl _Z14kernelTripletFPiS_i .p2align 8 .type _Z14kernelTripletFPiS_i,@function _Z14kernelTripletFPiS_i: ; @_Z14kernelTripletFPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s...
55374989d482c077ee14649d568e913916ea20ef
#include <stdio.h> #include <curand.h> #define GRID_SIZE 32 #define BLOCK_SIZE 512 #define NUM_TRY 10000 /** * 乱数に基づいて(x,y)を生成し、円の中に入る確率を計算し、devResultsに格納する。 */ __global__ void compute_pi(float* devResults, float* devRandom){ int idx = blockDim.x * blockIdx.x + threadIdx.x; int step = gridDim.x * blockDim.x * 2...
.file "tmpxft_0030de2a_00000000-6_pi_test.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 : _Z10compute_piPfS_ .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 <hiprand/hiprand.h> #define GRID_SIZE 32 #define BLOCK_SIZE 512 #define NUM_TRY 10000 /** * 乱数に基づいて(x,y)を生成し、円の中に入る確率を計算し、devResultsに格納する。 */ __global__ void compute_pi(float* devResults, float* devRandom){ int idx = blockDim.x * blockIdx.x + threadIdx.x;...
.text .file "pi_test.hip" .globl _Z25__device_stub__compute_piPfS_ # -- Begin function _Z25__device_stub__compute_piPfS_ .type _Z25__device_stub__compute_piPfS_,@function _Z25__device_stub__compute_piPfS_: # @_Z25__device_stub__compute_piPfS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10compute_piPfS_ ; -- Begin function _Z10compute_piPfS_ .globl _Z10compute_piPfS_ .p2align 8 .type _Z10compute_piPfS_,@function _Z10compute_piPfS_: ; @_Z10compute_piPfS_ ; %bb.0: s_clause 0x2 s_load_b32 s4, s[0:1], 0x1c s_l...
9ed6c02c01571b5ac6c7ab0c360ba92789abc92f
#include "includes.h" __global__ void naiveGmem(float *out, float *in, const int nx, const int ny) { // matrix coordinate (ix,iy) unsigned int ix = blockIdx.x * blockDim.x + threadIdx.x; unsigned int iy = blockIdx.y * blockDim.y + threadIdx.y; // transpose with boundary test if (ix < nx && iy < ny) { out[ix * ny + iy]...
.file "tmpxft_003921c8_00000000-6_naiveGmem.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 : _Z9naiveGmemPfS_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 naiveGmem(float *out, float *in, const int nx, const int ny) { // matrix coordinate (ix,iy) unsigned int ix = blockIdx.x * blockDim.x + threadIdx.x; unsigned int iy = blockIdx.y * blockDim.y + threadIdx.y; // transpose with boundary test if (ix < nx &...
.text .file "naiveGmem.hip" .globl _Z24__device_stub__naiveGmemPfS_ii # -- Begin function _Z24__device_stub__naiveGmemPfS_ii .type _Z24__device_stub__naiveGmemPfS_ii,@function _Z24__device_stub__naiveGmemPfS_ii: # @_Z24__device_stub__naiveGmemPfS_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9naiveGmemPfS_ii ; -- Begin function _Z9naiveGmemPfS_ii .globl _Z9naiveGmemPfS_ii .p2align 8 .type _Z9naiveGmemPfS_ii,@function _Z9naiveGmemPfS_ii: ; @_Z9naiveGmemPfS_ii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_l...
0af4e993abd77f97db2f98a0f024e313823c40a8
#include "cuda_runtime.h" namespace gccl { void GCCLSetCudaDevice(int dev_id) { cudaSetDevice(dev_id); } } // namespace gccl
.file "tmpxft_002e5086_00000000-6_common.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__cudaUnr...
code for sm_89
#include "hip/hip_runtime.h" namespace gccl { void GCCLSetCudaDevice(int dev_id) { hipSetDevice(dev_id); } } // namespace gccl
.text .file "common.hip" .globl _ZN4gccl17GCCLSetCudaDeviceEi # -- Begin function _ZN4gccl17GCCLSetCudaDeviceEi .type _ZN4gccl17GCCLSetCudaDeviceEi,@function _ZN4gccl17GCCLSetCudaDeviceEi: # @_ZN4gccl17GCCLSetCudaDeviceEi .cfi_startproc # %bb.0: jmp hipSetDevice # TAILCALL .Lfunc_end...
.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-...
16b1861059aa2745db9fde43a49b7e74ba7466c1
#include "includes.h" __global__ void bcnn_cuda_add_bias_kernel(float *output, float *bias, int num_channels, int spatial_size) { int offset = blockIdx.x * blockDim.x + threadIdx.x; int channel = blockIdx.y; int batch_size = blockIdx.z; if (offset < spatial_size) output[(batch_size * num_channels + channel) * spatial_...
.file "tmpxft_0036a67c_00000000-6_bcnn_cuda_add_bias_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: ....
code for sm_89 Function : _Z25bcnn_cuda_add_bias_kernelPfS_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 bcnn_cuda_add_bias_kernel(float *output, float *bias, int num_channels, int spatial_size) { int offset = blockIdx.x * blockDim.x + threadIdx.x; int channel = blockIdx.y; int batch_size = blockIdx.z; if (offset < spatial_size) output[(batch_size * num_...
.text .file "bcnn_cuda_add_bias_kernel.hip" .globl _Z40__device_stub__bcnn_cuda_add_bias_kernelPfS_ii # -- Begin function _Z40__device_stub__bcnn_cuda_add_bias_kernelPfS_ii .type _Z40__device_stub__bcnn_cuda_add_bias_kernelPfS_ii,@function _Z40__device_stub__bcnn_cuda_add_bias_kernelPfS_ii: # @_Z40__device_stub__bc...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z25bcnn_cuda_add_bias_kernelPfS_ii ; -- Begin function _Z25bcnn_cuda_add_bias_kernelPfS_ii .globl _Z25bcnn_cuda_add_bias_kernelPfS_ii .p2align 8 .type _Z25bcnn_cuda_add_bias_kernelPfS_ii,@function _Z25bcnn_cuda_add_bias_kernelPfS_ii: ; @_Z25bcnn_cud...
f1e8c0a678a7a599be1f3b625905273dffd29a69
#include <stdio.h> // Luis Miguel García Marín __global__ void initWith(float num, float *a, int N) { int index = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; for(int i = index; i < N; i += stride) { a[i] = num; } } __global__ void addVectorsInto(float *result, float *a...
.file "tmpxft_002c957e_00000000-6_01-vector-add-explicit-memory.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...
code for sm_89 Function : _Z14addVectorsIntoPfS_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> // Luis Miguel García Marín __global__ void initWith(float num, float *a, int N) { int index = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; for(int i = index; i < N; i += stride) { a[i] = num; } } __global__ void addVecto...
.text .file "01-vector-add-explicit-memory.hip" .globl _Z23__device_stub__initWithfPfi # -- Begin function _Z23__device_stub__initWithfPfi .type _Z23__device_stub__initWithfPfi,@function _Z23__device_stub__initWithfPfi: # @_Z23__device_stub__initWithfPfi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_off...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8initWithfPfi ; -- Begin function _Z8initWithfPfi .globl _Z8initWithfPfi .p2align 8 .type _Z8initWithfPfi,@function _Z8initWithfPfi: ; @_Z8initWithfPfi ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x24 s_load_b32 s6, ...
26837e8c98cf69c72d64b4fa1b407b5e76c07077
#define CUDA_BLOCK_X 128 #define CUDA_BLOCK_Y 1 #define CUDA_BLOCK_Z 1 __global__ void _auto_kernel_2(int a[5][5],int b[5][5],int i) { int thread_x_id;thread_x_id = blockIdx.x * blockDim.x + threadIdx.x; int thread_y_id;thread_y_id = blockIdx.y * blockDim.y + threadIdx.y; if (thread_x_id && thread_y_id) if ...
.file "tmpxft_0031e8c1_00000000-6_imperf1.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__cudaUn...
code for sm_89 Function : _Z14_auto_kernel_0PA5_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> #define CUDA_BLOCK_X 128 #define CUDA_BLOCK_Y 1 #define CUDA_BLOCK_Z 1 __global__ void _auto_kernel_2(int a[5][5],int b[5][5],int i) { int thread_x_id;thread_x_id = blockIdx.x * blockDim.x + threadIdx.x; int thread_y_id;thread_y_id = blockIdx.y * blockDim.y + threadIdx.y; if (thread...
.text .file "imperf1.hip" .globl _Z29__device_stub___auto_kernel_2PA5_iS0_i # -- Begin function _Z29__device_stub___auto_kernel_2PA5_iS0_i .type _Z29__device_stub___auto_kernel_2PA5_iS0_i,@function _Z29__device_stub___auto_kernel_2PA5_iS0_i: # @_Z29__device_stub___auto_kernel_2PA5_iS0_i .cfi_startproc # %bb.0: pu...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14_auto_kernel_2PA5_iS0_i ; -- Begin function _Z14_auto_kernel_2PA5_iS0_i .globl _Z14_auto_kernel_2PA5_iS0_i .p2align 8 .type _Z14_auto_kernel_2PA5_iS0_i,@function _Z14_auto_kernel_2PA5_iS0_i: ; @_Z14_auto_kernel_2PA5_iS0_i ; %bb.0: s_load...
9abc49265cdd590979e5a0d7202e5b5668b43aa0
#include <cuda.h> #include <stdio.h> __device__ int ceilDiv(int num1,int num2) { int adder = 0; if(num1%num2) adder = 1; return ((int)num1/num2)+adder; } __global__ void reduceVec(int* vecA,int* answer,int size) { int i = threadIdx.x; int halfSize = ceilDiv(size,2); int prevSize = size; while(halfSize>1) {...
.file "tmpxft_0021d2e2_00000000-6_2.reduction_1.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 : _Z9reduceVecPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __device__ int ceilDiv(int num1,int num2) { int adder = 0; if(num1%num2) adder = 1; return ((int)num1/num2)+adder; } __global__ void reduceVec(int* vecA,int* answer,int size) { int i = threadIdx.x; int halfSize = ceilDiv(size,2); int prevSize = size; while(hal...
.text .file "2.reduction_1.hip" .globl _Z24__device_stub__reduceVecPiS_i # -- Begin function _Z24__device_stub__reduceVecPiS_i .type _Z24__device_stub__reduceVecPiS_i,@function _Z24__device_stub__reduceVecPiS_i: # @_Z24__device_stub__reduceVecPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9reduceVecPiS_i ; -- Begin function _Z9reduceVecPiS_i .globl _Z9reduceVecPiS_i .p2align 8 .type _Z9reduceVecPiS_i,@function _Z9reduceVecPiS_i: ; @_Z9reduceVecPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x10 s_load_...
7ffbcdc5b3b77c88cc444c1a8971c7283d244376
//MatrixMult.cu #include <stdio.h> #include <cuda.h> #include <stdlib.h> __global__ void gpu_sort(int *a,int *b,int *c, int N) { int tid = threadIdx.x + blockDim.x * blockIdx.x; int count = 0; int d; for(d=0;d<N;d++) { if(a[d] < a[tid]) { count++; } } c[count] = a[tid]; } int main(int argc, cha...
.file "tmpxft_0028ee0c_00000000-6_RS.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 : _Z8gpu_sortPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
//MatrixMult.cu #include <stdio.h> #include <hip/hip_runtime.h> #include <stdlib.h> __global__ void gpu_sort(int *a,int *b,int *c, int N) { int tid = threadIdx.x + blockDim.x * blockIdx.x; int count = 0; int d; for(d=0;d<N;d++) { if(a[d] < a[tid]) { count++; } } c[count] = a[tid]; } int main(in...
.text .file "RS.hip" .globl _Z23__device_stub__gpu_sortPiS_S_i # -- Begin function _Z23__device_stub__gpu_sortPiS_S_i .type _Z23__device_stub__gpu_sortPiS_S_i,@function _Z23__device_stub__gpu_sortPiS_S_i: # @_Z23__device_stub__gpu_sortPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8gpu_sortPiS_S_i ; -- Begin function _Z8gpu_sortPiS_S_i .globl _Z8gpu_sortPiS_S_i .p2align 8 .type _Z8gpu_sortPiS_S_i,@function _Z8gpu_sortPiS_S_i: ; @_Z8gpu_sortPiS_S_i ; %bb.0: s_load_b32 s2, s[0:1], 0x2c s_waitcnt lgkmcnt...
6c4bea22b867d6f3bb8f3e95a202abebd9e27a27
#include "includes.h" //#define ITEM_COUNT 2 #define _PI 3.14159265358979323846 #define _PI2 1.57079632679489661923 #define _RAD 6372795 using namespace std; cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ void d_cudainit(int *a, int *b) { int i = threadIdx.x; if (i=...
.file "tmpxft_0025bf58_00000000-6_d_cudainit.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 : _Z10d_cudainitPiS_ .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" //#define ITEM_COUNT 2 #define _PI 3.14159265358979323846 #define _PI2 1.57079632679489661923 #define _RAD 6372795 using namespace std; hipError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ void d_cudainit(int *a, int *b) ...
.text .file "d_cudainit.hip" .globl _Z25__device_stub__d_cudainitPiS_ # -- Begin function _Z25__device_stub__d_cudainitPiS_ .type _Z25__device_stub__d_cudainitPiS_,@function _Z25__device_stub__d_cudainitPiS_: # @_Z25__device_stub__d_cudainitPiS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10d_cudainitPiS_ ; -- Begin function _Z10d_cudainitPiS_ .globl _Z10d_cudainitPiS_ .p2align 8 .type _Z10d_cudainitPiS_,@function _Z10d_cudainitPiS_: ; @_Z10d_cudainitPiS_ ; %bb.0: s_mov_b32 s2, exec_lo v_cmpx_eq_u32_e32 1, v0...
f6f1fbe4741d4a89e7a48a933f53a2d8a4c24258
#include <stdio.h> #include <cuda_runtime.h> __global__ void hello_world_from_gpu(void) { printf("Hello World from GPU\n"); return; } int main(void) { printf("Hello World from CPU\n"); hello_world_from_gpu <<<1, 1>>> (); cudaDeviceReset(); return 0; }
.file "tmpxft_0021ed1a_00000000-6_hello_world_from_gpu.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 ...
code for sm_89 Function : _Z20hello_world_from_gpuv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <stdio.h> #include <hip/hip_runtime.h> __global__ void hello_world_from_gpu(void) { printf("Hello World from GPU\n"); return; } int main(void) { printf("Hello World from CPU\n"); hello_world_from_gpu <<<1, 1>>> (); hipDeviceReset(); return 0; }
.text .file "hello_world_from_gpu.hip" .globl _Z35__device_stub__hello_world_from_gpuv # -- Begin function _Z35__device_stub__hello_world_from_gpuv .type _Z35__device_stub__hello_world_from_gpuv,@function _Z35__device_stub__hello_world_from_gpuv: # @_Z35__device_stub__hello_world_from_gpuv .cfi_startproc # %bb.0: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20hello_world_from_gpuv ; -- Begin function _Z20hello_world_from_gpuv .globl _Z20hello_world_from_gpuv .p2align 8 .type _Z20hello_world_from_gpuv,@function _Z20hello_world_from_gpuv: ; @_Z20hello_world_from_gpuv ; %bb.0: s_load_b64 s[2:3...
e7f7fcdd90ecc2a7e5eba0d185e9aa552fe4cb20
#include<stdlib.h> #include<stdio.h> #include<time.h> #define n 1024 #define block_size 32 /* __global__ void mult_mat(int *a, int *b, int *c) { int blockRow = blockIdx.y, blockCol = blockIdx.x; int row = threadIdx.y, col = threadIdx.x; for (int m = 0; m < (n/block_size); ++m) { } } */ __global__ void mul_ma...
.file "tmpxft_0036be5b_00000000-6_p2.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 : _Z7mul_matPiS_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<stdlib.h> #include<stdio.h> #include<time.h> #define n 1024 #define block_size 32 /* __global__ void mult_mat(int *a, int *b, int *c) { int blockRow = blockIdx.y, blockCol = blockIdx.x; int row = threadIdx.y, col = threadIdx.x; for (int m = 0; m < (n/block_size); ++m) { ...
.text .file "p2.hip" .globl _Z22__device_stub__mul_matPiS_S_ # -- Begin function _Z22__device_stub__mul_matPiS_S_ .type _Z22__device_stub__mul_matPiS_S_,@function _Z22__device_stub__mul_matPiS_S_: # @_Z22__device_stub__mul_matPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7mul_matPiS_S_ ; -- Begin function _Z7mul_matPiS_S_ .globl _Z7mul_matPiS_S_ .p2align 8 .type _Z7mul_matPiS_S_,@function _Z7mul_matPiS_S_: ; @_Z7mul_matPiS_S_ ; %bb.0: s_load_b32 s3, s[0:1], 0x24 v_dual_mov_b32 v2, 0 :: v...
27c5a83b1f65787d842227b6c2f728bb3a2d7c66
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <cuda_runtime.h> #define MAX_ARRAY_SIZE 1000000 /* * Check GPU device */ void check_dev(void) { int deviceCount; cudaGetDeviceCount(&deviceCount); if (deviceCount == 0) { printf("!! Error: no devices supporting CUDA.\n"); ...
.file "tmpxft_0023f8ea_00000000-6_q2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2040: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2040: .size _ZL26__cudaUnregis...
code for sm_89 Function : _Z20shmem_counter_kernelPiS_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 <stdlib.h> #include <math.h> #include <hip/hip_runtime.h> #define MAX_ARRAY_SIZE 1000000 /* * Check GPU device */ void check_dev(void) { int deviceCount; hipGetDeviceCount(&deviceCount); if (deviceCount == 0) { printf("!! Error: no devices supporting CUDA.\n"); ...
.text .file "q2.hip" .globl _Z9check_devv # -- Begin function _Z9check_devv .type _Z9check_devv,@function _Z9check_devv: # @_Z9check_devv .cfi_startproc # %bb.0: pushq %rbx .cfi_def_cfa_offset 16 subq $16, %rsp .cfi_def_cfa_offset 32 .cfi_offset %rbx, -16 leaq 12(%r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16prefix_scan_stepPiS_ii ; -- Begin function _Z16prefix_scan_stepPiS_ii .globl _Z16prefix_scan_stepPiS_ii .p2align 8 .type _Z16prefix_scan_stepPiS_ii,@function _Z16prefix_scan_stepPiS_ii: ; @_Z16prefix_scan_stepPiS_ii ; %bb.0: s_clause 0x...
b32fe8bc0727c5986ce33fb8db90e3a4bd96306d
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define LSIZE 31 #define MIN_LIM 12.0 #define MAX_LIM 30.0 void check_input(int argc,char* argv[]); __global__ void examine(float *d_coordinates,int *d_coords_within,int d_lines); long calc_lines(char *filename); int main(int argc,char * ar...
.file "tmpxft_00290bd8_00000000-6_examine.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 : _Z7examinePfPii .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 <string.h> #include <math.h> #define LSIZE 31 #define MIN_LIM 12.0 #define MAX_LIM 30.0 void check_input(int argc,char* argv[]); __global__ void examine(float *d_coordinates,int *d_coords_within,int d_lines); long calc_lines(char *filename)...
.text .file "examine.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function main .LCPI0_0: .long 0x447a0000 # float 1000 .LCPI0_1: .long 0x3f800000 # float 1 .text .globl main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7examinePfPii ; -- Begin function _Z7examinePfPii .globl _Z7examinePfPii .p2align 8 .type _Z7examinePfPii,@function _Z7examinePfPii: ; @_Z7examinePfPii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b32 s3, ...
231a2f8250384c9ec9f0e7fa7ac4ab860f29fa7b
/********************************************************************* * * © (or copyright) 2020. Triad National Security, LLC. * All rights reserved. * This program was produced under U.S. Government contract * 89233218CNA000001 for Los AlamosNational Laboratory (LANL), * which is operated by Triad National Sec...
.file "tmpxft_00216605_00000000-6_rolling_map.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 : _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_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 */ ...
/********************************************************************* * * © (or copyright) 2020. Triad National Security, LLC. * All rights reserved. * This program was produced under U.S. Government contract * 89233218CNA000001 for Los AlamosNational Laboratory (LANL), * which is operated by Triad National Sec...
.text .file "rolling_map.hip" .globl _Z18__device_stub__crsPfPiiiS_S0_S_S0_S0_S0_S0_f # -- Begin function _Z18__device_stub__crsPfPiiiS_S0_S_S0_S0_S0_S0_f .type _Z18__device_stub__crsPfPiiiS_S0_S_S0_S0_S0_S0_f,@function _Z18__device_stub__crsPfPiiiS_S0_S_S0_S0_S0_S0_f: # @_Z18__device_stub__crsPfPiiiS_S0_S_S0_S0_S0...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_f ; -- Begin function _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_f .globl _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_f .p2align 8 .type _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_f,@function _Z3crsPfPiiiS_S0_S_S0_S0_S0_S0_f: ; @_Z3crsPfPiiiS_S0_S_S0_S0...
4915102ffb3393d1621e3f5a2773178ad745cd20
#include "includes.h" /*numCirs: num of total circles */ __global__ void kernelCompact(float* devSrc, float* devDst, unsigned int* devPredicate, unsigned int* devPos, int numCirs, int offset) { int idx = blockDim.x * blockIdx.x + threadIdx.x; //index of the circles if (idx >= numCirs) { return; } unsigned int isIn =...
.file "tmpxft_00239110_00000000-6_kernelCompact.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 : _Z13kernelCompactPfS_PjS0_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" /*numCirs: num of total circles */ __global__ void kernelCompact(float* devSrc, float* devDst, unsigned int* devPredicate, unsigned int* devPos, int numCirs, int offset) { int idx = blockDim.x * blockIdx.x + threadIdx.x; //index of the circles if (idx >= numCirs) { ...
.text .file "kernelCompact.hip" .globl _Z28__device_stub__kernelCompactPfS_PjS0_ii # -- Begin function _Z28__device_stub__kernelCompactPfS_PjS0_ii .type _Z28__device_stub__kernelCompactPfS_PjS0_ii,@function _Z28__device_stub__kernelCompactPfS_PjS0_ii: # @_Z28__device_stub__kernelCompactPfS_PjS0_ii .cfi_startproc #...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13kernelCompactPfS_PjS0_ii ; -- Begin function _Z13kernelCompactPfS_PjS0_ii .globl _Z13kernelCompactPfS_PjS0_ii .p2align 8 .type _Z13kernelCompactPfS_PjS0_ii,@function _Z13kernelCompactPfS_PjS0_ii: ; @_Z13kernelCompactPfS_PjS0_ii ; %bb.0: s...
a167732505e5c7f75269c89f1d577e824ab59690
#include <iostream> #include <cuda.h> #include <cuda_runtime.h> using namespace std; __global__ void func(int *dev_arr1, int *dev_arr2, int *dev_dot){ __shared__ int temp[3]; int index = threadIdx.x; if (index < 3){ temp[index] = dev_arr1[index] * dev_arr2[index]; } __syncthreads(); if (index == 0){ ...
.file "tmpxft_002ce5ff_00000000-6_dot_product.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 : _Z4funcPiS_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 <iostream> #include <hip/hip_runtime.h> using namespace std; __global__ void func(int *dev_arr1, int *dev_arr2, int *dev_dot){ __shared__ int temp[3]; int index = threadIdx.x; if (index < 3){ temp[index] = dev_arr1[index] * dev_arr2[index]; } __syncthreads(); if (index == 0){ *dev_dot = ...
.text .file "dot_product.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z19__device_stub__funcPiS_S_ # -- Begin function _Z19__device_stub__funcPiS_S_ .type...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4funcPiS_S_ ; -- Begin function _Z4funcPiS_S_ .globl _Z4funcPiS_S_ .p2align 8 .type _Z4funcPiS_S_,@function _Z4funcPiS_S_: ; @_Z4funcPiS_S_ ; %bb.0: s_clause 0x1 s_load_b128 s[4:7], s[0:1], 0x0 s_load_b64 s[0:1], ...
3ac6fcda3d557a2e7a2bf71b7eb61ac0a16c7dfa
#include <stdio.h> #include <stdlib.h> #include <algorithm> // Change the code here: // This should be changed to GPU kernel definition void dot(int numElements, const float3* a, const float3* b, float* c) { for (int i = 0; i < numElements; i++) { c[i] = a[i].x*b[i].x + a[i].y*b[i].y + a[i].z*b[i].z; ...
.file "tmpxft_0038298a_00000000-6_vector_dot_product_gpu.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2312: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2312: .siz...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> // Change the code here: // This should be changed to GPU kernel definition void dot(int numElements, const float3* a, const float3* b, float* c) { for (int i = 0; i < numElements; i++) { c[i] = a[i].x*b[i].x + a[...
.text .file "vector_dot_product_gpu.hip" .globl _Z3dotiPK15HIP_vector_typeIfLj3EES2_Pf # -- Begin function _Z3dotiPK15HIP_vector_typeIfLj3EES2_Pf .type _Z3dotiPK15HIP_vector_typeIfLj3EES2_Pf,@function _Z3dotiPK15HIP_vector_typeIfLj3EES2_Pf: # @_Z3dotiPK15HIP_vector_typeIfLj3EES2_Pf .cfi_startproc # %bb.0: testl %...
.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-...
717ce897b07fb97cb63fd08eae95fe9064ef0511
#include <assert.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> /*! * \brief calculate normalized frequency matrix * * Normalized value(x) = \f$ \frac{ X - min }{ max - min }\f$ * \return normalized matrix * */ int normalize( int *in_mat, /*!< [in] input matrix *...
.file "tmpxft_00269872_00000000-6_naiveOperations.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2044: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2044: .size _ZL26...
code for sm_89
#include <hip/hip_runtime.h> #include <assert.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> /*! * \brief calculate normalized frequency matrix * * Normalized value(x) = \f$ \frac{ X - min }{ max - min }\f$ * \return normalized matrix * */ int normalize( int *in_mat...
.text .file "naiveOperations.hip" .globl _Z9normalizePiPfii # -- Begin function _Z9normalizePiPfii .type _Z9normalizePiPfii,@function _Z9normalizePiPfii: # @_Z9normalizePiPfii .cfi_startproc # %bb.0: testl %edx, %edx jle .LBB0_10 # %bb.1: # %.prehea...
.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-...
875918d7147c7781941a13f0beb2bdcaab2b2b10
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> static __device__ __forceinline__ unsigned int bfind32_cuda(unsigned int x) { unsigned int ret; asm volatile("bfind.u32 %0, %1;" : "=r"(ret) : "r"(x)); return 31 - ret; } __device__ __host__ unsigned int nlz32_IEEE(unsigned int x...
.file "tmpxft_00303219_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z8prefscanPii .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> static __device__ __forceinline__ unsigned int bfind32_cuda(unsigned int x) { unsigned int ret; asm volatile("bfind.u32 %0, %1;" : "=r"(ret) : "r"(x)); return 31 - ret; } __device__ __host__ unsigned int nlz32_IEEE(unsigned int x) { /* Hacker's Delight 2nd by H....
.text .file "main.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z10nlz32_IEEEj .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .text .globl _Z10nlz32_IEEEj .type _Z10nlz32_IEEEj,@function _Z10nlz32_IEEEj: # @_Z10nlz3...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8prefscanPii ; -- Begin function _Z8prefscanPii .globl _Z8prefscanPii .p2align 8 .type _Z8prefscanPii,@function _Z8prefscanPii: ; @_Z8prefscanPii ; %bb.0: s_load_b32 s2, s[0:1], 0x8 s_mov_b32 s3, exec_lo s_waitcnt l...
a7dc46d508fa1772d377b3e96582a4901701e53a
#include <thrust/scan.h> #include <thrust/device_vector.h> #include <thrust/count.h> #include <thrust/functional.h> #include <iostream> #include <iomanip> struct not_zero{ __host__ __device__ bool operator()(const float a) { return a != 0; } }; int main() { thrust::device_vector<int> V(10, 0); V[0] = 1; V...
.file "tmpxft_002229ad_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type nvtxDomainRangePop, @function nvtxDomainRangePop: .LFB6192: .cfi_startproc movq 424+nvtxGlobals_v3(%rip), %rax testq %rax, %rax je .L2 jmp *%rax .L2: movl $-2, %eax ret .cfi_endproc .LFE6192: ...
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/scan.h> #include <thrust/device_vector.h> #include <thrust/count.h> #include <thrust/functional.h> #include <iostream> #include <iomanip> struct not_zero{ __host__ __device__ bool operator()(const float a) { return a != 0; } }; int main() { thrust::device_vecto...
.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...
535c5f47e2b2df9e84248b00c080a093e9d18ba7
/* Two Dimensional (2D) Image Convolution : A Basic Approch Image Convolution is a very basic operation in the field of Image Processing. It is required in many algorithms in Image Processing. Also it is very compute intensive task as it involves operation with pixels. Its a transformation which involves a Mask and a...
.file "tmpxft_002950de_00000000-6_2D_conv_basic.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
/* Two Dimensional (2D) Image Convolution : A Basic Approch Image Convolution is a very basic operation in the field of Image Processing. It is required in many algorithms in Image Processing. Also it is very compute intensive task as it involves operation with pixels. Its a transformation which involves a Mask and a...
.text .file "2D_conv_basic.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r13 .cfi_...
.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-...
29dca0dbec594f83c95a27c6f47e22f2d4f8b4f8
#include<stdio.h> #include<stdlib.h> __global__ void matadd(int *d_a,int *d_b,int *d_c, int n){ int idx=threadIdx.x; if(idx<n) d_c[idx]=d_a[idx]+d_b[idx]; } int main(){ int n; scanf("%d",&n); cudaEvent_t start,stop; float escap_time; cudaEventCreate(&start); cudaEventCreate(&stop); cudaEventRecord(start,0); ...
.file "tmpxft_0039653d_00000000-6_zero_cpy_bhanu.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 : _Z6mataddPiS_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> __global__ void matadd(int *d_a,int *d_b,int *d_c, int n){ int idx=threadIdx.x; if(idx<n) d_c[idx]=d_a[idx]+d_b[idx]; } int main(){ int n; scanf("%d",&n); hipEvent_t start,stop; float escap_time; hipEventCreate(&start); hipEventCreate(&stop); hi...
.text .file "zero_cpy_bhanu.hip" .globl _Z21__device_stub__mataddPiS_S_i # -- Begin function _Z21__device_stub__mataddPiS_S_i .type _Z21__device_stub__mataddPiS_S_i,@function _Z21__device_stub__mataddPiS_S_i: # @_Z21__device_stub__mataddPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6mataddPiS_S_i ; -- Begin function _Z6mataddPiS_S_i .globl _Z6mataddPiS_S_i .p2align 8 .type _Z6mataddPiS_S_i,@function _Z6mataddPiS_S_i: ; @_Z6mataddPiS_S_i ; %bb.0: s_load_b32 s2, s[0:1], 0x18 s_waitcnt lgkmcnt(0) v_c...
d038bbe74a13f351a6874530284ac7cf5a545ae7
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include<stdio.h> #include<iostream> #include<stdlib.h> #include<getopt.h> #include <assert.h> #include <cuda.h> #include <chrono> #define RAND_RANGE_MIN -10.0 #define RAND_RANGE_MAX 10.0 #define SEED 123 #define JACOBI_DEBUG 0 enum ERROR_TYPE { MEMCPY,...
.file "tmpxft_002abee2_00000000-6_jacobi_cuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3754: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .c...
code for sm_89 Function : _Z9iterationPfS_S_S_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include "hip/hip_runtime.h" #include<stdio.h> #include<iostream> #include<stdlib.h> #include<getopt.h> #include <assert.h> #include <chrono> #define RAND_RANGE_MIN -10.0 #define RAND_RANGE_MAX 10.0 #define SEED 123 #define JACOBI_DEBUG 0 enum ERROR_TYPE { MEMCPY, CMALLOC, ADDK, DEVSYNC }; void init_const(float* ...
.text .file "jacobi_cuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z10init_constPffi # -- Begin function _Z10init_constPffi .type _Z10init_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9iterationPfS_S_S_j ; -- Begin function _Z9iterationPfS_S_S_j .globl _Z9iterationPfS_S_S_j .p2align 8 .type _Z9iterationPfS_S_S_j,@function _Z9iterationPfS_S_S_j: ; @_Z9iterationPfS_S_S_j ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
f0b6f442cedda3432c2f9e635fbfda434cb85cf1
#include<iostream> #include<cuda.h> #include<cuda_runtime.h> #define N 10 using namespace std; __global__ void mul(int* a_d, int n){ // printf("%d %d %d\n", blockIdx.x,blockDim.x,threadIdx.x); int index = blockIdx.x * blockDim.x + threadIdx.x; if(index < n){ a_d[index] *= 5; } } int main(){ cudaEvent_t start...
.file "tmpxft_00354336_00000000-6_mul_by_five.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 : _Z3mulPii .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<iostream> #include<hip/hip_runtime.h> #define N 10 using namespace std; __global__ void mul(int* a_d, int n){ // printf("%d %d %d\n", blockIdx.x,blockDim.x,threadIdx.x); int index = blockIdx.x * blockDim.x + threadIdx.x; if(index < n){ a_d[index] *= 5; } } int main(){ hipEvent_t start, stop; hi...
.text .file "mul_by_five.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__mulPii # -- Begin function _Z18__device_stub__mulPii .type _Z1...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3mulPii ; -- Begin function _Z3mulPii .globl _Z3mulPii .p2align 8 .type _Z3mulPii,@function _Z3mulPii: ; @_Z3mulPii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x1c s_load_b32 s3, s[0:1], 0x8 s_waitcnt l...
f924c86a75e5efbf11fad84b01aaf2f705ba3d9c
/* * Copyright (c) 2021-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
.file "tmpxft_002b7ac3_00000000-6_static.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__cudaUnr...
code for sm_89 Function : _Z19example_cuda_kernelRiii .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> /* * Copyright (c) 2021-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
.text .file "static.hip" .globl _Z21static_launch_kernelBii # -- Begin function _Z21static_launch_kernelBii .type _Z21static_launch_kernelBii,@function _Z21static_launch_kernelBii: # @_Z21static_launch_kernelBii .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZL19example_cuda_kernelRiii,"axG",@progbits,_ZL19example_cuda_kernelRiii,comdat .globl _ZL19example_cuda_kernelRiii ; -- Begin function _ZL19example_cuda_kernelRiii .p2align 8 .type _ZL19example_cuda_kernelRiii,@function _ZL19example_cuda_kernel...
176415d0a878c7474b7dbc732d978e18d1c87a24
#include <algorithm> #include <iostream> #include <vector> #include <time.h> typedef unsigned long long data_t; static inline void check(cudaError_t err, const char* context) { if (err != cudaSuccess) { std::cerr << "CUDA error: " << context << ": " << cudaGetErrorString(err) << std::endl; ...
.file "tmpxft_003ba5ae_00000000-6_so_better_scan.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4259: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z10mergeblockPjij .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <algorithm> #include <iostream> #include <vector> #include <time.h> typedef unsigned long long data_t; static inline void check(hipError_t err, const char* context) { if (err != hipSuccess) { std::cerr << "CUDA error: " << context << ": " << hipGetError...
.text .file "so_better_scan.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z22__device_stub__getMaskPyPjijyj # -- Begin function _Z22__device_stub__getMaskPyPj...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7getMaskPyPjijyj ; -- Begin function _Z7getMaskPyPjijyj .globl _Z7getMaskPyPjijyj .p2align 8 .type _Z7getMaskPyPjijyj,@function _Z7getMaskPyPjijyj: ; @_Z7getMaskPyPjijyj ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x34 s_l...