Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
89f5d30a
Commit
89f5d30a
authored
Nov 23, 2023
by
muozturk
Browse files
fp32 verification error is fixed
parent
419e41c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
example/64_complex_contraction/complex_contraction_bilinear_xdl_fp32.cpp
...lex_contraction/complex_contraction_bilinear_xdl_fp32.cpp
+8
-5
No files found.
example/64_complex_contraction/complex_contraction_bilinear_xdl_fp32.cpp
View file @
89f5d30a
...
@@ -224,12 +224,9 @@ int main(int argc, char* argv[])
...
@@ -224,12 +224,9 @@ int main(int argc, char* argv[])
DeviceMem
e_device_buf_img
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_img
.
mDesc
.
GetElementSpaceSize
());
DeviceMem
e_device_buf_img
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_img
.
mDesc
.
GetElementSpaceSize
());
// Intermediate Value For E Real and Img
// Intermediate Value For E Real and Img
// LookAtHere
DeviceMem
e_device_buf_re1
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_re
.
mDesc
.
GetElementSpaceSize
());
DeviceMem
e_device_buf_re1
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_re
.
mDesc
.
GetElementSpaceSize
());
// DeviceMem e_device_buf_re2(sizeof(EDataType) * e_ms_ns_device_result.mDesc.GetElementSpaceSize());
DeviceMem
e_device_buf_img1
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_img
.
mDesc
.
GetElementSpaceSize
());
DeviceMem
e_device_buf_img1
(
sizeof
(
EDataType
)
*
e_ms_ns_device_result_img
.
mDesc
.
GetElementSpaceSize
());
// DeviceMem e_device_buf_img2(sizeof(EDataType) * e_ms_ns_device_result.mDesc.GetElementSpaceSize());
// LookAtHere
a_device_buf_re
.
ToDevice
(
a_ms_ks_re
.
mData
.
data
());
a_device_buf_re
.
ToDevice
(
a_ms_ks_re
.
mData
.
data
());
b_device_buf_re
.
ToDevice
(
b_ns_ks_re
.
mData
.
data
());
b_device_buf_re
.
ToDevice
(
b_ns_ks_re
.
mData
.
data
());
...
@@ -253,6 +250,7 @@ int main(int argc, char* argv[])
...
@@ -253,6 +250,7 @@ int main(int argc, char* argv[])
// device operation
// device operation
// For real Intermediate Value re_1
// For real Intermediate Value re_1
auto
op
=
DeviceOpInstance
{};
auto
op
=
DeviceOpInstance
{};
auto
invoker
=
op
.
MakeInvoker
();
auto
invoker
=
op
.
MakeInvoker
();
auto
argument_re1
=
op
.
MakeArgument
(
a_device_buf_re
.
GetDeviceBuffer
(),
auto
argument_re1
=
op
.
MakeArgument
(
a_device_buf_re
.
GetDeviceBuffer
(),
...
@@ -434,6 +432,11 @@ int main(int argc, char* argv[])
...
@@ -434,6 +432,11 @@ int main(int argc, char* argv[])
ref_invoker
.
Run
(
ref_argument_re
);
ref_invoker
.
Run
(
ref_argument_re
);
alpha
=
1.
f
;
beta
=
1.
f
;
cde_element_op
=
CDEElementOp
{
alpha
,
beta
};
for
(
size_t
m0
=
0
;
m0
<
e_ms_ns_host_result_re
.
mDesc
.
GetLengths
()[
0
];
++
m0
)
for
(
size_t
m0
=
0
;
m0
<
e_ms_ns_host_result_re
.
mDesc
.
GetLengths
()[
0
];
++
m0
)
{
{
...
@@ -470,7 +473,7 @@ int main(int argc, char* argv[])
...
@@ -470,7 +473,7 @@ int main(int argc, char* argv[])
for
(
size_t
n1
=
0
;
n1
<
e_ms_ns_host_result_re
.
mDesc
.
GetLengths
()[
3
];
++
n1
)
for
(
size_t
n1
=
0
;
n1
<
e_ms_ns_host_result_re
.
mDesc
.
GetLengths
()[
3
];
++
n1
)
{
{
cde_element_op
(
e_ms_ns_host_result_re
(
m0
,
m1
,
n0
,
n1
),
cde_element_op
(
e_ms_ns_host_result_re
(
m0
,
m1
,
n0
,
n1
),
c
_ms_ns_host_result_re
(
m0
,
m1
,
n0
,
n1
),
e
_ms_ns_host_result_re
(
m0
,
m1
,
n0
,
n1
),
c_ms_ns_host_result_re1
(
m0
,
m1
,
n0
,
n1
));
c_ms_ns_host_result_re1
(
m0
,
m1
,
n0
,
n1
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment