Revision c77b3bece3e69b7676071afc749a45e08091eabc authored by Christopher Rackauckas on 12 June 2023, 14:26:22 UTC, committed by Kristoffer on 26 June 2023, 07:43:43 UTC
* Add check call to getrf! `lu!(A; check=false)` is supposed to disable the checking and leave it to the user: > When check = true, an error is thrown if the decomposition fails. When check = false, responsibility for checking the decomposition's validity (via issuccess) lies with the user. However, this is not quite true since `lu!` calls `getrf!` which internally does a check for `chkfinite` which does throw an error. This updates the `getrf!` function to have a `check` argument which is then used by `lu!` to fully disable the error throwing checks. * Update lapack.jl (cherry picked from commit d69b1a228b4e0ac834c47a674725f0b08bd2da0e)
1 parent f6ce5dc
mpfr.mk
## MPFR ##
include $(SRCDIR)/mpfr.version
ifeq ($(USE_SYSTEM_GMP), 0)
$(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured: | $(build_prefix)/manifest/gmp
endif
ifneq ($(USE_BINARYBUILDER_MPFR),1)
MPFR_CONFIGURE_OPTS := $(CONFIGURE_COMMON)
MPFR_CONFIGURE_OPTS += --enable-thread-safe --enable-shared-cache --disable-float128 --disable-decimal-float
MPFR_CONFIGURE_OPTS += --enable-shared --disable-static
ifeq ($(USE_SYSTEM_GMP), 0)
MPFR_CONFIGURE_OPTS += --with-gmp=$(abspath $(build_prefix))
endif
ifeq ($(SANITIZE),1)
# Force generic C build
MPFR_CONFIGURE_OPTS += --host=none-unknown-linux
endif
$(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://www.mpfr.org/mpfr-$(MPFR_VER)/$(notdir $@)
$(SRCCACHE)/mpfr-$(MPFR_VER)/source-extracted: $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2
$(JLCHECKSUM) $<
cd $(dir $<) && $(TAR) -jxf $<
cp $(SRCDIR)/patches/config.sub $(SRCCACHE)/mpfr-$(MPFR_VER)/config.sub
touch -c $(SRCCACHE)/mpfr-$(MPFR_VER)/configure # old target
echo 1 > $@
checksum-mpfr: $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2
$(JLCHECKSUM) $<
$(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured: $(SRCCACHE)/mpfr-$(MPFR_VER)/source-extracted
mkdir -p $(dir $@)
cd $(dir $@) && \
$(dir $<)/configure $(MPFR_CONFIGURE_OPTS)
echo 1 > $@
$(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled: $(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured
$(MAKE) -C $(dir $<)
echo 1 > $@
$(BUILDDIR)/mpfr-$(MPFR_VER)/build-checked: $(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled
ifeq ($(OS),$(BUILD_OS))
$(MAKE) -C $(dir $@) check
endif
echo 1 > $@
$(eval $(call staged-install, \
mpfr,mpfr-$(MPFR_VER), \
MAKE_INSTALL,,, \
$$(WIN_MAKE_HARD_LINK) $(build_bindir)/libmpfr-*.dll $(build_bindir)/libmpfr.dll && \
$$(INSTALL_NAME_CMD)libmpfr.$$(SHLIB_EXT) $$(build_shlibdir)/libmpfr.$$(SHLIB_EXT)))
clean-mpfr:
-rm -f $(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured $(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/mpfr-$(MPFR_VER) clean
distclean-mpfr:
rm -rf $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2 \
$(SRCCACHE)/mpfr-$(MPFR_VER) \
$(BUILDDIR)/mpfr-$(MPFR_VER)
get-mpfr: $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2
extract-mpfr: $(SRCCACHE)/mpfr-$(MPFR_VER)/source-extracted
configure-mpfr: $(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured
compile-mpfr: $(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled
fastcheck-mpfr: check-mpfr
check-mpfr: $(BUILDDIR)/mpfr-$(MPFR_VER)/build-checked
else # USE_BINARYBUILDER_MPFR
$(eval $(call bb-install,mpfr,MPFR,false))
endif
Computing file changes ...