Skip to content

Commit

Permalink
Update non-BB dsfmt build to match with the BB one. (#38917)
Browse files Browse the repository at this point in the history
* Update non-BB dsfmt build to match with the BB one.
Update URLs to https
Fix #17945

* Add -DDSFMT_SHLIB
  • Loading branch information
ViralBShah authored Dec 17, 2020
1 parent 9ec3147 commit b36338a
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 473 deletions.
2 changes: 1 addition & 1 deletion deps/Versions.make
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CLANG_JLL_NAME := Clang
CLANG_JLL_VER := 11.0.0+4

# DSFMT
DSFMT_VER := 2.2.3
DSFMT_VER := 2.2.4
DSFMT_JLL_NAME := dSFMT

# GMP
Expand Down
2 changes: 1 addition & 1 deletion deps/blas.mk
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ LAPACK_MFLAGS := NOOPT="$(FFLAGS) $(JFFLAGS) $(USE_BLAS_FFLAGS) -O0" \
LOADER="$(FC)" BLASLIB="$(RPATH_ESCAPED_ORIGIN) $(LIBBLAS)"

$(SRCCACHE)/lapack-$(LAPACK_VER).tgz: | $(SRCCACHE)
$(JLDOWNLOAD) $@ http://www.netlib.org/lapack/$(notdir $@)
$(JLDOWNLOAD) $@ https://www.netlib.org/lapack/$(notdir $@)

$(BUILDDIR)/lapack-$(LAPACK_VER)/source-extracted: $(SRCCACHE)/lapack-$(LAPACK_VER).tgz
$(JLCHECKSUM) $<
Expand Down
1 change: 0 additions & 1 deletion deps/checksums/dsfmt-2.2.3.tar.gz/md5

This file was deleted.

1 change: 0 additions & 1 deletion deps/checksums/dsfmt-2.2.3.tar.gz/sha512

This file was deleted.

1 change: 1 addition & 0 deletions deps/checksums/dsfmt-2.2.4.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ed30e63552d62df48d709dde4f755660
1 change: 1 addition & 0 deletions deps/checksums/dsfmt-2.2.4.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe84e986cbf198172340adfac0436b08f087643eca3f1ceccacde146cbfd8c41e3eb0dfbb062f7ca5f462db13c386abd7c269bc0cbefc9a0ecf97a8a8870a2e4
8 changes: 3 additions & 5 deletions deps/dsfmt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

ifneq ($(USE_BINARYBUILDER_DSFMT),1)

DSFMT_CFLAGS := $(CFLAGS) -DNDEBUG -DDSFMT_MEXP=19937 $(fPIC) -DDSFMT_DO_NOT_USE_OLD_NAMES
DSFMT_CFLAGS := $(CFLAGS) -DNDEBUG -DDSFMT_MEXP=19937 $(fPIC) -DDSFMT_DO_NOT_USE_OLD_NAMES -DDSFMT_SHLIB
ifneq ($(USEMSVC), 1)
DSFMT_CFLAGS += -O3 -finline-functions -fomit-frame-pointer -fno-strict-aliasing \
--param max-inline-insns-single=1800 -Wmissing-prototypes -Wall -std=c99 -shared
--param max-inline-insns-single=1800 -Wall -std=c99 -shared
else
DSFMT_CFLAGS += -Wl,-dll,-def:../../libdSFMT.def
endif
Expand All @@ -14,16 +14,14 @@ DSFMT_CFLAGS += -msse2 -DHAVE_SSE2
endif

$(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz: | $(SRCCACHE)
$(JLDOWNLOAD) $@ http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-$(DSFMT_VER).tar.gz
$(JLDOWNLOAD) $@ https://github.com/MersenneTwister-Lab/dSFMT/archive/v$(DSFMT_VER).tar.gz
touch -c $@

$(BUILDDIR)/dsfmt-$(DSFMT_VER)/source-extracted: $(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz
$(JLCHECKSUM) $<
-rm -r $(dir $@)
mkdir -p $(dir $@)
$(TAR) -C $(dir $@) --strip-components 1 -xf $<
cd $(dir $@) && patch < $(SRCDIR)/patches/dSFMT.h.patch
cd $(dir $@) && patch < $(SRCDIR)/patches/dSFMT.c.patch
echo 1 > $@

checksum-dsfmt: $(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz
Expand Down
2 changes: 1 addition & 1 deletion deps/mpfr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MPFR_OPTS += --host=none-unknown-linux
endif

$(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ http://www.mpfr.org/mpfr-$(MPFR_VER)/$(notdir $@)
$(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 $<
Expand Down
2 changes: 1 addition & 1 deletion deps/objconv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ifneq ($(USE_BINARYBUILDER_OBJCONV),1)

$(SRCCACHE)/objconv.zip: | $(SRCCACHE)
$(JLDOWNLOAD) $@ http://www.agner.org/optimize/objconv.zip
$(JLDOWNLOAD) $@ https://www.agner.org/optimize/objconv.zip

$(BUILDDIR)/objconv/source-extracted: $(SRCCACHE)/objconv.zip
-rm -r $(dir $@)
Expand Down
100 changes: 0 additions & 100 deletions deps/patches/dSFMT.c.patch

This file was deleted.

Loading

0 comments on commit b36338a

Please sign in to comment.