grant-arm commented on a change in pull request #9510:
URL: https://github.com/apache/tvm/pull/9510#discussion_r754145422
##########
File path: tests/cpp/target/source/interface_c_test.cc
##########
@@ -257,18 +263,27 @@ TEST(InterfaceAPI, ContainsDeviceStructSanitised) {
<< "};\n\n";
runtime::Module test_module =
- InterfaceCCreate("ultimate_cat_spotter", {"input"}, {"output"},
{"device+1", "device+2"});
+ InterfaceCCreate("ultimate_cat_spotter", {"input"}, {"output"},
{"device+1", "device+2"}, "");
std::string header_source = test_module->GetSource();
ASSERT_THAT(header_source, HasSubstr(device_struct.str()));
}
TEST(InterfaceAPI, ContainsDeviceStructClash) {
runtime::Module test_module =
- InterfaceCCreate("ultimate_cat_spotter", {"input"}, {"output"},
{"device+", "device-"});
+ InterfaceCCreate("ultimate_cat_spotter", {"input"}, {"output"},
{"device+", "device-"}, "");
ASSERT_THROW(test_module->GetSource(), InternalError);
}
+TEST(InterfaceAPI, ContainsWorkspaceSize) {
+ runtime::Module test_module =
+ InterfaceCCreate("ultimate_cat_spotter", {"input"}, {"output"}, {},
"765432");
+ std::string header_source = test_module->GetSource();
+
+ ASSERT_THAT(header_source,
+ HasSubstr("#define TVMGEN_ULTIMATE_CAT_SPOTTER_WORKSPACE_SIZE
765432"));
Review comment:
Thanks @Mousius , I've changed this now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]