Skip to content

Commit 357bf9f

Browse files
committed
more hacks
1 parent afadb48 commit 357bf9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/models/voxtral/multimodal.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,19 @@ MultimodalInput processAudioFile(
283283
} // namespace
284284

285285
// Forward declare the initialization function from aoti_cuda
286+
#ifdef _WIN32
287+
extern "C" __declspec(dllimport) void InitCudaBackend();
288+
#else
286289
extern "C" void InitCudaBackend();
290+
#endif
287291

288292
int32_t main(int32_t argc, char** argv) {
289293
#ifdef _WIN32
290294
// On Windows, explicitly initialize the CUDA backend to ensure
291295
// static initializers in the DLL run
296+
ET_LOG(Info, "About to call InitCudaBackend");
292297
InitCudaBackend();
298+
ET_LOG(Info, "InitCudaBackend returned");
293299
#endif
294300

295301
gflags::ParseCommandLineFlags(&argc, &argv, true);

0 commit comments

Comments
 (0)