You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/23 15:39:13 UTC
[GitHub] [tvm] Mousius opened a new pull request #9094: Add `extern "C"` to C Interface API header
Mousius opened a new pull request #9094:
URL: https://github.com/apache/tvm/pull/9094
This is to provide the hint to C++ compilers that these functions are C linkage.
New header looks similar to:
```c++
#ifndef TVMGEN_DEFAULT_H_
#define TVMGEN_DEFAULT_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* \brief Input tensor pointers for TVM module "default"
*/
struct tvmgen_default_inputs {
void* y;
};
/*!
* \brief Output tensor pointers for TVM module "default"
*/
struct tvmgen_default_outputs {
void* output;
};
/*!
* \brief entrypoint function for TVM module "default"
* \param inputs Input tensors for the module
* \param outputs Output tensors for the module
*/
int32_t tvmgen_default_run(
struct tvmgen_default_inputs* inputs,
struct tvmgen_default_outputs* outputs
);
#ifdef __cplusplus
}
#endif
#endif // TVMGEN_DEFAULT_H_
```
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] leandron commented on pull request #9094: Add `extern "C"` to C Interface API header
Posted by GitBox <gi...@apache.org>.
leandron commented on pull request #9094:
URL: https://github.com/apache/tvm/pull/9094#issuecomment-926460575
Thanks @Mousius and @junrushao1994! Merged 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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] leandron merged pull request #9094: Add `extern "C"` to C Interface API header
Posted by GitBox <gi...@apache.org>.
leandron merged pull request #9094:
URL: https://github.com/apache/tvm/pull/9094
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org