Skip to content

Commit d3d56a1

Browse files
committed
diag: probe whether rmumps.dll exports dmumps_c on Windows
1 parent 62ca48e commit d3d56a1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

scripts/diag_uno.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ cat("\n===== rmumps loadable? =====\n")
1414
cat("requireNamespace('rmumps'):",
1515
requireNamespace("rmumps", quietly = TRUE), "\n")
1616

17+
cat("\n===== does rmumps.dll export dmumps_c on this platform? =====\n")
18+
# This is the exact lookup Uno's dmumps_shim.c performs at runtime via
19+
# R_FindSymbol("dmumps_c","rmumps"). configure.win disables MUMPS BECAUSE this
20+
# was historically false on Windows. Verify the current reality.
21+
loadNamespace("rmumps")
22+
cat("is.loaded('dmumps_c'):", is.loaded("dmumps_c"), "\n")
23+
sym <- tryCatch(getNativeSymbolInfo("dmumps_c", PACKAGE = "rmumps"),
24+
error = function(e) conditionMessage(e))
25+
cat("getNativeSymbolInfo('dmumps_c', PACKAGE='rmumps'):\n")
26+
print(sym)
27+
dll <- tryCatch(getLoadedDLLs()[["rmumps"]][["path"]],
28+
error = function(e) NA_character_)
29+
cat("rmumps DLL path:", dll, "\n")
30+
1731
library(CVXR)
1832

1933
cat("\n===== convex solve via UNO (verbose = TRUE) =====\n")

0 commit comments

Comments
 (0)