-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotproduct_35.ptx
173 lines (146 loc) · 4.2 KB
/
dotproduct_35.ptx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-19856038
// Cuda compilation tools, release 7.5, V7.5.17
// Based on LLVM 3.4svn
//
.version 4.3
.target sm_35
.address_size 64
// .weak cudaMalloc
.weak .func (.param .b32 func_retval0) cudaMalloc(
.param .b64 cudaMalloc_param_0,
.param .b64 cudaMalloc_param_1
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .weak cudaFuncGetAttributes
.weak .func (.param .b32 func_retval0) cudaFuncGetAttributes(
.param .b64 cudaFuncGetAttributes_param_0,
.param .b64 cudaFuncGetAttributes_param_1
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .weak cudaDeviceGetAttribute
.weak .func (.param .b32 func_retval0) cudaDeviceGetAttribute(
.param .b64 cudaDeviceGetAttribute_param_0,
.param .b32 cudaDeviceGetAttribute_param_1,
.param .b32 cudaDeviceGetAttribute_param_2
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .weak cudaGetDevice
.weak .func (.param .b32 func_retval0) cudaGetDevice(
.param .b64 cudaGetDevice_param_0
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .weak cudaOccupancyMaxActiveBlocksPerMultiprocessor
.weak .func (.param .b32 func_retval0) cudaOccupancyMaxActiveBlocksPerMultiprocessor(
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_0,
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_1,
.param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_2,
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_3
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .weak cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
.weak .func (.param .b32 func_retval0) cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_0,
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_1,
.param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_2,
.param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_3,
.param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_4
)
{
.reg .b32 %r<2>;
mov.u32 %r1, 30;
st.param.b32 [func_retval0+0], %r1;
ret;
}
// .globl dotproduct
.visible .entry dotproduct(
.param .u64 dotproduct_param_0,
.param .f32 dotproduct_param_1,
.param .u64 dotproduct_param_2,
.param .u64 dotproduct_param_3,
.param .u64 dotproduct_param_4,
.param .u64 dotproduct_param_5,
.param .u64 dotproduct_param_6,
.param .u64 dotproduct_param_7,
.param .u32 dotproduct_param_8
)
{
.reg .pred %p<2>;
.reg .f32 %f<13>;
.reg .b32 %r<9>;
.reg .b64 %rd<23>;
ld.param.u64 %rd1, [dotproduct_param_0];
ld.param.f32 %f1, [dotproduct_param_1];
ld.param.u64 %rd2, [dotproduct_param_2];
ld.param.u64 %rd3, [dotproduct_param_3];
ld.param.u64 %rd4, [dotproduct_param_4];
ld.param.u64 %rd5, [dotproduct_param_5];
ld.param.u64 %rd6, [dotproduct_param_6];
ld.param.u64 %rd7, [dotproduct_param_7];
ld.param.u32 %r2, [dotproduct_param_8];
mov.u32 %r3, %ctaid.y;
mov.u32 %r4, %nctaid.x;
mov.u32 %r5, %ctaid.x;
mad.lo.s32 %r6, %r4, %r3, %r5;
mov.u32 %r7, %ntid.x;
mov.u32 %r8, %tid.x;
mad.lo.s32 %r1, %r6, %r7, %r8;
setp.ge.s32 %p1, %r1, %r2;
@%p1 bra BB6_2;
cvta.to.global.u64 %rd8, %rd2;
mul.wide.s32 %rd9, %r1, 4;
add.s64 %rd10, %rd8, %rd9;
cvta.to.global.u64 %rd11, %rd3;
add.s64 %rd12, %rd11, %rd9;
cvta.to.global.u64 %rd13, %rd4;
add.s64 %rd14, %rd13, %rd9;
cvta.to.global.u64 %rd15, %rd5;
add.s64 %rd16, %rd15, %rd9;
cvta.to.global.u64 %rd17, %rd6;
add.s64 %rd18, %rd17, %rd9;
cvta.to.global.u64 %rd19, %rd7;
add.s64 %rd20, %rd19, %rd9;
ld.global.nc.f32 %f2, [%rd16];
ld.global.nc.f32 %f3, [%rd10];
ld.global.nc.f32 %f4, [%rd18];
ld.global.nc.f32 %f5, [%rd12];
mul.f32 %f6, %f5, %f4;
fma.rn.f32 %f7, %f3, %f2, %f6;
ld.global.nc.f32 %f8, [%rd20];
ld.global.nc.f32 %f9, [%rd14];
fma.rn.f32 %f10, %f9, %f8, %f7;
cvta.to.global.u64 %rd21, %rd1;
add.s64 %rd22, %rd21, %rd9;
ld.global.f32 %f11, [%rd22];
fma.rn.f32 %f12, %f10, %f1, %f11;
st.global.f32 [%rd22], %f12;
BB6_2:
ret;
}