Skip to content

Commit 8279040

Browse files
author
Caner
committed
Conform to Nodos API changes: Rename OnRequest->OnRequestAPI
1 parent 346d674 commit 8279040

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ macro(group_targets targets folder_name)
3232
endmacro()
3333

3434
add_compile_definitions(NOS_DISABLE_DEPRECATED)
35-
nos_find_plugin_sdk("38.0.0" NOS_PLUGIN_SDK_TARGET NOS_SDK_DIR)
35+
nos_find_plugin_sdk("38.1.0" NOS_PLUGIN_SDK_TARGET NOS_SDK_DIR)
3636

3737
# Check for environment variable & cmake variable
3838
if(NOT DEFINED CUDA_SDK_PATH)

nosCUDASubsystem/CUDA.nossys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"info": {
33
"id": {
44
"name": "nos.sys.cuda",
5-
"version": "2.10.0"
5+
"version": "2.10.1"
66
},
77
"display_name": "CUDA Subsystem",
88
"description": "CUDA Subsystem for Nodos.",

nosCUDASubsystem/Source/EntryPoint.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ extern "C"
1515
NOSAPI_ATTR nosResult NOSAPI_CALL nosExportPlugin(nosPluginFunctions* pluginFunctions)
1616
{
1717
nos::cudass::Initialize(0);
18-
pluginFunctions->OnRequest = [](uint32_t minor, void** outSubsystemCtx) -> nosResult {(*outSubsystemCtx) = new nosCUDASubsystem;
19-
nos::cudass::Bind((nosCUDASubsystem*)(*outSubsystemCtx));
20-
return NOS_RESULT_SUCCESS; };
18+
pluginFunctions->OnRequestAPI = [](uint32_t minor, void** outPluginAPI) -> nosResult {
19+
(*outPluginAPI) = new nosCUDASubsystem;
20+
nos::cudass::Bind((nosCUDASubsystem*)(*outPluginAPI));
21+
return NOS_RESULT_SUCCESS;
22+
};
2123
// TODO: Garbage Collect on unload
2224

2325
return NOS_RESULT_SUCCESS;

0 commit comments

Comments
 (0)