octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse


From: Markus Mützel
Subject: [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional.
Date: Tue, 7 Mar 2023 10:15:48 -0500 (EST)

Follow-up Comment #25, patch #10278 (project octave):

Try using this alternative change additionally to the change from comment
#24:

diff -r 96ed8d1d0c59 libinterp/dldfcn/config-module.awk
--- a/libinterp/dldfcn/config-module.awk        Sat Mar 04 00:59:48 2023 -0500
+++ b/libinterp/dldfcn/config-module.awk        Tue Mar 07 16:12:21 2023 +0100
@@ -49,7 +49,8 @@
   for (i = 1; i <= nfiles; i++) {
     if (i == nfiles)
       sep = "\n";
-    printf ("  %%reldir%%/%s%s", files[i], sep);
+    split (files[i], src_files, " ");
+    printf ("  %%reldir%%/%s%s", src_files[1], sep);
   }
   print "";
 
@@ -65,11 +66,14 @@
   print "\t$(AM_V_GEN)$(INSTALL_PROGRAM) %reldir%/.libs/$(shell $(SED) -n -e
\"s/dlname='\\([^']*\\)'/\\1/p\" < $<) $@"
 
   for (i = 1; i <= nfiles; i++) {
-    basename = files[i];
+    split (files[i], src_files, " ");
+    basename = src_files[1];
     sub (/\.cc$/, "", basename);
     print "";
-    printf ("%%canon_reldir%%_%s_la_SOURCES = %%reldir%%/%s\n",
-            basename, files[i]);
+    printf ("%%canon_reldir%%_%s_la_SOURCES =", basename);
+    for (j in src_files)
+      printf (" %%reldir%%/%s", src_files[j]);
+    print "";
     if (cppflags[i])
       {
         printf ("%%canon_reldir%%_%s_la_CPPFLAGS =
$(libinterp_liboctinterp_la_CPPFLAGS) %s\n",


It is completely untested. So, try to build with it before using it.

There might still be an issue with the new file missing from the distribution
tarball. But I hope, it'd do the same that your hardcoded exception currently
does.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10278>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]