File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
backends/cuda/runtime/platform Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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 {
2122namespace backends {
2223namespace 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) {
You can’t perform that action at this time.
0 commit comments