SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip

Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048


[ROCm/hip commit: 090b2829b9]
This commit is contained in:
Julia Jiang
2021-02-04 16:22:01 -05:00
parent 138ac37a70
commit ef396373ec
12 changed files with 23 additions and 57 deletions
-5
View File
@@ -24,10 +24,6 @@ cat >$tmp/hip_macros.h <<EOF
#define __launch_bounds__(...) \
select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__)
// Macro to replace extern __shared__ declarations
// to local variable definitions
#define HIP_DYNAMIC_SHARED(type, var) \
type* var = (type*)__amdgcn_get_dynamicgroupbaseptr();
EOF
cat >$tmp/hip_pch.h <<EOF
@@ -35,7 +31,6 @@ cat >$tmp/hip_pch.h <<EOF
#include "hip/hip_fp16.h"
EOF
cat >$tmp/hip_pch.mcin <<EOF
.type __hip_pch,@object
.section .hip_pch,"aMS",@progbits,1
-8
View File
@@ -1863,14 +1863,6 @@ sub simpleSubstitutions {
$ft{'define'} += s/\bcudaTextureTypeCubemapLayered\b/hipTextureTypeCubemapLayered/g;
}
# CUDA extern __shared__ syntax replace with HIP_DYNAMIC_SHARED() macro
sub transformExternShared {
no warnings qw/uninitialized/;
my $k = 0;
$k += s/extern\s+([\w\(\)]+)?\s*__shared__\s+([\w:<>\s]+)\s+(\w+)\s*\[\s*\]\s*;/HIP_DYNAMIC_SHARED($1 $2, $3)/g;
$ft{'extern_shared'} += $k;
}
# CUDA Kernel Launch Syntax
sub transformKernelLaunch {
no warnings qw/uninitialized/;