[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse
From: |
Sarrah Bastawala |
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: |
Wed, 22 Mar 2023 13:46:17 -0400 (EDT) |
Follow-up Comment #31, patch #10278 (project octave):
[comment #28 comment #28:]
> What is the exact error with the changes from comment #24 and comment #26?
Could you show the exact changes that you applied (as a patch or `verbatim`
block)? Could you please attach the generated file
"libinterp/dldfcn/module.mk" (in your source tree) after you applied those
changes?
The reason for the problem arising last time was probably something different,
there was some cache which was preventing installation of a package and
causing some error.
I tried again with the following changes as suggested by you and it worked.
Thanks a lot !
diff --git a/libinterp/dldfcn/config-module.awk
b/libinterp/dldfcn/config-module.awk
index 1a2ea9cc8b..0ab680ef4c 100644
--- a/libinterp/dldfcn/config-module.awk
+++ b/libinterp/dldfcn/config-module.awk
@@ -22,11 +22,11 @@
## <https://www.gnu.org/licenses/>.
##
########################################################################
-
+
BEGIN {
FS = "|";
nfiles = 0;
-
+
print "## DO NOT EDIT -- generated from module-files by
config-module.awk";
print ""
print "EXTRA_DIST += \\"
@@ -45,15 +45,14 @@ BEGIN {
libraries[nfiles] = $4;
} END {
sep = " \\\n";
- print "DLDFCN_SRC = \\";
+ printf ("DLDFCN_SRC =");
for (i = 1; i <= nfiles; i++) {
- if (i == nfiles)
- sep = "\n";
- printf (" %%reldir%%/%s%s", files[i], sep);
+ split (files[i], src_files, " ");
+ printf ("%s %%reldir%%/%s", sep, src_files[1]);
}
print "";
-
- sep = " \\\n";
+
+ print "";
print "DLDFCN_LIBS = $(DLDFCN_SRC:.cc=.la)";
print "";
print "octlib_LTLIBRARIES += $(DLDFCN_LIBS)";
@@ -63,21 +62,16 @@ BEGIN {
print "";
print "%.oct : %.la"
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 "";
- if (files[i] == "__ode15__.cc")
- {
- printf ("%%canon_reldir%%_%s_la_SOURCES = %%reldir%%/__ode15__.cc
%%reldir%%/oct-sundials.cc \n",
- basename);
- }
- else
- {
- 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",
@@ -90,15 +84,21 @@ BEGIN {
printf ("%%canon_reldir%%_%s_la_DEPENDENCIES = $(OCT_LINK_DEPS)\n",
basename);
}
-
+
print "";
print "$(srcdir)/%reldir%/module.mk: $(srcdir)/%reldir%/config-module.sh
$(srcdir)/%reldir%/config-module.awk $(srcdir)/%reldir%/module-files";
print "\t$(AM_V_GEN)$(SHELL) $(srcdir)/%reldir%/config-module.sh
$(srcdir)";
-
+
print "";
print "DLDFCN_OCT_FILES = $(DLDFCN_LIBS:.la=.oct)";
print "";
- print "DLDFCN_DEFUN_FILES = $(DLDFCN_SRC)";
+ printf ("DLDFCN_DEFUN_FILES =");
+ for (i = 1; i <= nfiles; i++) {
+ split (files[i], src_files, " ");
+ for (j in src_files)
+ printf ("%s %%reldir%%/%s", sep, src_files[j]);
+ }
+ print "";
print "";
print "DLDFCN_PKG_ADD_FILE = %reldir%/PKG_ADD";
print "";
@@ -123,7 +123,7 @@ BEGIN {
print " $(DLDFCN_OCT_FILES)";
print "";
print "DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)";
-
+
print "";
print "libinterp_CLEANFILES += \\";
print " $(DLDFCN_PKG_ADD_FILE) \\";
diff --git a/libinterp/dldfcn/module-files b/libinterp/dldfcn/module-files
index da6589c09f..b21ac6f7c0 100644
--- a/libinterp/dldfcn/module-files
+++ b/libinterp/dldfcn/module-files
@@ -4,7 +4,7 @@ __fltk_uigetfile__.cc|$(FLTK_CPPFLAGS)
$(FT2_CPPFLAGS)|$(FLTK_LDFLAGS) $(FT2_LDF
__glpk__.cc|$(GLPK_CPPFLAGS)|$(GLPK_LDFLAGS)|$(GLPK_LIBS)
__init_fltk__.cc|$(FLTK_CPPFLAGS) $(FT2_CPPFLAGS)
$(FONTCONFIG_CPPFLAGS)|$(FLTK_LDFLAGS) $(FT2_LDFLAGS)|$(FLTK_LIBS) $(FT2_LIBS)
$(OPENGL_LIBS)
__init_gnuplot__.cc|$(FT2_CPPFLAGS) $(FONTCONFIG_CPPFLAGS)||
-__ode15__.cc|$(SUNDIALS_XCPPFLAGS)|$(SUNDIALS_XLDFLAGS)|$(SUNDIALS_XLIBS)
+__ode15__.cc
oct-sundials.cc|$(SUNDIALS_XCPPFLAGS)|$(SUNDIALS_XLDFLAGS)|$(SUNDIALS_XLIBS)
__voronoi__.cc|$(QHULL_CPPFLAGS)|$(QHULL_LDFLAGS)|$(QHULL_LIBS)
audiodevinfo.cc|$(PORTAUDIO_CPPFLAGS)|$(PORTAUDIO_LDFLAGS)|$(PORTAUDIO_LIBS)
audioread.cc|$(SNDFILE_CPPFLAGS)|$(SNDFILE_LDFLAGS)|$(SNDFILE_LIBS)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10278>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., (continued)
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Sarrah Bastawala, 2023/03/04
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Sarrah Bastawala, 2023/03/07
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/07
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/07
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/07
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/07
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Sarrah Bastawala, 2023/03/09
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/10
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Markus Mützel, 2023/03/10
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional., Sarrah Bastawala, 2023/03/22
- [Octave-patch-tracker] [patch #10278] GSoC 2022: add support for sparse computations in ode15{i, s} using Octave classes , making dependency on KLU optional.,
Sarrah Bastawala <=