Skip to content

Commit caf8495

Browse files
committed
missing import and namespacing
1 parent d39a36e commit caf8495

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backends/cuda/runtime/platform/platform.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
#include <executorch/runtime/core/error.h>
11+
#include <executorch/runtime/core/result.h>
1112
#include <string>
1213

1314
#ifdef _WIN32
@@ -21,7 +22,7 @@ namespace executorch {
2122
namespace backends {
2223
namespace cuda {
2324

24-
Result<void*> load_library(const std::string& path) {
25+
executorch::runtime::Result<void*> load_library(const std::string& path) {
2526
#ifdef _WIN32
2627
auto lib_handle = LoadLibrary(path.c_str());
2728
if (lib_handle == NULL) {
@@ -43,7 +44,7 @@ Result<void*> load_library(const std::string& path) {
4344
return (void*)lib_handle;
4445
}
4546

46-
Error close_library(void* lib_handle) {
47+
executorch::runtime::Error close_library(void* lib_handle) {
4748
#ifdef _WIN32
4849
if (!FreeLibrary((HMODULE)lib_handle)) {
4950
printf("FreeLibrary failed with error %lu\n", GetLastError());
@@ -58,7 +59,7 @@ Error close_library(void* lib_handle) {
5859
return Error::Ok;
5960
}
6061

61-
Result<void*> get_function(void* lib_handle, const std::string& fn_name) {
62+
executorch::runtime::Result<void*> get_function(void* lib_handle, const std::string& fn_name) {
6263
#ifdef _WIN32
6364
auto fn = GetProcAddress((HMODULE)lib_handle, fn_name.c_str());
6465
if (!fn) {

0 commit comments

Comments
 (0)