-
Notifications
You must be signed in to change notification settings - Fork 0
/
crop_50.ptx
175 lines (148 loc) · 4.05 KB
/
crop_50.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
172
173
//
// 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_50
.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 crop
.visible .entry crop(
.param .u64 crop_param_0,
.param .u32 crop_param_1,
.param .u32 crop_param_2,
.param .u32 crop_param_3,
.param .u64 crop_param_4,
.param .u32 crop_param_5,
.param .u32 crop_param_6,
.param .u32 crop_param_7,
.param .u32 crop_param_8,
.param .u32 crop_param_9,
.param .u32 crop_param_10
)
{
.reg .pred %p<6>;
.reg .f32 %f<2>;
.reg .b32 %r<28>;
.reg .b64 %rd<9>;
ld.param.u64 %rd1, [crop_param_0];
ld.param.u32 %r4, [crop_param_1];
ld.param.u32 %r5, [crop_param_2];
ld.param.u32 %r11, [crop_param_3];
ld.param.u64 %rd2, [crop_param_4];
ld.param.u32 %r6, [crop_param_5];
ld.param.u32 %r7, [crop_param_6];
ld.param.u32 %r8, [crop_param_8];
ld.param.u32 %r9, [crop_param_9];
ld.param.u32 %r10, [crop_param_10];
mov.u32 %r12, %ctaid.x;
mov.u32 %r13, %ntid.x;
mov.u32 %r14, %tid.x;
mad.lo.s32 %r1, %r13, %r12, %r14;
mov.u32 %r15, %ntid.y;
mov.u32 %r16, %ctaid.y;
mov.u32 %r17, %tid.y;
mad.lo.s32 %r2, %r15, %r16, %r17;
mov.u32 %r18, %ntid.z;
mov.u32 %r19, %ctaid.z;
mov.u32 %r20, %tid.z;
mad.lo.s32 %r3, %r18, %r19, %r20;
setp.lt.s32 %p1, %r1, %r4;
setp.lt.s32 %p2, %r2, %r5;
and.pred %p3, %p1, %p2;
setp.lt.s32 %p4, %r3, %r11;
and.pred %p5, %p3, %p4;
@!%p5 bra BB6_2;
bra.uni BB6_1;
BB6_1:
cvta.to.global.u64 %rd3, %rd2;
add.s32 %r21, %r3, %r10;
add.s32 %r22, %r2, %r9;
mad.lo.s32 %r23, %r21, %r7, %r22;
add.s32 %r24, %r1, %r8;
mad.lo.s32 %r25, %r23, %r6, %r24;
mul.wide.s32 %rd4, %r25, 4;
add.s64 %rd5, %rd3, %rd4;
ld.global.nc.f32 %f1, [%rd5];
mad.lo.s32 %r26, %r3, %r5, %r2;
mad.lo.s32 %r27, %r26, %r4, %r1;
cvta.to.global.u64 %rd6, %rd1;
mul.wide.s32 %rd7, %r27, 4;
add.s64 %rd8, %rd6, %rd7;
st.global.f32 [%rd8], %f1;
BB6_2:
ret;
}