2025-08-19 08:07.39: New job: test ahrefs/ocannl https://github.com/ahrefs/ocannl.git#refs/heads/master (da369c6fa67421aea3ea02a4ca25f6d143530d24) (windows-amd64:windows-server-2022-amd64-5.3_opam-2.4)
Base: windows-server-2022-amd64-ocaml-5.3
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ahrefs/ocannl.git" -b "master" && cd "ocannl" && git reset --hard da369c6f
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM windows-server-2022-amd64-ocaml-5.3
# windows-server-2022-amd64-5.3_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f /usr/bin/opam-2.4 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e e77940d8ff8706305602d0d643bf01c77beef2e7 || git fetch origin master) && git reset -q --hard e77940d8ff8706305602d0d643bf01c77beef2e7 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 neural_nets_lib.opam arrayjit.opam /Users/opam/src/./
RUN opam pin add -yn neural_nets_lib.dev '/Users/opam/src/./' && \
opam pin add -yn arrayjit.dev '/Users/opam/src/./'
RUN echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'
ENV DEPS="angstrom.0.16.1 arch-x86_64.1 astring.0.8.5 backoff.0.1.1 base.v0.17.3 base-bigarray.base base-bytes.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlp-streams.5.0.1 camlzip.1.13 cmdliner.1.3.0 conf-libcurl.2 conf-libffi.2.0.0 conf-mingw-w64-curl-x86_64.1 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-libffi-x86_64.1 conf-mingw-w64-zlib-x86_64.1 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 csv.2.4 ctypes.0.23.0 ctypes-foreign.0.23.0 curl.0.10.0 dune.3.19.1 dune-configurator.3.19.1 dune-private-libs.3.19.1 dune-site.3.19.1 dyn.3.19.1 fieldslib.v0.17.0 flexdll.0.44 fmt.0.11.0 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.9.0 mdx.2.5.0 mingw-w64-shims.0.2.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.6 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ordering.3.19.1 parsexp.v0.17.0 pp.2.0.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.1.1 ppx_enumerate.v0.17.0 ppx_expect.v0.17.3 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.2 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.1 ppx_minidebug.2.3.0 ppx_optcomp.v0.17.1 ppx_sexp_conv.v0.17.1 ppx_string.v0.17.0 ppx_variants_conv.v0.17.1 ppxlib.0.36.0 ppxlib_jane.v0.17.4 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.13.2 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 stdune.3.19.1 system-mingw.1 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.1.0 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.4 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /Users/opam/src
RUN cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2025-08-19 08:07.39: Using cache hint "ahrefs/ocannl-windows-server-2022-amd64-ocaml-5.3-windows-server-2022-amd64-5.3_opam-2.4-d28c0acdef67bdf13a7aed2a8b7122bd"
2025-08-19 08:07.39: Using OBuilder spec:
((from windows-server-2022-amd64-ocaml-5.3)
(comment windows-server-2022-amd64-5.3_opam-2.4)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e e77940d8ff8706305602d0d643bf01c77beef2e7 || git fetch origin master) && git reset -q --hard e77940d8ff8706305602d0d643bf01c77beef2e7 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src neural_nets_lib.opam arrayjit.opam) (dst /Users/opam/src/./))
(run (network host)
(shell "opam pin add -yn neural_nets_lib.dev '/Users/opam/src/./' && \
\nopam pin add -yn arrayjit.dev '/Users/opam/src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
(env DEPS "angstrom.0.16.1 arch-x86_64.1 astring.0.8.5 backoff.0.1.1 base.v0.17.3 base-bigarray.base base-bytes.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlp-streams.5.0.1 camlzip.1.13 cmdliner.1.3.0 conf-libcurl.2 conf-libffi.2.0.0 conf-mingw-w64-curl-x86_64.1 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-libffi-x86_64.1 conf-mingw-w64-zlib-x86_64.1 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 csv.2.4 ctypes.0.23.0 ctypes-foreign.0.23.0 curl.0.10.0 dune.3.19.1 dune-configurator.3.19.1 dune-private-libs.3.19.1 dune-site.3.19.1 dyn.3.19.1 fieldslib.v0.17.0 flexdll.0.44 fmt.0.11.0 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.9.0 mdx.2.5.0 mingw-w64-shims.0.2.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.6 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ordering.3.19.1 parsexp.v0.17.0 pp.2.0.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.1.1 ppx_enumerate.v0.17.0 ppx_expect.v0.17.3 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.2 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.1 ppx_minidebug.2.3.0 ppx_optcomp.v0.17.1 ppx_sexp_conv.v0.17.1 ppx_string.v0.17.0 ppx_variants_conv.v0.17.1 ppxlib.0.36.0 ppxlib_jane.v0.17.4 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.13.2 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 stdune.3.19.1 system-mingw.1 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.1.0 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS"))
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /Users/opam/src))
(run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2025-08-19 08:07.39: Waiting for resource in pool OCluster
2025-08-19 08:07.39: Waiting for worker…
2025-08-19 08:08.37: Got resource from pool OCluster
Building on thyme
HEAD is now at 50daa1f6 In progress: Give up on separate compilation and linking of builtins, collab with Claude
HEAD is now at da369c6f /tmp
(from windows-server-2022-amd64-ocaml-5.3)
2025-08-19 08:08.39 ---> using "1d6ffeb5a52124df73b2e951323e99615c52ca4f9bdf0f65039be6146fabdaab" from cache
/: (comment windows-server-2022-amd64-5.3_opam-2.4)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
2025-08-19 08:08.39 ---> using "1e2d14b3062f84a7d6f6f169887d274097a3ceefc9654f3a38ec7d8793bb5864" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using built-in defaults.
<><> Unix support infrastructure ><><><><><><><><><><><><><><><><><><><><><><><>
opam and the OCaml ecosystem in general require various Unix tools in order to operate correctly. At present, this requires the installation of Cygwin to provide these tools.
How should opam obtain Unix tools?
> 1. Use tools found in PATH (Cygwin installation at C:\cygwin64)
2. Automatically create an internal Cygwin installation that will be managed by opam (recommended)
3. Use Cygwin installation found in C:\cygwin64
4. Use another existing Cygwin/MSYS2 installation
5. Abort initialisation
[1/2/3/4/5] 1
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from file://C:/Users/opam/opam-repository
2025-08-19 08:08.39 ---> using "6dbdca3e6c2df003f6cebaa139aa227252a76195aef4f258913cc7da8ee795b2" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
CYGWIN_NT-10.0-20348 3.6.4-1.x86_64
The OCaml toplevel, version 5.3.0
2.4.1
2025-08-19 08:08.39 ---> using "dd7e0e07f915e027f7b9342b70fd32de99a0178469368b94a3f981825bdf3d42" from cache
/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e e77940d8ff8706305602d0d643bf01c77beef2e7 || git fetch origin master) && git reset -q --hard e77940d8ff8706305602d0d643bf01c77beef2e7 && git log --no-decorate -n1 --oneline && opam update -u"))
e77940d8ff Merge pull request #28255 from dbuenzli/b0-publish-fmt.0.11.0
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file://C:/Users/opam/opam-repository
Already up-to-date.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-08-19 08:08.39 ---> using "82c27af86e40a728a607d37a2f2915f5b18bbd3607ce7347d600a44226fe72d3" from cache
/: (copy (src neural_nets_lib.opam arrayjit.opam) (dst /Users/opam/src/./))
2025-08-19 08:08.39 ---> using "31846225bc64f61e009899d1de8eb2c02bdc23c55875cb2672a0176b8d4b313c" from cache
/: (run (network host)
(shell "opam pin add -yn neural_nets_lib.dev '/Users/opam/src/./' && \
\nopam pin add -yn arrayjit.dev '/Users/opam/src/./'"))
[neural_nets_lib.dev] synchronised (file://C:/Users/opam/src/.)
neural_nets_lib is now pinned to file://C:/Users/opam/src/. (version dev)
[arrayjit.dev] synchronised (file://C:/Users/opam/src/.)
arrayjit is now pinned to file://C:/Users/opam/src/. (version dev)
2025-08-19 08:08.39 ---> using "b90e9b007c9a7b72d7b59c5a9e3740f84087112b024f055bd44bdc343153f8d4" from cache
/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
2025-08-19 08:08.39 ---> using "4c235c3464b2fe2d99e9bc5add07664d078216bc4978223740879722599fd918" from cache
/: (env DEPS "angstrom.0.16.1 arch-x86_64.1 astring.0.8.5 backoff.0.1.1 base.v0.17.3 base-bigarray.base base-bytes.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlp-streams.5.0.1 camlzip.1.13 cmdliner.1.3.0 conf-libcurl.2 conf-libffi.2.0.0 conf-mingw-w64-curl-x86_64.1 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-libffi-x86_64.1 conf-mingw-w64-zlib-x86_64.1 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 csv.2.4 ctypes.0.23.0 ctypes-foreign.0.23.0 curl.0.10.0 dune.3.19.1 dune-configurator.3.19.1 dune-private-libs.3.19.1 dune-site.3.19.1 dyn.3.19.1 fieldslib.v0.17.0 flexdll.0.44 fmt.0.11.0 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.9.0 mdx.2.5.0 mingw-w64-shims.0.2.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.6 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ordering.3.19.1 parsexp.v0.17.0 pp.2.0.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.1.1 ppx_enumerate.v0.17.0 ppx_expect.v0.17.3 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.2 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.1 ppx_minidebug.2.3.0 ppx_optcomp.v0.17.1 ppx_sexp_conv.v0.17.1 ppx_string.v0.17.0 ppx_variants_conv.v0.17.1 ppxlib.0.36.0 ppxlib_jane.v0.17.4 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.13.2 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 stdune.3.19.1 system-mingw.1 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.1.0 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS"))
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[arrayjit.dev] synchronised (file://C:/Users/opam/src/.)
[neural_nets_lib.dev] synchronised (file://C:/Users/opam/src/.)
[NOTE] Package system-mingw is already installed (current version is 1).
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-env-mingw64 is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0).
[NOTE] Package host-system-mingw is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[NOTE] Package flexdll is already installed (current version is 0.44).
[NOTE] Package conf-mingw-w64-gcc-x86_64 is already installed (current version is 1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
[NOTE] Package arch-x86_64 is already installed (current version is 1).
The following system packages will first need to be installed:
mingw64-x86_64-curl mingw64-x86_64-libffi mingw64-x86_64-zlib
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ C:\Users\opam\AppData\Local\opam\.cygwin\setup-x86_64.exe "--root" "C:\\cygwin64" "--quiet-mode" "unattended" "--no-shortcuts" "--no-startmenu" "--no-desktop" "--no-admin" "--no-version-check" "--no-write-registry" "--packages" "mingw64-x86_64-curl,mingw64-x86_64-libffi,mingw64-x86_64-zlib"
- Starting cygwin install, version 2.934
- User has backup/restore rights
- User has symlink creation right
- Current Directory: C:\Windows\system32
- root: C:\cygwin64 system
- Changing gid to Administrators
- Selected local directory: C:\Windows\system32
- net: Preconfig
- site: https://cygwin.mirror.constant.com/
- solving: 3 tasks, update: no, use test packages: no
- solving: 11 tasks, update: no, use test packages: no
- Augmented Transaction List:
- 0 install mingw64-x86_64-gcc-g++ 13.4.0-1
- 1 install mingw64-x86_64-libffi 3.2.1-2
- 2 install mingw64-x86_64-nghttp2 1.61.0-1
- 3 install mingw64-x86_64-win-iconv 0.0.8-1
- 4 install mingw64-x86_64-zlib 1.3.1-1
- 5 install mingw64-x86_64-zstd 1.5.7-1
- 6 install mingw64-x86_64-gettext 0.22.5-1
- 7 install mingw64-x86_64-openssl 3.0.17-1
- 8 install mingw64-x86_64-libssh2 1.11.0-1
- 9 install mingw64-x86_64-libidn2 2.3.8-1
- 10 install mingw64-x86_64-curl 8.15.0-1
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-x86_64-gcc/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-13.4.0-1-x86_64.tar.zst
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libffi/mingw64-x86_64-libffi-3.2.1-2.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.61.0-1.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-win-iconv/mingw64-x86_64-win-iconv-0.0.8-1.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-zlib/mingw64-x86_64-zlib-1.3.1-1.tar.zst
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-zstd/mingw64-x86_64-zstd-1.5.7-1.tar.zst
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-gettext/mingw64-x86_64-gettext-0.22.5-1.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-openssl/mingw64-x86_64-openssl-3.0.17-1-noarch.tar.zst
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libssh2/mingw64-x86_64-libssh2-1.11.0-1.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libidn2/mingw64-x86_64-libidn2-2.3.8-1.tar.xz
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-curl/mingw64-x86_64-curl-8.15.0-1-noarch.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-x86_64-gcc/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-13.4.0-1-x86_64.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libffi/mingw64-x86_64-libffi-3.2.1-2.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.61.0-1.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-win-iconv/mingw64-x86_64-win-iconv-0.0.8-1.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-zlib/mingw64-x86_64-zlib-1.3.1-1.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-zstd/mingw64-x86_64-zstd-1.5.7-1.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-gettext/mingw64-x86_64-gettext-0.22.5-1.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-openssl/mingw64-x86_64-openssl-3.0.17-1-noarch.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libssh2/mingw64-x86_64-libssh2-1.11.0-1.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-libidn2/mingw64-x86_64-libidn2-2.3.8-1.tar.xz
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-curl/mingw64-x86_64-curl-8.15.0-1-noarch.tar.xz
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/zp_man-db-update-index.dash"
- Ending cygwin install
- NOTE: you should run 'diskperf -y' to enable the disk statistics
- NOTE: you should run 'diskperf -y' to enable the disk statistics
2025-08-19 08:08.39 ---> using "ca5193853ab2eb4a5e8013c33ae2a6b4fe7725e2776278f3b520c313f2f1c26c" from cache
/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package system-mingw is already installed (current version is 1).
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-env-mingw64 is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0).
[NOTE] Package host-system-mingw is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[NOTE] Package flexdll is already installed (current version is 0.44).
[NOTE] Package conf-mingw-w64-gcc-x86_64 is already installed (current version is 1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
[NOTE] Package arch-x86_64 is already installed (current version is 1).
The following actions will be performed:
=== recompile 1 package
- recompile mingw-w64-shims 0.2.0
=== install 90 packages
- install angstrom 0.16.1
- install astring 0.8.5
- install backoff 0.1.1
- install base v0.17.3
- install base-bytes base
- install bigarray-compat 1.1.0
- install bigstringaf 0.10.0
- install camlp-streams 5.0.1
- install camlzip 1.13
- install cmdliner 1.3.0
- install conf-libcurl 2
- install conf-libffi 2.0.0
- install conf-mingw-w64-curl-x86_64 1
- install conf-mingw-w64-libffi-x86_64 1
- install conf-mingw-w64-zlib-x86_64 1
- install conf-pkg-config 4
- install conf-zlib 1
- install cppo 1.8.0
- install csexp 1.5.2
- install csv 2.4
- install ctypes 0.23.0
- install ctypes-foreign 0.23.0
- install curl 0.10.0
- install dune 3.19.1
- install dune-configurator 3.19.1
- install dune-private-libs 3.19.1
- install dune-site 3.19.1
- install dyn 3.19.1
- install fieldslib v0.17.0
- install fmt 0.11.0
- install integers 0.7.0
- install jane-street-headers v0.17.0
- install jst-config v0.17.0
- install logs 0.9.0
- install mdx 2.5.0
- install mtime 2.1.0
- install multicore-magic 2.3.1
- install num 1.6
- install ocaml-compiler-libs v0.17.0
- install ocaml-syntax-shims 1.0.0
- install ocaml-version 4.0.1
- install ocaml_intrinsics_kernel v0.17.1
- install ocamlbuild 0.16.1
- install ocamlfind 1.9.8
- install ordering 3.19.1
- install parsexp v0.17.0
- install pp 2.0.0
- install pprint 20230830
- install ppx_assert v0.17.0
- install ppx_base v0.17.0
- install ppx_cold v0.17.0
- install ppx_compare v0.17.0
- install ppx_derivers 1.2.1
- install ppx_deriving 6.1.1
- install ppx_enumerate v0.17.0
- install ppx_expect v0.17.3
- install ppx_fields_conv v0.17.0
- install ppx_globalize v0.17.2
- install ppx_hash v0.17.0
- install ppx_here v0.17.0
- install ppx_inline_test v0.17.1
- install ppx_minidebug 2.3.0
- install ppx_optcomp v0.17.1
- install ppx_sexp_conv v0.17.1
- install ppx_string v0.17.0
- install ppx_variants_conv v0.17.1
- install ppxlib 0.36.0
- install ppxlib_jane v0.17.4
- install printbox 0.12
- install printbox-ext-plot 0.12
- install printbox-html 0.12
- install printbox-md 0.12
- install printbox-text 0.12
- install ptime 1.2.0
- install re 1.13.2
- install result 1.5
- install saturn_lockfree 0.5.0
- install seq base
- install sexplib v0.17.0
- install sexplib0 v0.17.0
- install stdio v0.17.0
- install stdlib-shims 0.3.0
- install stdune 3.19.1
- install thread-local-storage 0.2
- install time_now v0.17.0
- install topkg 1.1.0
- install tyxml 4.6.0
- install uucp 16.0.0
- install uutf 1.0.4
- install variantslib v0.17.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved angstrom.0.16.1 (cached)
-> retrieved astring.0.8.5 (cached)
-> retrieved backoff.0.1.1 (cached)
-> retrieved bigarray-compat.1.1.0 (cached)
-> retrieved bigstringaf.0.10.0 (cached)
-> retrieved camlp-streams.5.0.1 (cached)
-> retrieved camlzip.1.13 (cached)
-> retrieved base.v0.17.3 (https://github.com/janestreet/base/archive/refs/tags/v0.17.3.tar.gz)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved cppo.1.8.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved csv.2.4 (cached)
-> installed conf-pkg-config.4
-> retrieved curl.0.10.0 (cached)
-> retrieved ctypes.0.23.0, ctypes-foreign.0.23.0 (cached)
-> retrieved fieldslib.v0.17.0 (cached)
-> installed conf-mingw-w64-curl-x86_64.1
-> retrieved integers.0.7.0 (cached)
-> retrieved fmt.0.11.0 (https://erratique.ch/software/fmt/releases/fmt-0.11.0.tbz)
-> retrieved jane-street-headers.v0.17.0 (cached)
-> retrieved jst-config.v0.17.0 (cached)
-> installed conf-mingw-w64-libffi-x86_64.1
-> installed conf-mingw-w64-zlib-x86_64.1
-> retrieved logs.0.9.0 (https://erratique.ch/software/logs/releases/logs-0.9.0.tbz)
-> installed conf-libffi.2.0.0
-> retrieved mingw-w64-shims.0.2.0 (cached)
-> removed mingw-w64-shims.0.2.0
-> retrieved mdx.2.5.0 (cached)
-> retrieved mtime.2.1.0 (cached)
-> installed conf-zlib.1
-> retrieved multicore-magic.2.3.1 (cached)
-> retrieved num.1.6 (https://github.com/ocaml/num/archive/refs/tags/v1.6.tar.gz)
-> retrieved ocaml-compiler-libs.v0.17.0 (cached)
-> retrieved ocaml-syntax-shims.1.0.0 (cached)
-> installed mingw-w64-shims.0.2.0
-> retrieved ocaml-version.4.0.1 (https://github.com/ocurrent/ocaml-version/releases/download/v4.0.1/ocaml-version-4.0.1.tbz)
-> retrieved ocaml_intrinsics_kernel.v0.17.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ocamlbuild.0.16.1 (cached)
-> retrieved parsexp.v0.17.0 (cached)
-> retrieved pp.2.0.0 (cached)
-> retrieved pprint.20230830 (cached)
-> retrieved ppx_assert.v0.17.0 (cached)
-> retrieved ppx_base.v0.17.0 (cached)
-> retrieved ppx_cold.v0.17.0 (cached)
-> retrieved ppx_compare.v0.17.0 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved ppx_enumerate.v0.17.0 (cached)
-> installed cmdliner.1.3.0
-> installed conf-libcurl.2
-> retrieved ppx_deriving.6.1.1 (https://github.com/ocaml-ppx/ppx_deriving/releases/download/v6.1.1/ppx_deriving-6.1.1.tar.gz)
-> retrieved ppx_expect.v0.17.3 (https://github.com/janestreet/ppx_expect/archive/refs/tags/v0.17.3.tar.gz)
-> retrieved ppx_fields_conv.v0.17.0 (cached)
-> retrieved ppx_hash.v0.17.0 (cached)
-> retrieved ppx_globalize.v0.17.2 (https://github.com/janestreet/ppx_globalize/archive/refs/tags/v0.17.2.tar.gz)
-> retrieved ppx_here.v0.17.0 (cached)
-> installed num.1.6
-> retrieved ppx_inline_test.v0.17.1 (https://github.com/janestreet/ppx_inline_test/archive/refs/tags/v0.17.1.tar.gz)
-> retrieved ppx_minidebug.2.3.0 (https://github.com/lukstafi/ppx_minidebug/archive/refs/tags/2.3.0.tar.gz)
-> retrieved ppx_optcomp.v0.17.1 (https://github.com/janestreet/ppx_optcomp/archive/refs/tags/v0.17.1.tar.gz)
-> retrieved ppx_sexp_conv.v0.17.1 (https://github.com/janestreet/ppx_sexp_conv/archive/refs/tags/v0.17.1.tar.gz)
-> retrieved ppx_string.v0.17.0 (cached)
-> retrieved dune.3.19.1, dune-configurator.3.19.1, dune-private-libs.3.19.1, dune-site.3.19.1, dyn.3.19.1, ordering.3.19.1, stdune.3.19.1 (https://github.com/ocaml/dune/releases/download/3.19.1/dune-3.19.1.tbz)
-> retrieved ppx_variants_conv.v0.17.1 (https://github.com/janestreet/ppx_variants_conv/archive/refs/tags/v0.17.1.tar.gz)
-> retrieved ppxlib.0.36.0 (cached)
-> retrieved printbox.0.12, printbox-ext-plot.0.12, printbox-html.0.12, printbox-md.0.12, printbox-text.0.12 (cached)
-> retrieved ppxlib_jane.v0.17.4 (https://github.com/janestreet/ppxlib_jane/archive/refs/tags/v0.17.4.tar.gz)
-> retrieved ptime.1.2.0 (cached)
-> retrieved result.1.5 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved re.1.13.2 (https://github.com/ocaml/ocaml-re/archive/refs/tags/1.13.2.tar.gz)
-> retrieved saturn_lockfree.0.5.0 (cached)
-> retrieved sexplib.v0.17.0 (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved stdio.v0.17.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved thread-local-storage.0.2 (cached)
-> retrieved time_now.v0.17.0 (cached)
-> retrieved tyxml.4.6.0 (cached)
-> retrieved topkg.1.1.0 (https://erratique.ch/software/topkg/releases/topkg-1.1.0.tbz)
-> retrieved uucp.16.0.0 (cached)
-> retrieved uutf.1.0.4 (cached)
-> retrieved variantslib.v0.17.0 (cached)
-> installed ocamlbuild.0.16.1
[WARNING] .install file is missing .exe extension for src/findlib/ocamlfind
[WARNING] .install file is missing .exe extension for src/findlib/ocamlfind_opt
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.3.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind.exe
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.3.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind_opt.exe
[WARNING] C:\Users\opam\AppData\Local\opam\5.3.0\bin\safe_camlp4 is a script; the command won't be available
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed camlzip.1.13
-> installed topkg.1.1.0
-> installed uutf.1.0.4
-> installed astring.0.8.5
-> installed fmt.0.11.0
-> installed ptime.1.2.0
-> installed mtime.2.1.0
-> installed logs.0.9.0
-> installed uucp.16.0.0
-> installed dune.3.19.1
-> installed backoff.0.1.1
-> installed bigarray-compat.1.1.0
-> installed camlp-streams.5.0.1
-> installed csexp.1.5.2
-> installed jane-street-headers.v0.17.0
-> installed cppo.1.8.0
-> installed csv.2.4
-> installed multicore-magic.2.3.1
-> installed ocaml-compiler-libs.v0.17.0
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml-version.4.0.1
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed pp.2.0.0
-> installed pprint.20230830
-> installed ppx_derivers.1.2.1
-> installed printbox.0.12
-> installed dune-configurator.3.19.1
-> installed ordering.3.19.1
-> installed result.1.5
-> installed stdlib-shims.0.3.0
-> installed bigstringaf.0.10.0
-> installed curl.0.10.0
-> installed printbox-text.0.12
-> installed re.1.13.2
-> installed angstrom.0.16.1
-> installed dyn.3.19.1
-> installed integers.0.7.0
-> installed mdx.2.5.0
-> installed printbox-md.0.12
-> installed saturn_lockfree.0.5.0
-> installed sexplib0.v0.17.0
-> installed thread-local-storage.0.2
-> installed tyxml.4.6.0
-> installed printbox-html.0.12
-> installed parsexp.v0.17.0
-> installed printbox-ext-plot.0.12
-> installed sexplib.v0.17.0
-> installed stdune.3.19.1
-> installed base.v0.17.3
-> installed ppxlib.0.36.0
-> installed ctypes.0.23.0
-> installed fieldslib.v0.17.0
-> installed stdio.v0.17.0
-> installed variantslib.v0.17.0
-> installed ppx_cold.v0.17.0
-> installed ppx_here.v0.17.0
-> installed dune-private-libs.3.19.1
-> installed ppx_deriving.6.1.1
-> installed ctypes-foreign.0.23.0
-> installed ppx_fields_conv.v0.17.0
-> installed ppx_optcomp.v0.17.1
-> installed ppx_variants_conv.v0.17.1
-> installed ppxlib_jane.v0.17.4
-> installed dune-site.3.19.1
-> installed ppx_enumerate.v0.17.0
-> installed ppx_globalize.v0.17.2
-> installed ppx_compare.v0.17.0
-> installed ppx_sexp_conv.v0.17.1
-> installed ppx_hash.v0.17.0
-> installed ppx_minidebug.2.3.0
-> installed ppx_assert.v0.17.0
-> installed ppx_base.v0.17.0
-> installed ppx_string.v0.17.0
-> installed jst-config.v0.17.0
-> installed time_now.v0.17.0
-> installed ppx_inline_test.v0.17.1
-> installed ppx_expect.v0.17.3
Done.
# To update the current shell environment, run: eval $(opam env)
2025-08-19 08:08.39 ---> using "4d2c28823052cb003bffe660402642bcf1f55ea1a3ddc9aac9015dcc560c39be" from cache
/: (copy (src .) (dst /Users/opam/src))
2025-08-19 08:09.51 ---> saved as "f87761622fa97d56fc252be3e9983cc77ee07d6ef41545bb67fe358b5e589aed"
/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/test/operations/config && ..\..\..\arrayjit\bin\read_config.exe --read=backend)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Wrote value of 'backend' to ocannl_backend.txt
(cd _build/default/test/ppx && .\test_ppx_op_expected.exe)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/default/test/ppx && .\test_ppx_op.exe)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
File "test/training/dune", line 14, characters 7-22:
14 | (name moons_demo_mini)
^^^^^^^^^^^^^^^
(cd _build/default/test/training && .\moons_demo_mini.exe) > _build/default/test/training/moons_demo_mini.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_47938a.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_47938a8e65b0.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_47938a_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x10e5): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x11ba): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1262): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_47938a.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_47938a8e65b0.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_47938a_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x10e5): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x11ba): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbq0KXe.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_47938a.c:(.text+0x1262): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Moons_demo_mini.main in file "test/training/moons_demo_mini.ml", line 51, characters 12-67
Called from Dune__exe__Moons_demo_mini in file "test/training/moons_demo_mini.ml", line 135, characters 9-16
File "test/training/dune", line 5, characters 7-17:
5 | (name moons_demo)
^^^^^^^^^^
(cd _build/default/test/training && .\moons_demo.exe) > _build/default/test/training/moons_demo.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_410d51.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_410d512f0e8a.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_410d51_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x1026): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x102d): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x10ef): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x11a2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x125e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x130e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x13b6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_410d51.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_410d512f0e8a.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_410d51_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x1026): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x102d): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x10ef): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x11a2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x125e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x130e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc6i5nmR.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_410d51.c:(.text+0x13b6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Moons_demo.main in file "test/training/moons_demo.ml", line 53, characters 12-67
Called from Dune__exe__Moons_demo in file "test/training/moons_demo.ml", line 142, characters 9-16
File "test/training/dune", line 32, characters 7-13:
32 | (name bigram)
^^^^^^
(cd _build/default/test/training && .\bigram.exe) > _build/default/test/training/bigram.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_fe389f.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_fe389ff63732.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_fe389f_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x10e6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_fe389f.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_fe389ff63732.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_fe389f_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cck7eyoO.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_fe389f.c:(.text+0x10e6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Bigram in file "test/training/bigram.ml", line 69, characters 12-66
File "test/training/dune", line 41, characters 7-17:
41 | (name bigram_mlp)
^^^^^^^^^^
(cd _build/default/test/training && .\bigram_mlp.exe) > _build/default/test/training/bigram_mlp.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_7f2718.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_7f2718412822.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_batch_loss_7f2718_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x10f2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x11b2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1272): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_7f2718.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_7f2718412822.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_batch_loss_7f2718_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x10f2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x11b2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc455iLY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_batch_loss_7f2718.c:(.text+0x1272): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Bigram_mlp in file "test/training/bigram_mlp.ml", line 73, characters 12-66
File "test/training/dune", line 23, characters 7-26:
23 | (name moons_demo_parallel)
^^^^^^^^^^^^^^^^^^^
(cd _build/default/test/training && .\moons_demo_parallel.exe) > _build/default/test/training/moons_demo_parallel.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_e59715.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_e59715c1e87b.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_e59715_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x1026): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x102d): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x10ef): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x11a2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x125e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x130e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x13b6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_e59715.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_e59715c1e87b.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_e59715_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x1026): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x102d): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x1034): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x10ef): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x11a2): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x125e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x130e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccmoKlVM.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_e59715.c:(.text+0x13b6): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Ocannl__Train.example_train_loop in file "lib/train.ml", line 404, characters 13-80
Called from Dune__exe__Moons_demo_parallel.main in file "test/training/moons_demo_parallel.ml", lines 63-67, characters 4-8
Called from Dune__exe__Moons_demo_parallel in file "test/training/moons_demo_parallel.ml", line 110, characters 9-16
File "test/einsum/dune", line 37, characters 7-24:
37 | (name test_surjectivity)
^^^^^^^^^^^^^^^^^
(cd _build/default/test/einsum && .\test_surjectivity.exe) > _build/default/test/einsum/test_surjectivity.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_73412e.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_73412efb78e1.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_73412e_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_73412e.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_73412efb78e1.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_73412e_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccfjkMYT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_73412e.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Test_surjectivity.test_diagonal_tensor in file "test/einsum/test_surjectivity.ml", line 20, characters 9-55
Called from Dune__exe__Test_surjectivity in file "test/einsum/test_surjectivity.ml", line 69, characters 2-25
File "test/einsum/dune", lines 70-79, characters 0-252:
70 | (rule
71 | (alias runtest)
72 | (target inline_permuted_view-c_fwd.ll.actual)
73 | (action
74 | (no-infer
75 | (progn
76 | (run
77 | %{dep:inline_permuted_view.exe}
78 | "--ocannl_output_debug_files_in_build_directory=true")
79 | (copy build_files/c_fwd.ll %{target})))))
(cd _build/default/test/einsum && .\inline_permuted_view.exe --ocannl_output_debug_files_in_build_directory=true)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
build_files/c_fwd.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwdececd1.dll -shared >> build_files/c_fwd_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r build_files/c_fwd.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwdececd1.dll -shared >> build_files/c_fwd_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPFYQ7Y.o:c_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Inline_permuted_view.inline_inner in file "test/einsum/inline_permuted_view.ml", line 20, characters 9-48
Called from Dune__exe__Inline_permuted_view in file "test/einsum/inline_permuted_view.ml", line 39, characters 2-17
File "test/einsum/dune", line 64, characters 7-27:
64 | (name inline_permuted_view)
^^^^^^^^^^^^^^^^^^^^
(cd _build/default/test/einsum && .\inline_permuted_view.exe)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_ea934e.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_ea934e7e9505.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_ea934e_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_ea934e.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_ea934e7e9505.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_ea934e_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccP6AtiF.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_ea934e.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Inline_permuted_view.inline_inner in file "test/einsum/inline_permuted_view.ml", line 20, characters 9-48
Called from Dune__exe__Inline_permuted_view in file "test/einsum/inline_permuted_view.ml", line 39, characters 2-17
File "test/einsum/dune", line 13, characters 7-25:
13 | (name einsum_trivia_exec)
^^^^^^^^^^^^^^^^^^
(cd _build/default/test/einsum && .\einsum_trivia_exec.exe) > _build/default/test/einsum/einsum_trivia_exec.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_1e1084.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_1e108448142b.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_1e1084_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_1e1084.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_1e108448142b.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_1e1084_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc074kVv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_1e1084.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Einsum_trivia_exec in file "test/einsum/einsum_trivia_exec.ml", line 27, characters 9-40
(cd _build/default/test/operations && .\test_threefry_precision.exe)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Threefry4x32 result precision: uint4x32
Uniform result precision: single
Retrieving commandline, environment, or config file variable ocannl_backend
Found sync_cc, in the config file
Retrieving commandline, environment, or config file variable ocannl_cd_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_ll_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_output_prec_in_ll_files
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_prefer_backend_uniformity
Found true, in the config file
Retrieving commandline, environment, or config file variable ocannl_debug_log_to_stream_files
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_output_dlls_in_build_directory
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_cc_backend_optimization_level
Not found, using default 3
Retrieving commandline, environment, or config file variable ocannl_cc_backend_compiler_command
Not found, using default x86_64-w64-mingw32-gcc
Unexpected error: (Invalid_argument
"Cc_backend.c_compile_and_load: compilation failed with errors:\
\nCommand: x86_64-w64-mingw32-gcc\r build_files/uniform_fwd.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\uniform_fwd68dbcf.dll -shared >> build_files/uniform_fwd_run_id_1.log 2>&1\
\nBuiltins lib: ''\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x1012): undefined reference to `__imp_int32_to_uint4x32'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x102e): undefined reference to `__imp_double_to_uint4x32'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x1070): undefined reference to `__imp_arrayjit_threefry4x32'\
\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x107e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\
\ncollect2: error: ld returned 1 exit status\
\n")
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
build_files/uniform_fwd.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\uniform_fwd68dbcf.dll -shared >> build_files/uniform_fwd_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x1012): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x102e): undefined reference to `__imp_double_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x1070): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cckHvMgt.o:uniform_fwd.c:(.text+0x107e): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
File "test/einsum/dune", line 45, characters 7-34:
45 | (name test_accumulation_semantics)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(cd _build/default/test/einsum && .\test_accumulation_semantics.exe) > _build/default/test/einsum/test_accumulation_semantics.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\result_fwd_e0387a.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\result_fwd_e0387aba94ce.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\result_fwd_e0387a_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\result_fwd_e0387a.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\result_fwd_e0387aba94ce.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\result_fwd_e0387a_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccytrRqz.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/result_fwd_e0387a.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Test_accumulation_semantics.test_einsum_reduction in file "test/einsum/test_accumulation_semantics.ml", line 27, characters 9-53
Called from Dune__exe__Test_accumulation_semantics in file "test/einsum/test_accumulation_semantics.ml", line 108, characters 2-26
File "test/operations/dune", lines 22-34, characters 0-482:
22 | (rule
23 | (targets micrograd_demo-%{read:config/ocannl_backend.txt}.done)
24 | (action
....
32 | ; We have to clean up to avoid appending to results of a previous run
33 | "--ocannl_clean_up_artifacts_on_startup=true")
34(write-file %{targets} "completed\n"))))
(cd _build/default/test/operations && .\micrograd_demo_logging.exe --ocannl_debug_backend=text --ocannl_log_file_stem=micrograd_demo_logging --ocannl_log_main_domain_to_stdout=false --ocannl_debug_log_to_stream_files=true --ocannl_clean_up_artifacts_on_startup=true)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Retrieving commandline, environment, or config file variable ocannl_backend
Found sync_cc, in the config file
Retrieving commandline, environment, or config file variable ocannl_never_capture_stdout
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_cd_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_ll_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_output_prec_in_ll_files
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_prefer_backend_uniformity
Found true, in the config file
Retrieving commandline, environment, or config file variable ocannl_debug_log_to_stream_files
Found true, commandline --ocannl_debug_log_to_stream_files=true
Retrieving commandline, environment, or config file variable ocannl_output_dlls_in_build_directory
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_cc_backend_optimization_level
Not found, using default 3
Retrieving commandline, environment, or config file variable ocannl_cc_backend_compiler_command
Not found, using default x86_64-w64-mingw32-gcc
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
build_files/init_params_for_g.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_g9976a5.dll -shared >> build_files/init_params_for_g_run_id_1.log 2>&1
Builtins lib: ''
build_files/init_params_for_g.c: In function 'init_params_for_g':
build_files/init_params_for_g.c:696:3: error: unknown type name 'FILE'
696 | FILE* log_file = NULL;
| ^~~~
build_files/init_params_for_g.c:6:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
5 | #include <stdlib.h>
+++ |+#include <stdio.h>
6 |
build_files/init_params_for_g.c:698:16: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
698 | log_file = fopen(log_file_name, "w");
| ^~~~~
build_files/init_params_for_g.c:698:16: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
build_files/init_params_for_g.c:698:14: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
698 | log_file = fopen(log_file_name, "w");
| ^
build_files/init_params_for_g.c:702:34: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
702 | if (log_file_name && log_file) fprintf(log_file, "float *a &[1] = %p\n", (void*)a);
| ^~~~~~~
build_files/init_params_for_g.c:702:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:702:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
build_files/init_params_for_g.c:702:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:703:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
703 | if (log_file_name && log_file) fprintf(log_file, "float *b &[1] = %p\n", (void*)b);
| ^~~~~~~
build_files/init_params_for_g.c:703:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:707:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
707 | if (log_file_name && log_file) fprintf(log_file, "COMMENT: init params for g\n");
| ^~~~~~~
build_files/init_params_for_g.c:707:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:710:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
710 | if (log_file_name && log_file) fprintf(log_file, "# a[0] := -4;\n");
| ^~~~~~~
build_files/init_params_for_g.c:710:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:711:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
711 | if (log_file_name && log_file) fprintf(log_file, "a[%u]{=%de-3} = %de-3 = (float)(-4)\n", 0, (int)(a[0] * 1000.0), (int)(new_set_v * 1000.0));
| ^~~~~~~
build_files/init_params_for_g.c:711:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:712:5: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
712 | fflush(log_file);
| ^~~~~~
build_files/init_params_for_g.c:717:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
717 | if (log_file_name && log_file) fprintf(log_file, "# b[0] := 2;\n");
| ^~~~~~~
build_files/init_params_for_g.c:717:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:718:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
718 | if (log_file_name && log_file) fprintf(log_file, "b[%u]{=%de-3} = %de-3 = (float)(2)\n", 0, (int)(b[0] * 1000.0), (int)(new_set_v * 1000.0));
| ^~~~~~~
build_files/init_params_for_g.c:718:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:722:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
722 | if (log_file_name && log_file) fprintf(log_file, "COMMENT: end\n");
| ^~~~~~~
build_files/init_params_for_g.c:722:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'
build_files/init_params_for_g.c:723:19: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
723 | if (log_file) { fclose(log_file); log_file = NULL; }
| ^~~~~~
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r build_files/init_params_for_g.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_g9976a5.dll -shared >> build_files/init_params_for_g_run_id_1.log 2>&1\nBuiltins lib: ''\nbuild_files/init_params_for_g.c: In function 'init_params_for_g':\nbuild_files/init_params_for_g.c:696:3: error: unknown type name 'FILE'\n 696 | FILE* log_file = NULL;\n | ^~~~\nbuild_files/init_params_for_g.c:6:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?\n 5 | #include <stdlib.h>\n +++ |+#include <stdio.h>\n 6 | \nbuild_files/init_params_for_g.c:698:16: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]\n 698 | log_file = fopen(log_file_name, \"w\");\n | ^~~~~\nbuild_files/init_params_for_g.c:698:16: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?\nbuild_files/init_params_for_g.c:698:14: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]\n 698 | log_file = fopen(log_file_name, \"w\");\n | ^\nbuild_files/init_params_for_g.c:702:34: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]\n 702 | if (log_file_name && log_file) fprintf(log_file, \"float *a &[1] = %p\\n\", (void*)a);\n | ^~~~~~~\nbuild_files/init_params_for_g.c:702:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:702:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\nbuild_files/init_params_for_g.c:702:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:703:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 703 | if (log_file_name && log_file) fprintf(log_file, \"float *b &[1] = %p\\n\", (void*)b);\n | ^~~~~~~\nbuild_files/init_params_for_g.c:703:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:707:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 707 | if (log_file_name && log_file) fprintf(log_file, \"COMMENT: init params for g\\n\");\n | ^~~~~~~\nbuild_files/init_params_for_g.c:707:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:710:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 710 | if (log_file_name && log_file) fprintf(log_file, \"# a[0] := -4;\\n\");\n | ^~~~~~~\nbuild_files/init_params_for_g.c:710:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:711:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 711 | if (log_file_name && log_file) fprintf(log_file, \"a[%u]{=%de-3} = %de-3 = (float)(-4)\\n\", 0, (int)(a[0] * 1000.0), (int)(new_set_v * 1000.0));\n | ^~~~~~~\nbuild_files/init_params_for_g.c:711:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:712:5: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]\n 712 | fflush(log_file);\n | ^~~~~~\nbuild_files/init_params_for_g.c:717:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 717 | if (log_file_name && log_file) fprintf(log_file, \"# b[0] := 2;\\n\");\n | ^~~~~~~\nbuild_files/init_params_for_g.c:717:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:718:36: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 718 | if (log_file_name && log_file) fprintf(log_file, \"b[%u]{=%de-3} = %de-3 = (float)(2)\\n\", 0, (int)(b[0] * 1000.0), (int)(new_set_v * 1000.0));\n | ^~~~~~~\nbuild_files/init_params_for_g.c:718:36: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:722:34: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]\n 722 | if (log_file_name && log_file) fprintf(log_file, \"COMMENT: end\\n\");\n | ^~~~~~~\nbuild_files/init_params_for_g.c:722:34: note: include '<stdio.h>' or provide a declaration of 'fprintf'\nbuild_files/init_params_for_g.c:723:19: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]\n 723 | if (log_file) { fclose(log_file); log_file = NULL; }\n | ^~~~~~\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
Called from Dune__exe__Micrograd_demo_logging.(fun) in file "test/operations/micrograd_demo_logging.ml", line 31, characters 9-47
Called from Utils.capture_stdout_logs in file "arrayjit/lib/utils.ml", line 864, characters 10-16
Re-raised at Utils.capture_stdout_logs in file "arrayjit/lib/utils.ml", line 895, characters 8-87
Called from Dune__exe__Micrograd_demo_logging in file "test/operations/micrograd_demo_logging.ml", lines 30-35, characters 2-27
File "test/einsum/dune", line 5, characters 7-25:
5 | (name moons_demo_variant)
^^^^^^^^^^^^^^^^^^
(cd _build/default/test/einsum && .\moons_demo_variant.exe) > _build/default/test/einsum/moons_demo_variant.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_d7cc63.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_d7cc6319e87d.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_scalar_loss_d7cc63_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x10e5): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x11ba): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1262): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_d7cc63.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_d7cc6319e87d.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_scalar_loss_d7cc63_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1024): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x102b): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1035): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x10e5): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x11ba): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc0mltIc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_scalar_loss_d7cc63.c:(.text+0x1262): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Moons_demo_variant in file "test/einsum/moons_demo_variant.ml", line 47, characters 12-67
File "test/operations/dune", lines 85-94, characters 0-292:
85 | (rule
86 | (target n3_fwd_with_prec-unoptimized.ll.actual)
87 | (action
88 | (no-infer
89 | (progn
90 | (run
91 | %{dep:threefry4x32_demo.exe}
92 | "--ocannl_output_prec_in_ll_files=true"
93 | "--ocannl_output_debug_files_in_build_directory=true")
94 | (copy build_files/n3_fwd-unoptimized.ll %{target})))))
(cd _build/default/test/operations && .\threefry4x32_demo.exe --ocannl_output_prec_in_ll_files=true --ocannl_output_debug_files_in_build_directory=true)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
build_files/n3_fwd.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd19ac69.dll -shared >> build_files/n3_fwd_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_half_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r build_files/n3_fwd.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd19ac69.dll -shared >> build_files/n3_fwd_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccKdALk6.o:n3_fwd.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_half_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Threefry4x32_demo in file "test/operations/threefry4x32_demo.ml", line 26, characters 9-68
File "test/operations/dune", line 77, characters 7-20:
77 | (name top_down_prec)
^^^^^^^^^^^^^
(cd _build/default/test/operations && .\top_down_prec.exe) > _build/default/test/operations/top_down_prec.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_d_7edb35.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_d_7edb355a1485.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_d_7edb35_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x101f): undefined reference to `__imp_single_to_bfloat16'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_d_7edb35.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_d_7edb355a1485.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_d_7edb35_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbqHJ3b.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_d_7edb35.c:(.text+0x101f): undefined reference to `__imp_single_to_bfloat16'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Top_down_prec in file "test/operations/top_down_prec.ml", line 17, characters 9-55
File "test/operations/dune", lines 96-105, characters 0-284:
96 | (rule
97 | (target top_down_prec-unoptimized.ll.actual)
98 | (action
99 | (no-infer
100 | (progn
101 | (run
102 | %{dep:top_down_prec.exe}
103 | "--ocannl_output_prec_in_ll_files=true"
104 | "--ocannl_output_debug_files_in_build_directory=true")
105 | (copy build_files/d_fwd-unoptimized.ll %{target})))))
(cd _build/default/test/operations && .\top_down_prec.exe --ocannl_output_prec_in_ll_files=true --ocannl_output_debug_files_in_build_directory=true)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
build_files/init_params_for_d.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_dfb72c4.dll -shared >> build_files/init_params_for_d_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x101f): undefined reference to `__imp_single_to_bfloat16'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r build_files/init_params_for_d.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_dfb72c4.dll -shared >> build_files/init_params_for_d_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccw0PCTV.o:init_params_for_d.c:(.text+0x101f): undefined reference to `__imp_single_to_bfloat16'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Top_down_prec in file "test/operations/top_down_prec.ml", line 17, characters 9-55
File "test/operations/dune", line 122, characters 7-22:
122 | (name test_vec_simple)
^^^^^^^^^^^^^^^
(cd _build/default/test/operations && .\test_vec_simple.exe) > _build/default/test/operations/test_vec_simple.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_9b6fcd.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_9b6fcde26efd.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_9b6fcd_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1010): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1026): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x106a): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1078): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_9b6fcd.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_9b6fcde26efd.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_9b6fcd_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1010): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1026): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x106a): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9BjwEU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_9b6fcd.c:(.text+0x1078): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Test_vec_simple in file "test/operations/test_vec_simple.ml", line 16, characters 9-68
File "test/operations/dune", line 143, characters 7-24:
143 | (name test_where_simple)
^^^^^^^^^^^^^^^^^
(cd _build/default/test/operations && .\test_where_simple.exe) > _build/default/test/operations/test_where_simple.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_7a5aea.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_7a5aea385c02.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_7a5aea_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_7a5aea.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_7a5aea385c02.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_7a5aea_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccSyIwwS.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_7a5aea.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
Called from Dune__exe__Test_where_simple in file "test/operations/test_where_simple.ml", line 22, characters 12-69
File "test/operations/dune", line 70, characters 7-24:
70 | (name threefry4x32_demo)
^^^^^^^^^^^^^^^^^
(cd _build/default/test/operations && .\threefry4x32_demo.exe) > _build/default/test/operations/threefry4x32_demo.exe.output
Cc_backend.c_compile_and_load: compilation failed with errors:
Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_004811.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_004811c1780b.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_004811_run_id_1.log 2>&1
Builtins lib: ''
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'
/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_half_uniform_vec'
collect2: error: ld returned 1 exit status
Fatal error: exception Invalid_argument("Cc_backend.c_compile_and_load: compilation failed with errors:\nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_004811.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_004811c1780b.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_004811_run_id_1.log 2>&1\nBuiltins lib: ''\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'\n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc9FQkB5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_004811.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_half_uniform_vec'\ncollect2: error: ld returned 1 exit status\n")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
Called from Dune__exe__Threefry4x32_demo in file "test/operations/threefry4x32_demo.ml", line 26, characters 9-68
(cd _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum && .einsum_tutorials.inline-tests\inline-test-runner.exe inline-test-runner einsum_tutorials -partition "Found 0, in the config file" -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum && .einsum_tutorials.inline-tests\inline-test-runner.exe inline-test-runner einsum_tutorials -partition "Retrieving commandline, environment, or config file variable ocannl_log_level" -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition "Found 0, in the config file" -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition "Retrieving commandline, environment, or config file variable ocannl_log_level" -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition test_threefry4x32.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum && .einsum_tutorials.inline-tests\inline-test-runner.exe inline-test-runner einsum_tutorials -partition surjectivity.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition zero2hero_1of7.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition hello_world_op.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum && .einsum_tutorials.inline-tests\inline-test-runner.exe inline-test-runner einsum_tutorials -partition einsum_trivia.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
File "test/einsum/einsum_trivia.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml.corrected
diff --git a/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml b/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml.corrected
index 2bcae70..8d95c38 100644
--- a/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml
+++ b/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/einsum_trivia.ml.corrected
@@ -27,135 +27,47 @@ let%expect_test "einsum1 permute axes" =
let%op ho = hey ++ "b|i->o => o|b->i" in
ignore (Train.forward_once backend ho);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:29:21
- ┌───────────────────────────────────────────────────────────────────────────┐
- │[1]: =>_ho shape 0:4|2:2->1:3 │
- │┌──────┬───────────────┬───────────────┬───────────────┬──────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 │3 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 │axis 2 ││
- │├──────┼───────────────┼───────────────┼───────────────┼──────────────────┤│
- ││axis 1│ 0.00 1.20e+1 │ 3.00 1.50e+1 │ 6.00 1.80e+1 │ 9.00 2.10e+1 ││
- ││ │ 1.00 1.30e+1 │ 4.00 1.60e+1 │ 7.00 1.90e+1 │ 1.00e+1 2.20e+1 ││
- ││ │ 2.00 1.40e+1 │ 5.00 1.70e+1 │ 8.00 2.00e+1 │ 1.10e+1 2.30e+1 ││
- │└──────┴───────────────┴───────────────┴───────────────┴──────────────────┘│
- └───────────────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let hey2 =
TDSL.range_of_shape ~batch_dims:[ 2; 3 ] ~input_dims:[ 4; 5 ] ~output_dims:[ 6; 7 ] ()
in
let%op ho2 = hey2 ++ "ab|cd->ef => cf|ae->db" in
ignore (Train.forward_once backend ho2);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho2;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:50:21
- ┌────────────────────────────────────────────────────────────────────────────────────────────┐
- │[3]: =>_ho2 shape 0:4,1:7|4:2,5:6->2:5,3:3 │
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││0 @ 1 │0 @ 4 │1 @ 4 ││
- ││ │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 0.00 1.40e+2 ... 5.60e+2 7.00e+2 │ 2.52e+3 2.66e+3 ... 3.08e+3 3.22e+3 ││
- ││axis 3│ 8.40e+2 9.80e+2 ... 1.40e+3 1.54e+3 │ 3.36e+3 3.50e+3 ... 3.92e+3 4.06e+3 ││
- ││ │ 1.68e+3 1.82e+3 ... 2.24e+3 2.38e+3 │ 4.20e+3 4.34e+3 ... 4.76e+3 4.90e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 1.00 1.41e+2 ... 5.61e+2 7.01e+2 │ 2.52e+3 2.66e+3 ... 3.08e+3 3.22e+3 ││
- ││axis 3│ 8.41e+2 9.81e+2 ... 1.40e+3 1.54e+3 │ 3.36e+3 3.50e+3 ... 3.92e+3 4.06e+3 ││
- ││ │ 1.68e+3 1.82e+3 ... 2.24e+3 2.38e+3 │ 4.20e+3 4.34e+3 ... 4.76e+3 4.90e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 2.00 1.42e+2 ... 5.62e+2 7.02e+2 │ 2.52e+3 2.66e+3 ... 3.08e+3 3.22e+3 ││
- ││axis 3│ 8.42e+2 9.82e+2 ... 1.40e+3 1.54e+3 │ 3.36e+3 3.50e+3 ... 3.92e+3 4.06e+3 ││
- ││ │ 1.68e+3 1.82e+3 ... 2.24e+3 2.38e+3 │ 4.20e+3 4.34e+3 ... 4.76e+3 4.90e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 3.00 1.43e+2 ... 5.63e+2 7.03e+2 │ 2.52e+3 2.66e+3 ... 3.08e+3 3.22e+3 ││
- ││axis 3│ 8.43e+2 9.83e+2 ... 1.40e+3 1.54e+3 │ 3.36e+3 3.50e+3 ... 3.92e+3 4.06e+3 ││
- ││ │ 1.68e+3 1.82e+3 ... 2.24e+3 2.38e+3 │ 4.20e+3 4.34e+3 ... 4.76e+3 4.90e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││4 @ 2 │ 4.00 1.44e+2 ... 5.64e+2 7.04e+2 │ 2.52e+3 2.66e+3 ... 3.08e+3 3.22e+3 ││
- ││axis 3│ 8.44e+2 9.84e+2 ... 1.40e+3 1.54e+3 │ 3.36e+3 3.50e+3 ... 3.92e+3 4.06e+3 ││
- ││ │ 1.68e+3 1.82e+3 ... 2.24e+3 2.38e+3 │ 4.20e+3 4.34e+3 ... 4.76e+3 4.90e+3 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││1 @ 1 │0 @ 4 │1 @ 4 ││
- ││ │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 2.00e+1 1.60e+2 ... 5.80e+2 7.20e+2 │ 2.54e+3 2.68e+3 ... 3.10e+3 3.24e+3 ││
- ││axis 3│ 8.60e+2 1.00e+3 ... 1.42e+3 1.56e+3 │ 3.38e+3 3.52e+3 ... 3.94e+3 4.08e+3 ││
- ││ │ 1.70e+3 1.84e+3 ... 2.26e+3 2.40e+3 │ 4.22e+3 4.36e+3 ... 4.78e+3 4.92e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 2.10e+1 1.61e+2 ... 5.81e+2 7.21e+2 │ 2.54e+3 2.68e+3 ... 3.10e+3 3.24e+3 ││
- ││axis 3│ 8.61e+2 1.00e+3 ... 1.42e+3 1.56e+3 │ 3.38e+3 3.52e+3 ... 3.94e+3 4.08e+3 ││
- ││ │ 1.70e+3 1.84e+3 ... 2.26e+3 2.40e+3 │ 4.22e+3 4.36e+3 ... 4.78e+3 4.92e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 2.20e+1 1.62e+2 ... 5.82e+2 7.22e+2 │ 2.54e+3 2.68e+3 ... 3.10e+3 3.24e+3 ││
- ││axis 3│ 8.62e+2 1.00e+3 ... 1.42e+3 1.56e+3 │ 3.38e+3 3.52e+3 ... 3.94e+3 4.08e+3 ││
- ││ │ 1.70e+3 1.84e+3 ... 2.26e+3 2.40e+3 │ 4.22e+3 4.36e+3 ... 4.78e+3 4.92e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 2.30e+1 1.63e+2 ... 5.83e+2 7.23e+2 │ 2.54e+3 2.68e+3 ... 3.10e+3 3.24e+3 ││
- ││axis 3│ 8.63e+2 1.00e+3 ... 1.42e+3 1.56e+3 │ 3.38e+3 3.52e+3 ... 3.94e+3 4.08e+3 ││
- ││ │ 1.70e+3 1.84e+3 ... 2.26e+3 2.40e+3 │ 4.22e+3 4.36e+3 ... 4.78e+3 4.92e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││4 @ 2 │ 2.40e+1 1.64e+2 ... 5.84e+2 7.24e+2 │ 2.54e+3 2.68e+3 ... 3.10e+3 3.24e+3 ││
- ││axis 3│ 8.64e+2 1.00e+3 ... 1.42e+3 1.56e+3 │ 3.38e+3 3.52e+3 ... 3.94e+3 4.08e+3 ││
- ││ │ 1.70e+3 1.84e+3 ... 2.26e+3 2.40e+3 │ 4.22e+3 4.36e+3 ... 4.78e+3 4.92e+3 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├────────────────────────────────────────────────────────────────────────────────────────────┤
- │ ... │
- ├────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││5 @ 1 │0 @ 4 │1 @ 4 ││
- ││ │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 1.00e+2 2.40e+2 ... 6.60e+2 8.00e+2 │ 2.62e+3 2.76e+3 ... 3.18e+3 3.32e+3 ││
- ││axis 3│ 9.40e+2 1.08e+3 ... 1.50e+3 1.64e+3 │ 3.46e+3 3.60e+3 ... 4.02e+3 4.16e+3 ││
- ││ │ 1.78e+3 1.92e+3 ... 2.34e+3 2.48e+3 │ 4.30e+3 4.44e+3 ... 4.86e+3 5.00e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 1.01e+2 2.41e+2 ... 6.61e+2 8.01e+2 │ 2.62e+3 2.76e+3 ... 3.18e+3 3.32e+3 ││
- ││axis 3│ 9.41e+2 1.08e+3 ... 1.50e+3 1.64e+3 │ 3.46e+3 3.60e+3 ... 4.02e+3 4.16e+3 ││
- ││ │ 1.78e+3 1.92e+3 ... 2.34e+3 2.48e+3 │ 4.30e+3 4.44e+3 ... 4.86e+3 5.00e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 1.02e+2 2.42e+2 ... 6.62e+2 8.02e+2 │ 2.62e+3 2.76e+3 ... 3.18e+3 3.32e+3 ││
- ││axis 3│ 9.42e+2 1.08e+3 ... 1.50e+3 1.64e+3 │ 3.46e+3 3.60e+3 ... 4.02e+3 4.16e+3 ││
- ││ │ 1.78e+3 1.92e+3 ... 2.34e+3 2.48e+3 │ 4.30e+3 4.44e+3 ... 4.86e+3 5.00e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 1.03e+2 2.43e+2 ... 6.63e+2 8.03e+2 │ 2.62e+3 2.76e+3 ... 3.18e+3 3.32e+3 ││
- ││axis 3│ 9.43e+2 1.08e+3 ... 1.50e+3 1.64e+3 │ 3.46e+3 3.60e+3 ... 4.02e+3 4.16e+3 ││
- ││ │ 1.78e+3 1.92e+3 ... 2.34e+3 2.48e+3 │ 4.30e+3 4.44e+3 ... 4.86e+3 5.00e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││4 @ 2 │ 1.04e+2 2.44e+2 ... 6.64e+2 8.04e+2 │ 2.62e+3 2.76e+3 ... 3.18e+3 3.32e+3 ││
- ││axis 3│ 9.44e+2 1.08e+3 ... 1.50e+3 1.64e+3 │ 3.46e+3 3.60e+3 ... 4.02e+3 4.16e+3 ││
- ││ │ 1.78e+3 1.92e+3 ... 2.34e+3 2.48e+3 │ 4.30e+3 4.44e+3 ... 4.86e+3 5.00e+3 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││6 @ 1 │0 @ 4 │1 @ 4 ││
- ││ │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 1.20e+2 2.60e+2 ... 6.80e+2 8.20e+2 │ 2.64e+3 2.78e+3 ... 3.20e+3 3.34e+3 ││
- ││axis 3│ 9.60e+2 1.10e+3 ... 1.52e+3 1.66e+3 │ 3.48e+3 3.62e+3 ... 4.04e+3 4.18e+3 ││
- ││ │ 1.80e+3 1.94e+3 ... 2.36e+3 2.50e+3 │ 4.32e+3 4.46e+3 ... 4.88e+3 5.02e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 1.21e+2 2.61e+2 ... 6.81e+2 8.21e+2 │ 2.64e+3 2.78e+3 ... 3.20e+3 3.34e+3 ││
- ││axis 3│ 9.61e+2 1.10e+3 ... 1.52e+3 1.66e+3 │ 3.48e+3 3.62e+3 ... 4.04e+3 4.18e+3 ││
- ││ │ 1.80e+3 1.94e+3 ... 2.36e+3 2.50e+3 │ 4.32e+3 4.46e+3 ... 4.88e+3 5.02e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 1.22e+2 2.62e+2 ... 6.82e+2 8.22e+2 │ 2.64e+3 2.78e+3 ... 3.20e+3 3.34e+3 ││
- ││axis 3│ 9.62e+2 1.10e+3 ... 1.52e+3 1.66e+3 │ 3.48e+3 3.62e+3 ... 4.04e+3 4.18e+3 ││
- ││ │ 1.80e+3 1.94e+3 ... 2.36e+3 2.50e+3 │ 4.32e+3 4.46e+3 ... 4.88e+3 5.02e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 1.23e+2 2.63e+2 ... 6.83e+2 8.23e+2 │ 2.64e+3 2.78e+3 ... 3.20e+3 3.34e+3 ││
- ││axis 3│ 9.63e+2 1.10e+3 ... 1.52e+3 1.66e+3 │ 3.48e+3 3.62e+3 ... 4.04e+3 4.18e+3 ││
- ││ │ 1.80e+3 1.94e+3 ... 2.36e+3 2.50e+3 │ 4.32e+3 4.46e+3 ... 4.88e+3 5.02e+3 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││4 @ 2 │ 1.24e+2 2.64e+2 ... 6.84e+2 8.24e+2 │ 2.64e+3 2.78e+3 ... 3.20e+3 3.34e+3 ││
- ││axis 3│ 9.64e+2 1.10e+3 ... 1.52e+3 1.66e+3 │ 3.48e+3 3.62e+3 ... 4.04e+3 4.18e+3 ││
- ││ │ 1.80e+3 1.94e+3 ... 2.36e+3 2.50e+3 │ 4.32e+3 4.46e+3 ... 4.88e+3 5.02e+3 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- └────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_f2cd45.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_f2cd4599387f.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_f2cd45_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 28, characters 9-40
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_f2cd45.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_f2cd4599387f.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_f2cd45_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc5VTvyY.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_f2cd45.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum1 sum out axes" =
Tensor.unsafe_reinitialize ();
@@ -173,19 +85,7 @@ let%expect_test "einsum1 sum out axes" =
let%op ho = hey ++ "b|i->o => b|i" in
ignore (Train.forward_once backend ho);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:175:21
- ┌────────────────────────────────────┐
- │[1]: =>_ho shape 0:2|1:3 │
- │┌──────┬───────────────────────────┐│
- ││ │axis 1 ││
- │├──────┼───────────────────────────┤│
- ││axis 0│ 1.80e+1 2.20e+1 2.60e+1 ││
- ││ │ 6.60e+1 7.00e+1 7.40e+1 ││
- │└──────┴───────────────────────────┘│
- └────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let hey2 =
TDSL.range_of_shape ~batch_dims:[ 2; 3 ] ~input_dims:[ 4; 5 ] ~output_dims:[ 6; 7 ] ()
in
@@ -194,23 +94,40 @@ let%expect_test "einsum1 sum out axes" =
(* Axis 5 of hey2, i.e. d in the einsum spec, has the lowest variation (progresses by 1), that's
why axis 1 of ho2 appears nearly constant. *)
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho2;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:196:21
- ┌────────────────────────────────────────────────────────────────────────────────────┐
- │[3]: =>_ho2 shape 0:4|2:2->1:5 │
- │┌──────┬──────────────────┬──────────────────┬──────────────────┬──────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 │3 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 │axis 2 ││
- │├──────┼──────────────────┼──────────────────┼──────────────────┼──────────────────┤│
- ││axis 1│ 1.57e+5 4.75e+5 │ 1.58e+5 4.75e+5 │ 1.58e+5 4.76e+5 │ 1.59e+5 4.76e+5 ││
- ││ │ 1.57e+5 4.75e+5 │ 1.58e+5 4.75e+5 │ 1.58e+5 4.76e+5 │ 1.59e+5 4.77e+5 ││
- ││ │ 1.57e+5 4.75e+5 │ 1.58e+5 4.75e+5 │ 1.59e+5 4.76e+5 │ 1.59e+5 4.77e+5 ││
- ││ │ 1.57e+5 4.75e+5 │ 1.58e+5 4.76e+5 │ 1.59e+5 4.76e+5 │ 1.59e+5 4.77e+5 ││
- ││ │ 1.58e+5 4.75e+5 │ 1.58e+5 4.76e+5 │ 1.59e+5 4.76e+5 │ 1.59e+5 4.77e+5 ││
- │└──────┴──────────────────┴──────────────────┴──────────────────┴──────────────────┘│
- └────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_15d5fb.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_15d5fb3846c6.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_15d5fb_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 174, characters 9-40
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_15d5fb.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_15d5fb3846c6.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_15d5fb_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRxNdRv.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_15d5fb.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum outer product" =
Tensor.unsafe_reinitialize ();
@@ -229,176 +146,46 @@ let%expect_test "einsum outer product" =
let%op c = (a + 1) *+ "i; j => i->j" b in
ignore (Train.forward_once backend c);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false c;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:231:21
- ┌──────────────────────────┐
- │[4]: ;=>_c shape 1:2->0:3 │
- │┌──────┬────────────┐ │
- ││ │axis 1 │ │
- │├──────┼────────────┤ │
- ││axis 0│ 0.00 0.00 │ │
- ││ │ 1.00 2.00 │ │
- ││ │ 2.00 4.00 │ │
- │└──────┴────────────┘ │
- └──────────────────────────┘
- |}];
+ [%expect.unreachable];
let a = TDSL.range_of_shape ~batch_dims:[ 2 ] ~input_dims:[ 3 ] ~output_dims:[ 4 ] () in
let b = TDSL.range_of_shape ~batch_dims:[ 5 ] ~input_dims:[ 6 ] ~output_dims:[ 7 ] () in
let%op c = a *+ "i|j->k; l|m->n => il|jm->kn" b in
ignore (Train.forward_once backend c);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false c;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:250:21
- ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │[7]: ;=>_c shape 0:2,1:5|4:3,5:6->2:4,3:7 │
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││0 @ 1 │0 @ 4 │1 @ 4 │2 @ 4 ││
- ││ │axis 5 │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 0.00 0.00 ... 0.00 0.00 │ 0.00 1.00 ... 4.00 5.00 │ 0.00 2.00 ... 8.00 1.00e+1 ││
- ││axis 3│ 0.00 0.00 ... 0.00 0.00 │ 6.00 7.00 ... 1.00e+1 1.10e+1 │ 1.20e+1 1.40e+1 ... 2.00e+1 2.20e+1 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 0.00 0.00 ... 0.00 0.00 │ 3.00e+1 3.10e+1 ... 3.40e+1 3.50e+1 │ 6.00e+1 6.20e+1 ... 6.80e+1 7.00e+1 ││
- ││ │ 0.00 0.00 ... 0.00 0.00 │ 3.60e+1 3.70e+1 ... 4.00e+1 4.10e+1 │ 7.20e+1 7.40e+1 ... 8.00e+1 8.20e+1 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 0.00 3.00 ... 1.20e+1 1.50e+1 │ 0.00 4.00 ... 1.60e+1 2.00e+1 │ 0.00 5.00 ... 2.00e+1 2.50e+1 ││
- ││axis 3│ 1.80e+1 2.10e+1 ... 3.00e+1 3.30e+1 │ 2.40e+1 2.80e+1 ... 4.00e+1 4.40e+1 │ 3.00e+1 3.50e+1 ... 5.00e+1 5.50e+1 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 9.00e+1 9.30e+1 ... 1.02e+2 1.05e+2 │ 1.20e+2 1.24e+2 ... 1.36e+2 1.40e+2 │ 1.50e+2 1.55e+2 ... 1.70e+2 1.75e+2 ││
- ││ │ 1.08e+2 1.11e+2 ... 1.20e+2 1.23e+2 │ 1.44e+2 1.48e+2 ... 1.60e+2 1.64e+2 │ 1.80e+2 1.85e+2 ... 2.00e+2 2.05e+2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 0.00 6.00 ... 2.40e+1 3.00e+1 │ 0.00 7.00 ... 2.80e+1 3.50e+1 │ 0.00 8.00 ... 3.20e+1 4.00e+1 ││
- ││axis 3│ 3.60e+1 4.20e+1 ... 6.00e+1 6.60e+1 │ 4.20e+1 4.90e+1 ... 7.00e+1 7.70e+1 │ 4.80e+1 5.60e+1 ... 8.00e+1 8.80e+1 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 1.80e+2 1.86e+2 ... 2.04e+2 2.10e+2 │ 2.10e+2 2.17e+2 ... 2.38e+2 2.45e+2 │ 2.40e+2 2.48e+2 ... 2.72e+2 2.80e+2 ││
- ││ │ 2.16e+2 2.22e+2 ... 2.40e+2 2.46e+2 │ 2.52e+2 2.59e+2 ... 2.80e+2 2.87e+2 │ 2.88e+2 2.96e+2 ... 3.20e+2 3.28e+2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 0.00 9.00 ... 3.60e+1 4.50e+1 │ 0.00 1.00e+1 ... 4.00e+1 5.00e+1 │ 0.00 1.10e+1 ... 4.40e+1 5.50e+1 ││
- ││axis 3│ 5.40e+1 6.30e+1 ... 9.00e+1 9.90e+1 │ 6.00e+1 7.00e+1 ... 1.00e+2 1.10e+2 │ 6.60e+1 7.70e+1 ... 1.10e+2 1.21e+2 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.70e+2 2.79e+2 ... 3.06e+2 3.15e+2 │ 3.00e+2 3.10e+2 ... 3.40e+2 3.50e+2 │ 3.30e+2 3.41e+2 ... 3.74e+2 3.85e+2 ││
- ││ │ 3.24e+2 3.33e+2 ... 3.60e+2 3.69e+2 │ 3.60e+2 3.70e+2 ... 4.00e+2 4.10e+2 │ 3.96e+2 4.07e+2 ... 4.40e+2 4.51e+2 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││1 @ 1 │0 @ 4 │1 @ 4 │2 @ 4 ││
- ││ │axis 5 │axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 2 │ 0.00 0.00 ... 0.00 0.00 │ 4.20e+1 4.30e+1 ... 4.60e+1 4.70e+1 │ 8.40e+1 8.60e+1 ... 9.20e+1 9.40e+1 ││
- ││axis 3│ 0.00 0.00 ... 0.00 0.00 │ 4.80e+1 4.90e+1 ... 5.20e+1 5.30e+1 │ 9.60e+1 9.80e+1 ... 1.04e+2 1.06e+2 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 0.00 0.00 ... 0.00 0.00 │ 7.20e+1 7.30e+1 ... 7.60e+1 7.70e+1 │ 1.44e+2 1.46e+2 ... 1.52e+2 1.54e+2 ││
- ││ │ 0.00 0.00 ... 0.00 0.00 │ 7.80e+1 7.90e+1 ... 8.20e+1 8.30e+1 │ 1.56e+2 1.58e+2 ... 1.64e+2 1.66e+2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 2 │ 1.26e+2 1.29e+2 ... 1.38e+2 1.41e+2 │ 1.68e+2 1.72e+2 ... 1.84e+2 1.88e+2 │ 2.10e+2 2.15e+2 ... 2.30e+2 2.35e+2 ││
- ││axis 3│ 1.44e+2 1.47e+2 ... 1.56e+2 1.59e+2 │ 1.92e+2 1.96e+2 ... 2.08e+2 2.12e+2 │ 2.40e+2 2.45e+2 ... 2.60e+2 2.65e+2 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.16e+2 2.19e+2 ... 2.28e+2 2.31e+2 │ 2.88e+2 2.92e+2 ... 3.04e+2 3.08e+2 │ 3.60e+2 3.65e+2 ... 3.80e+2 3.85e+2 ││
- ││ │ 2.34e+2 2.37e+2 ... 2.46e+2 2.49e+2 │ 3.12e+2 3.16e+2 ... 3.28e+2 3.32e+2 │ 3.90e+2 3.95e+2 ... 4.10e+2 4.15e+2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││2 @ 2 │ 2.52e+2 2.58e+2 ... 2.76e+2 2.82e+2 │ 2.94e+2 3.01e+2 ... 3.22e+2 3.29e+2 │ 3.36e+2 3.44e+2 ... 3.68e+2 3.76e+2 ││
- ││axis 3│ 2.88e+2 2.94e+2 ... 3.12e+2 3.18e+2 │ 3.36e+2 3.43e+2 ... 3.64e+2 3.71e+2 │ 3.84e+2 3.92e+2 ... 4.16e+2 4.24e+2 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 4.32e+2 4.38e+2 ... 4.56e+2 4.62e+2 │ 5.04e+2 5.11e+2 ... 5.32e+2 5.39e+2 │ 5.76e+2 5.84e+2 ... 6.08e+2 6.16e+2 ││
- ││ │ 4.68e+2 4.74e+2 ... 4.92e+2 4.98e+2 │ 5.46e+2 5.53e+2 ... 5.74e+2 5.81e+2 │ 6.24e+2 6.32e+2 ... 6.56e+2 6.64e+2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││3 @ 2 │ 3.78e+2 3.87e+2 ... 4.14e+2 4.23e+2 │ 4.20e+2 4.30e+2 ... 4.60e+2 4.70e+2 │ 4.62e+2 4.73e+2 ... 5.06e+2 5.17e+2 ││
- ││axis 3│ 4.32e+2 4.41e+2 ... 4.68e+2 4.77e+2 │ 4.80e+2 4.90e+2 ... 5.20e+2 5.30e+2 │ 5.28e+2 5.39e+2 ... 5.72e+2 5.83e+2 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 6.48e+2 6.57e+2 ... 6.84e+2 6.93e+2 │ 7.20e+2 7.30e+2 ... 7.60e+2 7.70e+2 │ 7.92e+2 8.03e+2 ... 8.36e+2 8.47e+2 ││
- ││ │ 7.02e+2 7.11e+2 ... 7.38e+2 7.47e+2 │ 7.80e+2 7.90e+2 ... 8.20e+2 8.30e+2 │ 8.58e+2 8.69e+2 ... 9.02e+2 9.13e+2 ││
- │└──────┴────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
...TRUNCATED BY DUNE...
- │└──────┴────────────────────────────────────┘│
- └─────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_38cea9.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_38cea938edd3.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_38cea9_run_id_6.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 797, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_38cea9.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_38cea938edd3.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_38cea9_run_id_6.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclyg5e5.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_38cea9.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum1 fixed dim axis" =
Tensor.unsafe_reinitialize ();
@@ -852,70 +414,53 @@ let%expect_test "einsum1 fixed dim axis" =
let%op ho = hey ++ "...|1->... => ...|..." in
let ctx = Train.forward_once backend ho in
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:854:21
- ┌─────────────────────────────────────────────┐
- │[1]: =>_ho shape 0:2|1:4 │
- │┌──────┬────────────────────────────────────┐│
- ││ │axis 1 ││
- │├──────┼────────────────────────────────────┤│
- ││axis 0│ 1.00 4.00 7.00 1.00e+1 ││
- ││ │ 1.30e+1 1.60e+1 1.90e+1 2.20e+1 ││
- │└──────┴────────────────────────────────────┘│
- └─────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op ho2 = hey ++ "...|...->... => ...|...->0" in
ignore (Train.forward_once backend ~ctx ho2);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho2;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:870:21
- ┌────────────────────────────────────────────────────────────────┐
- │[2]: =>_ho2 shape 0:2|2:3->1:1 │
- │┌──────┬───────────────────────────┬───────────────────────────┐│
- ││ │0 @ 0 │1 @ 0 ││
- ││ │axis 2 │axis 2 ││
- │├──────┼───────────────────────────┼───────────────────────────┤│
- ││axis 1│ 1.80e+1 2.20e+1 2.60e+1 │ 6.60e+1 7.00e+1 7.40e+1 ││
- │└──────┴───────────────────────────┴───────────────────────────┘│
- └────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let hey2 = TDSL.range_of_shape ~input_dims:[ 2 ] ~output_dims:[ 3 ] () in
let%op ho3 = hey2 ++ "...|...->... => 0" in
let ctx = Train.forward_once backend ho3 in
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho3;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:887:21
- ┌──────────────────────┐
- │[4]: =>_ho3 shape 0:1 │
- │┌┬─────────┐ │
- │││axis 0 │ │
- │├┼─────────┤ │
- │││ 1.50e+1 │ │
- │└┴─────────┘ │
- └──────────────────────┘
- |}];
+ [%expect.unreachable];
let%op ho4 = hey2 ++ "i->j => i0j" in
ignore (Train.forward_once backend ~ctx ho4);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ho4;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:902:21
- ┌──────────────────────────────┐
- │[5]: =>_ho4 shape 0:2,1:1,2:3 │
- │┌──────┬──────────────────┐ │
- ││ │axis 2 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 0 │ 0.00 2.00 4.00 │ │
- ││axis 1│ │ │
- │├──────┼──────────────────┤ │
- ││1 @ 0 │ 1.00 3.00 5.00 │ │
- ││axis 1│ │ │
- │└──────┴──────────────────┘ │
- └──────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_6cc551.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_6cc551a4bfdb.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\ho_fwd_6cc551_run_id_7.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 853, characters 12-41
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_6cc551.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_6cc551a4bfdb.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\ho_fwd_6cc551_run_id_7.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccEqPFy4.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/ho_fwd_6cc551.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum with fixed dim axes" =
Tensor.unsafe_reinitialize ();
@@ -934,20 +479,40 @@ let%expect_test "einsum with fixed dim axes" =
let%op c = a *+ "...|i->1; ...|...->i => ...|i" b in
ignore (Train.forward_once backend c);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false c;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:936:21
- ┌─────────────────────────────────────────────┐
- │[2]: ;=>_c shape 0:3|1:4 │
- │┌──────┬────────────────────────────────────┐│
- ││ │axis 1 ││
- │├──────┼────────────────────────────────────┤│
- ││axis 0│ 0.00 5.00 1.20e+1 2.10e+1 ││
- ││ │ 4.80e+1 6.50e+1 8.40e+1 1.05e+2 ││
- ││ │ 1.60e+2 1.89e+2 2.20e+2 2.53e+2 ││
- │└──────┴────────────────────────────────────┘│
- └─────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c33124.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c33124073230.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c33124_run_id_8.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 935, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c33124.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c33124073230.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c33124_run_id_8.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cclQYr0F.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c33124.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "outer_sum simulating axis concatenation" =
Tensor.unsafe_reinitialize ();
@@ -973,171 +538,44 @@ let%expect_test "outer_sum simulating axis concatenation" =
Train.set_hosted tk.value;
ignore (Train.forward_once backend positions);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false positions;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:975:21
- ┌────────────────────────────────┐
- │[9]: ;=>+ shape 0:4,1:5,2:6,3:3 │
- │┌──────┬──────────────────┐ │
- ││0 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 0.00 0.00 0.00 │ │
- ││axis 2│ 0.00 0.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 0.00 0.00 4.00 │ │
- ││ │ 0.00 0.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 0.00 1.00 0.00 │ │
- ││axis 2│ 0.00 1.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 0.00 1.00 4.00 │ │
- ││ │ 0.00 1.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││2 @ 1 │ 0.00 2.00 0.00 │ │
- ││axis 2│ 0.00 2.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 0.00 2.00 4.00 │ │
- ││ │ 0.00 2.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││3 @ 1 │ 0.00 3.00 0.00 │ │
- ││axis 2│ 0.00 3.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 0.00 3.00 4.00 │ │
- ││ │ 0.00 3.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││4 @ 1 │ 0.00 4.00 0.00 │ │
- ││axis 2│ 0.00 4.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 0.00 4.00 4.00 │ │
- ││ │ 0.00 4.00 5.00 │ │
- │└──────┴──────────────────┘ │
- ├────────────────────────────────┤
- │┌──────┬──────────────────┐ │
- ││1 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 1.00 0.00 0.00 │ │
- ││axis 2│ 1.00 0.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 1.00 0.00 4.00 │ │
- ││ │ 1.00 0.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 1.00 1.00 0.00 │ │
- ││axis 2│ 1.00 1.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 1.00 1.00 4.00 │ │
- ││ │ 1.00 1.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││2 @ 1 │ 1.00 2.00 0.00 │ │
- ││axis 2│ 1.00 2.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 1.00 2.00 4.00 │ │
- ││ │ 1.00 2.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││3 @ 1 │ 1.00 3.00 0.00 │ │
- ││axis 2│ 1.00 3.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 1.00 3.00 4.00 │ │
- ││ │ 1.00 3.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││4 @ 1 │ 1.00 4.00 0.00 │ │
- ││axis 2│ 1.00 4.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 1.00 4.00 4.00 │ │
- ││ │ 1.00 4.00 5.00 │ │
- │└──────┴──────────────────┘ │
- ├────────────────────────────────┤
- │┌──────┬──────────────────┐ │
- ││2 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 2.00 0.00 0.00 │ │
- ││axis 2│ 2.00 0.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 2.00 0.00 4.00 │ │
- ││ │ 2.00 0.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 2.00 1.00 0.00 │ │
- ││axis 2│ 2.00 1.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 2.00 1.00 4.00 │ │
- ││ │ 2.00 1.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││2 @ 1 │ 2.00 2.00 0.00 │ │
- ││axis 2│ 2.00 2.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 2.00 2.00 4.00 │ │
- ││ │ 2.00 2.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││3 @ 1 │ 2.00 3.00 0.00 │ │
- ││axis 2│ 2.00 3.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 2.00 3.00 4.00 │ │
- ││ │ 2.00 3.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││4 @ 1 │ 2.00 4.00 0.00 │ │
- ││axis 2│ 2.00 4.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 2.00 4.00 4.00 │ │
- ││ │ 2.00 4.00 5.00 │ │
- │└──────┴──────────────────┘ │
- ├────────────────────────────────┤
- │┌──────┬──────────────────┐ │
- ││3 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 3.00 0.00 0.00 │ │
- ││axis 2│ 3.00 0.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 3.00 0.00 4.00 │ │
- ││ │ 3.00 0.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 3.00 1.00 0.00 │ │
- ││axis 2│ 3.00 1.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 3.00 1.00 4.00 │ │
- ││ │ 3.00 1.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││2 @ 1 │ 3.00 2.00 0.00 │ │
- ││axis 2│ 3.00 2.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 3.00 2.00 4.00 │ │
- ││ │ 3.00 2.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││3 @ 1 │ 3.00 3.00 0.00 │ │
- ││axis 2│ 3.00 3.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 3.00 3.00 4.00 │ │
- ││ │ 3.00 3.00 5.00 │ │
- │├──────┼──────────────────┤ │
- ││4 @ 1 │ 3.00 4.00 0.00 │ │
- ││axis 2│ 3.00 4.00 1.00 │ │
- ││ │ ... ... ... │ │
- ││ │ 3.00 4.00 4.00 │ │
- ││ │ 3.00 4.00 5.00 │ │
- │└──────┴──────────────────┘ │
- └────────────────────────────────┘
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ti;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:1118:21
- [1]: =>_ti shape 0:4,1:3 <not-hosted>
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false tk;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:1124:21
- ┌───────────────────────────┐
- │[7]: =>_tk shape 0:6,1:3 │
- │┌──────┬──────────────────┐│
- ││ │axis 1 ││
- │├──────┼──────────────────┤│
- ││axis 0│ 0.00 0.00 0.00 ││
- ││ │ 0.00 0.00 1.00 ││
- ││ │ ... ... ... ││
- ││ │ 0.00 0.00 4.00 ││
- ││ │ 0.00 0.00 5.00 ││
- │└──────┴──────────────────┘│
- └───────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n9_fwd_f78bee.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n9_fwd_f78bee28e3a3.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n9_fwd_f78bee_run_id_9.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 974, characters 9-47
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n9_fwd_f78bee.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n9_fwd_f78bee28e3a3.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n9_fwd_f78bee_run_id_9.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8F2H4o.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n9_fwd_f78bee.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum with a leftmost input axis preserved as output axis" =
Tensor.unsafe_reinitialize ();
@@ -1160,22 +598,40 @@ let%expect_test "einsum with a leftmost input axis preserved as output axis" =
let%op c = a *+ "...|i->1; ...|j...->i => ...|ij" b in
ignore (Train.forward_once backend c);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false c;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:1162:21
- ┌─────────────────────────────────────────────────────────────────┐
- │[2]: ;=>_c shape 0:3|1:4,2:2 │
- │┌──────┬──────────────────┬──────────────────┬──────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 ││
- │├──────┼──────────────────┼──────────────────┼──────────────────┤│
- ││axis 1│ 1.20e+1 4.80e+1 │ 9.00e+2 1.00e+3 │ 2.94e+3 3.12e+3 ││
- ││ │ 1.05e+2 1.50e+2 │ 1.20e+3 1.32e+3 │ 3.46e+3 3.65e+3 ││
- ││ │ 2.34e+2 2.88e+2 │ 1.55e+3 1.68e+3 │ 4.02e+3 4.22e+3 ││
- ││ │ 3.99e+2 4.62e+2 │ 1.93e+3 2.07e+3 │ 4.62e+3 4.83e+3 ││
- │└──────┴──────────────────┴──────────────────┴──────────────────┘│
- └─────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c8b914.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c8b9145628eb.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_c8b914_run_id_10.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 1161, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c8b914.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c8b9145628eb.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_c8b914_run_id_10.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGOBcTw.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_c8b914.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "einsum permuting two leftmost input axes as output axes" =
Tensor.unsafe_reinitialize ();
@@ -1194,17 +650,37 @@ let%expect_test "einsum permuting two leftmost input axes as output axes" =
let%op c = a *+ "i->1; ij...->0 => ...->ji" b in
ignore (Train.forward_once backend c);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false c;
- [%expect
- {|
- HERE: test/einsum/einsum_trivia.ml:1196:21
- ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │[2]: ;=>_c shape 2:4->0:3,1:2 │
- │┌──────┬────────────────────────────────────┬────────────────────────────────────┬────────────────────────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 ││
- │├──────┼────────────────────────────────────┼────────────────────────────────────┼────────────────────────────────────┤│
- ││axis 1│ 0.00 2.00 4.00 6.00 │ 8.00 1.00e+1 1.20e+1 1.40e+1 │ 1.60e+1 1.80e+1 2.00e+1 2.20e+1 ││
- ││ │ 3.60e+1 3.90e+1 4.20e+1 4.50e+1 │ 4.80e+1 5.10e+1 5.40e+1 5.70e+1 │ 6.00e+1 6.30e+1 6.60e+1 6.90e+1 ││
- │└──────┴────────────────────────────────────┴────────────────────────────────────┴────────────────────────────────────┘│
- └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_6a0bdc.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_6a0bdc0fae6e.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_6a0bdc_run_id_11.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Einsum_trivia.(fun) in file "test/einsum/einsum_trivia.ml", line 1195, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_6a0bdc.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_6a0bdc0fae6e.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_6a0bdc_run_id_11.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc8KZhqJ.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_6a0bdc.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
File "test/einsum/surjectivity.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml _build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml.corrected
diff --git a/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml b/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml.corrected
index 0351f80..0ef1cae 100644
--- a/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml
+++ b/_build/.sandbox/dc7ea0fa941a187805badf35a5458b0d/default/test/einsum/surjectivity.ml.corrected
@@ -29,22 +29,40 @@ let%expect_test "diagonal_tensor_initialization" =
(* Print the diagonal tensor *)
Train.printf ~here:[%here] ~with_code:false ~with_grad:false diagonal;
- [%expect
- {|
- HERE: test/einsum/surjectivity.ml:31:21
- ┌──────────────────────────────────────┐
- │[1]: =>_diagonal shape 0:6,1:6 │
- │┌──────┬─────────────────────────────┐│
- ││ │axis 1 ││
- │├──────┼─────────────────────────────┤│
- ││axis 0│ 0.00 0.00 ... 0.00 0.00 ││
- ││ │ 0.00 1.00 ... 0.00 0.00 ││
- ││ │ ... ... ... ... ... ││
- ││ │ 0.00 0.00 ... 4.00 0.00 ││
- ││ │ 0.00 0.00 ... 0.00 5.00 ││
- │└──────┴─────────────────────────────┘│
- └──────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_731af4.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_731af4f32b99.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\diagonal_fwd_731af4_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Surjectivity.(fun) in file "test/einsum/surjectivity.ml", line 28, characters 9-46
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_731af4.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_731af4f32b99.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\diagonal_fwd_731af4_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccr7aFla.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/diagonal_fwd_731af4.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "sparse_assignment_with_fixed_indices" =
Tensor.unsafe_reinitialize ();
@@ -66,31 +84,40 @@ let%expect_test "sparse_assignment_with_fixed_indices" =
ignore (Train.forward_once backend sparse);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false sparse;
- [%expect
- {|
- HERE: test/einsum/surjectivity.ml:68:21
- ┌─────────────────────────────────┐
- │[1]: =>_sparse shape 0:5,1:1,2:1 │
- │┌──────┬──────┐ │
- ││ │axis 2│ │
- │├──────┼──────┤ │
- ││0 @ 0 │ 0.00 │ │
- ││axis 1│ │ │
- │├──────┼──────┤ │
- ││1 @ 0 │ 1.00 │ │
- ││axis 1│ │ │
- │├──────┼──────┤ │
- ││2 @ 0 │ 2.00 │ │
- ││axis 1│ │ │
- │├──────┼──────┤ │
- ││3 @ 0 │ 3.00 │ │
- ││axis 1│ │ │
- │├──────┼──────┤ │
- ││4 @ 0 │ 4.00 │ │
- ││axis 1│ │ │
- │└──────┴──────┘ │
- └─────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_fwd_47d90d.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_fwd_47d90d7e12f9.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_fwd_47d90d_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Surjectivity.(fun) in file "test/einsum/surjectivity.ml", line 66, characters 9-44
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_fwd_47d90d.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_fwd_47d90d7e12f9.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_fwd_47d90d_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccRgLcmd.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_fwd_47d90d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "multiple_sparse_axes" =
Tensor.unsafe_reinitialize ();
@@ -112,51 +139,37 @@ let%expect_test "multiple_sparse_axes" =
ignore (Train.forward_once backend sparse_multi);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false sparse_multi;
- [%expect
- {|
- HERE: test/einsum/surjectivity.ml:114:21
- ┌───────────────────────────────────────────┐
- │[1]: =>_sparse_multi shape 0:3,1:2,2:4,3:3 │
- │┌──────┬──────────────────┐ │
- ││0 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 0.00 0.00 0.00 │ │
- ││axis 2│ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 0.00 0.00 0.00 │ │
- ││axis 2│ 0.00 0.00 1.00 │ │
- ││ │ 0.00 0.00 2.00 │ │
- ││ │ 0.00 0.00 3.00 │ │
- │└──────┴──────────────────┘ │
- ├───────────────────────────────────────────┤
- │┌──────┬──────────────────┐ │
- ││1 @ 0 │axis 3 │ │
- │├──────┼──────────────────┤ │
- ││0 @ 1 │ 0.00 0.00 0.00 │ │
- ││axis 2│ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- │├──────┼──────────────────┤ │
- ││1 @ 1 │ 0.00 0.00 4.00 │ │
- ││axis 2│ 0.00 0.00 5.00 │ │
- ││ │ 0.00 0.00 6.00 │ │
- ││ │ 0.00 0.00 7.00 │ │
- │└──────┴──────────────────┘ │
- ├───────────────────────────────────────────┤
- │┌──────┬─────────────────────┐ │
- ││2 @ 0 │axis 3 │ │
- │├──────┼─────────────────────┤ │
- ││0 @ 1 │ 0.00 0.00 0.00 │ │
- ││axis 2│ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- ││ │ 0.00 0.00 0.00 │ │
- │├──────┼─────────────────────┤ │
- ││1 @ 1 │ 0.00 0.00 8.00 │ │
- ││axis 2│ 0.00 0.00 9.00 │ │
- ││ │ 0.00 0.00 1.00e+1 │ │
- ││ │ 0.00 0.00 1.10e+1 │ │
- │└──────┴─────────────────────┘ │
- └───────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_multi_fwd_614e19.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_multi_fwd_614e195125f5.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\sparse_multi_fwd_614e19_run_id_3.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Einsum_tutorials__Surjectivity.(fun) in file "test/einsum/surjectivity.ml", line 112, characters 9-50
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_multi_fwd_614e19.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_multi_fwd_614e195125f5.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\sparse_multi_fwd_614e19_run_id_3.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccV8FQOT.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/sparse_multi_fwd_614e19.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
(cd _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations && .operations_tutorials.inline-tests\inline-test-runner.exe inline-test-runner operations_tutorials -partition primitive_ops.ml -source-tree-root ../.. -diff-cmd -)
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
File "test/operations/zero2hero_1of7.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml.corrected
diff --git a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml.corrected
index cc207ab..9cceef4 100644
--- a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml
+++ b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/zero2hero_1of7.ml.corrected
@@ -27,29 +27,7 @@ let%expect_test "Graph drawing recompile" =
Train.set_hosted x.value;
ignore (Train.forward_once backend f_nd);
Train.printf_tree ~with_grad:true ~depth:9 f_nd;
- [%expect
- {|
- #15 +_f_nd
- 6.00e+1
- #16 grad_+_f_nd Virt/30
- <void>
- #13 - Virt/152 │#2 5 Virt/40
- <void> │<void>
- #14 grad_- Virt/30 │
- <void> │
- #11 *. Virt/152 │#4 *. Virt/152 │
- <void> │<void> │
- #12 grad_*. Virt/30 │#5 grad_*. Virt/30 │
- <void> │<void> │
- #10 3 Virt/40│ #7 **. Virt/152 │#3 4 Virt/40│[#0 x]│
- <void> │ <void> │<void> │ │
- │ #8 grad_**. Virt/30 │ │ │
- │ <void> │ │ │
- │#0 x non-emb │#6 2 Virt/40│ │ │
- │ 5.00 │<void> │ │ │
- │#1 grad_x Local/26030│ │ │ │
- │<void> │ │ │ │
- |}];
+ [%expect.unreachable];
let%op f = (3 *. ("x" [ 5 ] **. 2)) - (4 *. x) + 5 in
Train.every_non_literal_on_host f;
let f_upd = Train.grad_update f in
@@ -57,29 +35,7 @@ let%expect_test "Graph drawing recompile" =
let f_bprop = Train.to_routine (module Backend) ctx IDX.empty f_upd in
Train.run f_bprop;
Train.printf_tree ~with_grad:true ~depth:9 f;
- [%expect
- {|
- #32 +_f
- 6.00e+1
- #33 grad_+_f
- 1.00
- #30 - │#19 5 Virt/40
- 5.50e+1 │<void>
- #31 grad_- │
- 1.00 │
- #28 *. │ #21 *. │
- 7.50e+1 │ 2.00e+1 │
- #29 grad_*. │ #22 grad_*. │
- 1.00 │ -1.00 │
- #27 3 Virt/40│ #24 **. │#20 4 Virt/40│[#17 x]│
- <void> │ 2.50e+1 │<void> │ │
- │ #25 grad_**. │ │ │
- │ 3.00 │ │ │
- │#17 x non-emb│#23 2 Virt/40│ │ │
- │ 5.00 │<void> │ │ │
- │#18 grad_x │ │ │ │
- │ 2.60e+1 │ │ │ │
- |}];
+ [%expect.unreachable];
let xs = Array.init 10 ~f:Float.(fun i -> of_int i - 5.) in
let ys =
Array.map xs ~f:(fun v ->
@@ -98,54 +54,42 @@ let%expect_test "Graph drawing recompile" =
[ Scatterplot { points = Array.zip_exn xs ys; content = PrintBox.line "#" } ]
in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 1.00e+2│# │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │f │ │
- │( │ │
- │x │ │
- │) │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ #│
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ # │
- │ │ # │
- │ │ │
- │ 4.00 │ # # │
- ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 4.00│
- │ │ x │
- └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_f_nd_b89a36.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_f_nd_b89a36257d38.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_f_nd_b89a36_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 28, characters 9-42
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_f_nd_b89a36.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_f_nd_b89a36257d38.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_f_nd_b89a36_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccjje2Bc.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_f_nd_b89a36.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Graph drawing fetch" =
Tensor.unsafe_reinitialize ();
@@ -159,19 +103,7 @@ let%expect_test "Graph drawing fetch" =
Train.every_non_literal_on_host f5;
ignore (Train.forward_once (module Backend) f5);
Train.printf_tree ~with_grad:false ~depth:9 f5;
- [%expect
- {|
- #9 +_f_5
- 6.00e+1
- #8 - │#1 5 Virt/40
- 5.50e+1 │<void>
- #7 *. │ #3 *. │
- 7.50e+1 │ 2.00e+1 │
- #6 3 Virt/40│ #5 **. │#2 4 Virt/40│#0 5 Virt/40│
- <void> │ 2.50e+1 │<void> │<void> │
- │[#0 5]│#4 2 Virt/40│ │ │
- │ │<void> │ │ │
- |}];
+ [%expect.unreachable];
let size = 100 in
let xs = Array.init size ~f:Float.(fun i -> (of_int i / 10.) - 5.) in
(* Yay, the whole shape gets inferred! *)
@@ -201,54 +133,40 @@ let%expect_test "Graph drawing fetch" =
]
in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 1.00e+2 │# │
- │ │# │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ # # #│
- │ │ # # # │
- │ │ # # │
- │ │ # ## │
- │ │ ## # │
- │f │ # # │
- │( │ # # ## │
- │x │ ## # │
- │) │ # # │
- │ │ # # ### **│
- │ │ ## # * **** │
- │ │ # # ## * **** │
- │ │ ### ## * *** │
- │ │ # # # ##** ** │
- │ │ #### # ###* * │
- │ │ # #### # # ## # #### │
- │ │ # # ** * │
- │ │- - - - - - - - - - - * ** * - - - - - - - - │
- │ │ * **** │
- │ │ * **** │
- │ │ **** * │
- │ │ * **** │
- │ │ * **** │
- │ │ * **** │
- │ │ ** *** │
- │ │ * * *** │
- │ -3.40e+1│* * ** │
- ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 4.90│
- │ │ x │
- └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\f_5_fwd_8f7b99.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\f_5_fwd_8f7b99d188b3.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\f_5_fwd_8f7b99_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/trainml", line 528, characters 12-96
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 160, characters 9-49
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\f_5_fwd_8f7b99.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\f_5_fwd_8f7b99d188b3.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\f_5_fwd_8f7b99_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccN3nWBN.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/f_5_fwd_8f7b99.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Simple gradients hosted" =
Tensor.unsafe_reinitialize ();
@@ -274,73 +192,52 @@ let%expect_test "Simple gradients hosted" =
specified in the tensor in the brackets. *)
Train.run grad_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -8.00
- #13 grad_*._l
- 1.00
- #8 +_d │#10 f non-emb
- 4.00 │ -2.00
- #9 grad_+_d │#11 grad_f
- -2.00 │ 4.00
- #4 *._e │#6 c non-emb│
- -6.00 │ 1.00e+1 │
- #5 grad_*._e │#7 grad_c │
- -2.00 │ -2.00 │
- #0 a non-emb│#2 b non-emb│ │
- 2.00 │ -3.00 │ │
- #1 grad_a │#3 grad_b │ │
- 6.00 │ -4.00 │ │
- |}];
+ [%expect.unreachable];
(* Now we update the params, but we are not doing the forward and backward passes: only params
values will change, compared to the above. The update is in the opposite direction of the
gradient. *)
Train.run sgd_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -8.00
- #13 grad_*._l
- 1.00
- #8 +_d │#10 f non-emb
- 4.00 │ -2.40
- #9 grad_+_d │#11 grad_f
- -2.00 │ 4.00
- #4 *._e │#6 c non-emb│
- -6.00 │ 1.02e+1 │
- #5 grad_*._e │#7 grad_c │
- -2.00 │ -2.00 │
- #0 a non-emb│#2 b non-emb│ │
- 1.40 │ -2.60 │ │
- #1 grad_a │#3 grad_b │ │
- 6.00 │ -4.00 │ │
- |}];
+ [%expect.unreachable];
(* Now the params will remain as above, but both param gradients and the values and gradients of
other nodes will change thanks to the forward and backward passes. *)
Train.run grad_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -1.57e+1
- #13 grad_*._l
- 1.00
- #8 +_d │#10 f non-emb
- 6.56 │ -2.40
- #9 grad_+_d │#11 grad_f
- -2.40 │ 6.56
- #4 *._e │#6 c non-emb│
- -3.64 │ 1.02e+1 │
- #5 grad_*._e │#7 grad_c │
- -2.40 │ -2.40 │
- #0 a non-emb│#2 b non-emb│ │
- 1.40 │ -2.60 │ │
- #1 grad_a │#3 grad_b │ │
- 6.24 │ -3.36 │ │
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_b2ae72.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_b2ae7203aea1.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_b2ae72_run_id_3.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 268, characters 12-63
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_b2ae72.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_b2ae7203aea1.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_b2ae72_run_id_3.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc1xPIya.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_b2ae72.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Simple gradients virtual" =
Tensor.unsafe_reinitialize ();
@@ -385,25 +282,7 @@ let%expect_test "Simple gradients virtual" =
specified in the tensor in the brackets. *)
Train.run grad_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -8.00
- #13 grad_*._l Virt/40
- <void>
- #8 +_d Local/1046 │#10 f non-emb
- <void> │ -2.00
- #9 grad_+_d Virt/40 │#11 grad_f
- <void> │ 4.00
- #4 *._e Virt/152 │#6 c non-emb│
- <void> │ 1.00e+1 │
- #5 grad_*._e Virt/40 │#7 grad_c │
- <void> │ -2.00 │
- #0 a non-emb│#2 b non-emb│ │
- 2.00 │ -3.00 │ │
- #1 grad_a │#3 grad_b │ │
- 6.00 │ -4.00 │ │
- |}];
+ [%expect.unreachable];
(* Only now compile the SGD update. *)
let sgd_routine = Train.to_routine (module Backend) grad_routine.context IDX.empty sgd in
(* Now we update the params, but are not doing the forward and backward passes: only params values
@@ -411,48 +290,45 @@ let%expect_test "Simple gradients virtual" =
always be recomputed using the latest parameter state. *)
Train.run sgd_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -8.00
- #13 grad_*._l Virt/40
- <void>
- #8 +_d Local/1046 │#10 f non-emb
- <void> │ -2.40
- #9 grad_+_d Virt/40 │#11 grad_f
- <void> │ 4.00
- #4 *._e Virt/152 │#6 c non-emb│
- <void> │ 1.02e+1 │
- #5 grad_*._e Virt/40 │#7 grad_c │
- <void> │ -2.00 │
- #0 a non-emb│#2 b non-emb│ │
- 1.40 │ -2.60 │ │
- #1 grad_a │#3 grad_b │ │
- 6.00 │ -4.00 │ │
- |}];
+ [%expect.unreachable];
(* Now the params will remain as above, but both param gradients and the values and gradients of
other nodes will change thanks to the forward and backward passes. *)
Train.run grad_routine;
Train.printf_tree ~with_grad:true ~depth:9 l;
- [%expect
- {|
- #12 *._l
- -1.57e+1
- #13 grad_*._l Virt/40
- <void>
- #8 +_d Local/1046 │#10 f non-emb
- <void> │ -2.40
- #9 grad_+_d Virt/40 │#11 grad_f
- <void> │ 6.56
- #4 *._e Virt/152 │#6 c non-emb│
- <void> │ 1.02e+1 │
- #5 grad_*._e Virt/40 │#7 grad_c │
- <void> │ -2.40 │
- #0 a non-emb│#2 b non-emb│ │
- 1.40 │ -2.60 │ │
- #1 grad_a │#3 grad_b │ │
- 6.24 │ -3.36 │ │
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_092688.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_0926881cc5a2.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_l_092688_run_id_4.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 380, characters 12-63
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_092688.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_0926881cc5a2.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_l_092688_run_id_4.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccI779jE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_l_092688.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "tanh plot" =
Tensor.unsafe_reinitialize ();
@@ -469,21 +345,40 @@ let%expect_test "2D neuron hosted" =
let routine = Train.to_routine (module Backend) ctx IDX.empty update in
Train.run routine;
Train.printf_tree ~with_grad:true ~depth:9 v;
- [%expect
- {|
- #8 +_v
- 7.00e-1
- #9 grad_+_v
- 1.00
- #6 * │#0 b non-emb
- -6.00 │ 6.70
- #7 grad_* │#1 grad_b
- 1.00 │ 1.00
- #2 w non-emb │#4 x non-emb │
- -3.00 1.00 │ 2.00 0.00 │
- #3 grad_w │#5 grad_x │
- 2.00 0.00 │ -3.00 1.00 │
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_42bb70.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_42bb70c44e9b.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_42bb70_run_id_5.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 468, characters 12-58
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_42bb70.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_42bb70c44e9b.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_42bb70_run_id_5.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc73IlfL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_42bb70.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "2D neuron virtual" =
Tensor.unsafe_reinitialize ();
@@ -494,18 +389,37 @@ let%expect_test "2D neuron virtual" =
let routine = Train.to_routine (module Backend) ctx IDX.empty update in
Train.run routine;
Train.printf_tree ~with_grad:true ~depth:9 v;
- [%expect
- {|
- #8 +_v
- 7.00e-1
- #9 grad_+_v Virt/40
- <void>
- #6 * Local/1046 │#0 b non-emb
- <void> │ 6.70
- #7 grad_* Virt/40 │#1 grad_b
- <void> │ 1.00
- #2 w non-emb │#4 x non-emb │
- -3.00 1.00 │ 2.00 0.00 │
- #3 grad_w │#5 grad_x │
- 2.00 0.00 │ -3.00 1.00 │
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_27d1d4.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_27d1d435f0dc.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_v_27d1d4_run_id_6.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Zero2hero_1of7.(fun) in file "test/operations/zero2hero_1of7.ml", line 493, characters 12-58
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_27d1d4.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_27d1d435f0dc.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_v_27d1d4_run_id_6.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccGwCmdE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_v_27d1d4.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
File "test/operations/test_threefry4x32.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml.corrected
diff --git a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml.corrected
index c29f3cd..fba32bc 100644
--- a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml
+++ b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/test_threefry4x32.ml.corrected
@@ -35,16 +35,48 @@ let%expect_test "threefry4x32 basic test" =
let all_in_range = Array.for_all result ~f:(fun x -> Float.(x >= 0.0 && x < 1.0)) in
Stdio.printf "All values in [0, 1) range: %b\n" all_in_range;
- [%expect
- {|
- First 5 uniform random values:
- [0]: 0.188068
- [1]: 0.073963
- [2]: 0.494024
- [3]: 0.102271
- [4]: 0.635470
- All values in [0, 1) range: true
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_dfdd3b.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_dfdd3bea76a5.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n3_fwd_dfdd3b_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Test_threefry4x32.(fun) in file "test/operations/test_threefry4x32.ml", line 25, characters 9-68
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_dfdd3b.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_dfdd3bea76a5.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n3_fwd_dfdd3b_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuHbl3H.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n3_fwd_dfdd3b.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "uint4x32_to_prec_uniform different precisions" =
let module Backend = (val Backends.fresh_backend ()) in
@@ -74,10 +106,46 @@ let%expect_test "uint4x32_to_prec_uniform different precisions" =
(* test_precision Ir.Ops.double "Double"; *)
test_precision Ir.Ops.half "Half";
- [%expect
- {|
- Single precision - first value: 0.188068, second value: 0.073963
- All values in [0, 1) range: true
- Half precision - first value: 0.205322, second value: 0.188110
- All values in [0, 1) range: true
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n7_fwd_088738.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n7_fwd_0887383ab278.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\n7_fwd_088738_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_single_uniform_vec'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Test_threefry4x32.(fun).test_precision in file "test/operations/test_threefry4x32.ml", line 64, characters 16-78
+ Called from Operations_tutorials__Test_threefry4x32.(fun) in file "test/operations/test_threefry4x32.ml", line 72, characters 2-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n7_fwd_088738.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n7_fwd_0887383ab278.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\n7_fwd_088738_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x101b): undefined reference to `__imp_int32_to_uint4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x1022): undefined reference to `__imp_int64_to_uint4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x102b): undefined reference to `__imp_arrayjit_threefry4x32'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccMqRSBD.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/n7_fwd_088738.c:(.text+0x1032): undefined reference to `__imp_uint4x32_to_single_uniform_vec'
+ collect2: error: ld returned 1 exit status
+ |}]
File "test/operations/primitive_ops.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml.corrected
diff --git a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml.corrected
index 7459ac5..d5992b0 100644
--- a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml
+++ b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/primitive_ops.ml.corrected
@@ -48,793 +48,598 @@ let%expect_test "relu" =
let%op f x = relu x in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 5.00│ #│
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │f │ # │
- │( │ ## │
- │x │ # │
- │) │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ * ******************************* **** ******* ****│
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ ## │
- │ 0.00│**** *** *** *** ********-*************** ********- - - - - - - - - - │
- ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 5.00│
- │ │ x │
- └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_relu_f_x_d8d786.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_relu_f_x_d8d7866938ba.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_relu_f_x_d8d786_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 49, characters 17-32
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_relu_f_x_d8d786.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_relu_f_x_d8d7866938ba.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_relu_f_x_d8d786_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJPMQ1f.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_relu_f_x_d8d786.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "sat01" =
let%op f x = sat01 x in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 1.00│ * *********###################### #### ####### ####│
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │f │ # │
- │( │ │
- │x │ │
- │) │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ │ │
- │ │ │
- │ │ │
- │ │ # │
- │ 0.00│**** *** *** *** ********-*************** ********- - ********************** **** *******-****│
- ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 5.00│
- │ │ x │
- └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_sat01_f_x_5fde67.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_sat01_f_x_5fde67e47649.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_sat01_f_x_5fde67_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 102, characters 17-32
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_sat01_f_x_5fde67.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_sat01_f_x_5fde67e47649.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_sat01_f_x_5fde67_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccwgPEWP.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_sat01_f_x_5fde67.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "exp(x)" =
let%op f x = exp x in
let plot_box = plot_unop ~f ~x_max:1.0 () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 2.71│ *│
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ * │
- │ │ │
- │ │ * │
- │f │ * │
- │( │ * │
- │x │ │
- │) │ * │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ ** │
- │ │ * │
- │ │ * │
- │ │ ** │
- │ │ ** │
- │ │ ** │
- │ │ * │
- │ │ ** │
- │ │ *** │
- │ │ **** │
- │ │ ***** │
- │ │ ******* │
- │ │ *********** │
- │ 0.00│********* ************ ************** * - - - - - - - - - - - - │
- ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 1.00│
- │ │ x │
- └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_exp_f_x_046da7.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_exp_f_x_046da7658d14.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_exp_f_x_046da7_run_id_3.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 155, characters 17-43
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_exp_f_x_046da7.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_exp_f_x_046da7658d14.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_exp_f_x_046da7_run_id_3.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccixXpUL.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_exp_f_x_046da7.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "log(x)" =
let%op f x = log x in
let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 1.00e+1│* │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │f │ │
- │( │ * │
- │x │ │
- │) │ │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ ** │
- │ │ ** #############│
- │ │ *** ################### #### │
- │ │ ****** ######### #### ## │
- │ │ ******** *****##### #### │
- │ │ ###### ## ***** ************* **** ********************* ******* │
- │ │- - - - ####### - - - - - - - - - - - - - **********│
- │ │ ### # │
- │ │ #### │
- │ │ ## │
- │ │ ## │
- │ │ ## │
- │ │ # │
- │ -2.30 │# │
- ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │1.00e-1 5.00│
- │ │ x │
- └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_log_f_x_61923d.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_log_f_x_61923d9529a2.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_log_f_x_61923d_run_id_4.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 208, characters 17-54
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_log_f_x_61923d.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_log_f_x_61923d9529a2.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_log_f_x_61923d_run_id_4.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccDSSxuU.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_log_f_x_61923d.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "log2(x)" =
let%op f x = log2 x in
let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 1.44e+1│* │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │f │ │
- │( │ * │
- │x │ │
- │) │ │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ ** │
- │ │ ** #############│
...TRUNCATED BY DUNE...
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_f_x_7f8508.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_f_x_7f85086909bc.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_f_x_7f8508_run_id_11.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 579, characters 17-54
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_f_x_7f8508.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_f_x_7f85086909bc.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_f_x_7f8508_run_id_11.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccPWoq3V.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_f_x_7f8508.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "recip_sqrt(x)" =
let%op f x = recip_sqrt x in
let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 3.16 │# │
- │ │ │
- │ │ ## │
- │ │ ## │
- │ │ ####### │
- │ │ ### ############## ##### │
- │ │#### ############# #### ##################### #################│
- │ │- - - - - - -********** *************-****-********************* *****************│
- │ │ * ************** │
- │ │ **** │
- │ │ *** │
- │ │ * │
- │ │ * │
- │ │ * │
- │ │ │
- │ │ * │
- │ │ │
- │ │ │
- │f │ │
- │( │ * │
- │x │ │
- │) │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ * │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ -1.58e+1│* │
- ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │1.00e-1 5.00│
- │ │ x │
- └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_sqrt_f_x_285a52.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_sqrt_f_x_285a5223ff15.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_recip_sqrt_f_x_285a52_run_id_12.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 632, characters 17-54
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_sqrt_f_x_285a52.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_sqrt_f_x_285a5223ff15.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_recip_sqrt_f_x_285a52_run_id_12.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccZO4bgE.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_recip_sqrt_f_x_285a52.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "tanh(x)" =
let%op f x = tanh x in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 9.99e-1 │ #│
- │ │ ** * ############## #### ####### ### │
- │ │ * * #### │
- │ │ * * ## │
- │ │ * * # │
- │ │ * * ## │
- │ │ # │
- │ │ * * │
- │ │ * * │
- │ │ # │
- │ │ * # * │
- │ │ * * │
- │ │ # │
- │ │ * # * │
- │ │ * * │
- │ │ * # * │
- │ │ ** ** │
- │ │ ** # ** │
- │f │ ** ** │
- │( │ * ***** # ****** │
- │x │**** *** *** *** ********- - - - - - - - - - ******* **** *******-****│
- │) │ # │
- │ │ │
- │ │ # │
- │ │ │
- │ │ # │
- │ │ │
- │ │ # │
- │ │ # │
- │ │ │
- │ │ # │
- │ │ # │
- │ │ # │
- │ │ │
- │ │ # │
- │ │ ## │
- │ │ # │
- │ │ ## │
- │ │ #### │
- │ -9.99e-1│#### ### ### ### ######## ###### │
- ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 5.00│
- │ │ x │
- └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_tanh_f_x_6f76de.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_tanh_f_x_6f76de4591d6.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_tanh_f_x_6f76de_run_id_13.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 685, characters 17-32
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_tanh_f_x_6f76de.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_tanh_f_x_6f76de4591d6.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_tanh_f_x_6f76de_run_id_13.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccA4a5eV.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_tanh_f_x_6f76de.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "uint4x32_to_prec_uniform(x)" =
let%op f x = uint4x32_to_prec_uniform x in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 7.52e-1│# │
- │ │ ### ### ### ### ######## ############### ######## │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │f │ │
- │( │ │
- │x │ │
- │) │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ #### #### ####### ####│
- │ │ # ########################### │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ │ │
- │ 0.00 │**** *** *** *** ********-*************** ********-******************************* **** *******-****│
- ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 5.00│
- │ │ x │
- └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_n4_cecc12.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_n4_cecc12fa848a.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_n4_cecc12_run_id_14.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 738, characters 17-32
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_n4_cecc12.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_n4_cecc12fa848a.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_n4_cecc12_run_id_14.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccbsQKu8.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_n4_cecc12.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "where(x < 0, sin(x), cos(x))" =
let%op f x = where (x < !.0.) (sin x) (cos x) in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
- [%expect
- {|
- ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │ 9.99e-1 │ # * │
- │ │#### ## *** ## ** ***│
- │ │ # ** ## * │
- │ │ # * # * │
- │ │ # * │
- │ │ # * # * │
- │ │ * # │
- │ │ # * # * │
- │ │ # * │
- │ │ * # │
- │ │ # * # * │
- │ │ │
- │ │ # * # * │
- │ │ # * │
- │ │* * # #│
- │ │ # * │
- │ │ * * # # │
- │ │ # * │
- │f │ * * # # │
- │( │ # * │
- │x │- * - - - - - - *- - - - - - # - - - - - -# │
- │) │ # * * │
- │ │ * * # # │
- │ │ # # * * │
- │ │ * * # # │
- │ │ # # * * │
- │ │ * * # # │
- │ │ # # * * │
- │ │ * * # # │
- │ │ # * # * # * │
- │ │ * # # * * # │
- │ │ * * # # │
- │ │ # # * * │
- │ │ * * # * # # │
- │ │ * * * # │
- │ │ * # # * * # │
- │ │ * * # # * * # # │
- │ │ * * # # * * # # │
- │ │ ** * # # * * # ## │
- │ -9.99e-1│ * ***** ####### ******* #### # │
- ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ │-5.00 5.00│
- │ │ x │
- └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_aeed1b.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_aeed1bdcf825.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_where_aeed1b_run_id_15.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Operations_tutorials__Primitive_ops.plot_unop in file "test/operations/primitive_ops.ml", line 27, characters 12-59
+ Called from Operations_tutorials__Primitive_ops.(fun) in file "test/operations/primitive_ops.ml", line 791, characters 17-32
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_aeed1b.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_aeed1bdcf825.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_where_aeed1b_run_id_15.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccWmYxel.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_where_aeed1b.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
File "test/operations/hello_world_op.ml", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml _build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml.corrected
diff --git a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml.corrected
index fb61675..661d3f2 100644
--- a/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml
+++ b/_build/.sandbox/806bfd8fc635764dedf172bbefbe239c/default/test/operations/hello_world_op.ml.corrected
@@ -29,18 +29,42 @@ let%expect_test "Pointwise multiplication dims 1" =
ignore (Train.forward_once backend y);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false y;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:31:21
- ┌────────────────────┐
- │[3]: *._y shape 0:1 │
- │┌┬─────────┐ │
- │││axis 0 │ │
- │├┼─────────┤ │
- │││ 1.40e+1 │ │
- │└┴─────────┘ │
- └────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_161bfa.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_161bfad1353a.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_161bfa_run_id_1.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 29, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_161bfa.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_161bfad1353a.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_161bfa_run_id_1.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccIyWwCW.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_161bfa.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Matrix multiplication dims 1x1" =
Tensor.unsafe_reinitialize ();
@@ -59,31 +83,44 @@ let%expect_test "Matrix multiplication dims 1x1" =
ignore (Train.forward_once backend y);
(* Punning for ["hey"] above introduced the [hey] identifier. *)
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hey;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:61:21
- ┌────────────────────────┐
- │[0]: hey shape 1:1->0:1 │
- │┌──────┬──────┐ │
- ││ │axis 1│ │
- │├──────┼──────┤ │
- ││axis 0│ 7.00 │ │
- │└──────┴──────┘ │
- └────────────────────────┘
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false y;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:74:21
- ┌───────────────────┐
- │[6]: +_y shape 0:1 │
- │┌┬─────────┐ │
- │││axis 0 │ │
- │├┼─────────┤ │
- │││ 1.50e+1 │ │
- │└┴─────────┘ │
- └───────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_6eb133.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_6eb13320ac61.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\init_params_for_y_6eb133_run_id_2.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.to_routine in file "lib/train.ml", line 321, characters 26-82
+ Called from Ocannl__Train.init_params in file "lib/train.ml", line 341, characters 13-72
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 514, characters 9-73
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 59, characters 9-39
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_6eb133.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_6eb13320ac61.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\init_params_for_y_6eb133_run_id_2.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccJEMS5l.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/init_params_for_y_6eb133.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Print tensor too early" =
Tensor.unsafe_reinitialize ();
@@ -106,18 +143,40 @@ let%expect_test "Print tensor too early" =
ignore (Train.forward_once (module Backend) c);
Train.printf ~here:[%here] c;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:108:21
- ┌─────────────────────────────────┐
- │[2]: *._c shape 0:4| │
- │┌┬──────────────────────────────┐│
- │││axis 0 ││
- │├┼──────────────────────────────┤│
- │││ 2.00 6.00 1.20e+1 2.00e+1 ││
- │└┴──────────────────────────────┘│
- └─────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_a7a27c.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_a7a27c9b9865.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\c_fwd_a7a27c_run_id_3.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 107, characters 9-48
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_a7a27c.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_a7a27c9b9865.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\c_fwd_a7a27c_run_id_3.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccuWPhCH.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/c_fwd_a7a27c.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Print constant tensor" =
Tensor.unsafe_reinitialize ();
@@ -135,53 +194,15 @@ let%expect_test "Print constant tensor" =
ignore (Train.forward_once backend hey);
(* ignore (failwith @@ Tn.debug_memory_mode hey.value.memory_mode); *)
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline hey;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:137:21
- [0]: 1,2,3,4,5..._hey shape 1:3->0:2 [
- 1.00 , 2.00 , 3.00
- ; 4.00 , 5.00 , 6.00
- ]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hey;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:146:21
- ┌─────────────────────────────────────┐
- │[0]: 1,2,3,4,5..._hey shape 1:3->0:2 │
- │┌──────┬──────────────────┐ │
- ││ │axis 1 │ │
- │├──────┼──────────────────┤ │
- ││axis 0│ 1.00 2.00 3.00 │ │
- ││ │ 4.00 5.00 6.00 │ │
- │└──────┴──────────────────┘ │
- └─────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op hoo = [| [ 1; 2; 3 ]; [ 4; 5; 6 ] |] in
ignore (Train.forward_once backend hoo);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline hoo;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:162:21
- [1]: 1,2,3,4,5..._hoo shape 0:2|1:3 [|
- [ 1.00 ; 2.00 ; 3.00 ]
- ; [ 4.00 ; 5.00 ; 6.00 ]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hoo;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:171:21
- ┌────────────────────────────────────┐
- │[1]: 1,2,3,4,5..._hoo shape 0:2|1:3 │
- │┌──────┬──────────────────┐ │
- ││ │axis 1 │ │
- │├──────┼──────────────────┤ │
- ││axis 0│ 1.00 2.00 3.00 │ │
- ││ │ 4.00 5.00 6.00 │ │
- │└──────┴──────────────────┘ │
- └────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op hey2 =
[
((1, 2, 3), (4, 5, 6));
@@ -192,39 +213,9 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend hey2);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false @@ hey2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:194:21
- ┌────────────────────────────────────────────────────────────────┐
- │[2]: 1,2,3,4,5..._hey2 shape 1:2,2:3->0:4 │
- │┌──────┬───────────────────────────┬───────────────────────────┐│
- ││ │0 @ 1 │1 @ 1 ││
- ││ │axis 2 │axis 2 ││
- │├──────┼───────────────────────────┼───────────────────────────┤│
- ││axis 0│ 1.00 2.00 3.00 │ 4.00 5.00 6.00 ││
- ││ │ 7.00 8.00 9.00 │ 1.00e+1 1.10e+1 1.20e+1 ││
- ││ │ 1.30e+1 1.40e+1 1.50e+1 │ 1.60e+1 1.70e+1 1.80e+1 ││
- ││ │ 1.90e+1 2.00e+1 2.10e+1 │ 2.20e+1 2.30e+1 2.40e+1 ││
- │└──────┴───────────────────────────┴───────────────────────────┘│
- └────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hey2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:211:21
- ┌────────────────────────────────────────────────────────────────┐
- │[2]: 1,2,3,4,5..._hey2 shape 1:2,2:3->0:4 │
- │┌──────┬───────────────────────────┬───────────────────────────┐│
- ││ │0 @ 1 │1 @ 1 ││
- ││ │axis 2 │axis 2 ││
- │├──────┼───────────────────────────┼───────────────────────────┤│
- ││axis 0│ 1.00 2.00 3.00 │ 4.00 5.00 6.00 ││
- ││ │ 7.00 8.00 9.00 │ 1.00e+1 1.10e+1 1.20e+1 ││
- ││ │ 1.30e+1 1.40e+1 1.50e+1 │ 1.60e+1 1.70e+1 1.80e+1 ││
- ││ │ 1.90e+1 2.00e+1 2.10e+1 │ 2.20e+1 2.30e+1 2.40e+1 ││
- │└──────┴───────────────────────────┴───────────────────────────┘│
- └────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op hoo2 =
[|
[ [ 1; 2; 3 ]; [ 4; 5; 6 ] ];
@@ -235,31 +226,9 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend hoo2);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline hoo2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:237:21
- [3]: 1,2,3,4,5..._hoo2 shape 0:4|1:2,2:3 [|
- [ [ 1.00 ; 2.00 ; 3.00 ] ; [ 4.00 ; 5.00 ; 6.00 ] ]
- ; [ [ 7.00 ; 8.00 ; 9.00 ] ; [ 10.00 ; 11.00 ; 12.00 ] ]
- ; [ [ 13.00 ; 14.00 ; 15.00 ] ; [ 16.00 ; 17.00 ; 18.00 ] ]
- ; [ [ 19.00 ; 20.00 ; 21.00 ] ; [ 22.00 ; 23.00 ; 24.00 ] ]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hoo2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:248:21
- ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │[3]: 1,2,3,4,5..._hoo2 shape 0:4|1:2,2:3 │
- │┌──────┬──────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 │3 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 │axis 2 ││
- │├──────┼──────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤│
- ││axis 1│ 1.00 2.00 3.00 │ 7.00 8.00 9.00 │ 1.30e+1 1.40e+1 1.50e+1 │ 1.90e+1 2.00e+1 2.10e+1 ││
- ││ │ 4.00 5.00 6.00 │ 1.00e+1 1.10e+1 1.20e+1 │ 1.60e+1 1.70e+1 1.80e+1 │ 2.20e+1 2.30e+1 2.40e+1 ││
- │└──────┴──────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────┘│
- └───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op heyhoo =
[|
[| [ 1; 2; 3 ]; [ 4; 5; 6 ] |];
@@ -270,31 +239,9 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend heyhoo);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline heyhoo;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:272:21
- [4]: 1,2,3,4,5..._heyhoo shape 0:4,1:2|2:3 [|
- [| [ 1.00 ; 2.00 ; 3.00 ] ; [ 4.00 ; 5.00 ; 6.00 ] |]
- ; [| [ 7.00 ; 8.00 ; 9.00 ] ; [ 10.00 ; 11.00 ; 12.00 ] |]
- ; [| [ 13.00 ; 14.00 ; 15.00 ] ; [ 16.00 ; 17.00 ; 18.00 ] |]
- ; [| [ 19.00 ; 20.00 ; 21.00 ] ; [ 22.00 ; 23.00 ; 24.00 ] |]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false heyhoo;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:283:21
- ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │[4]: 1,2,3,4,5..._heyhoo shape 0:4,1:2|2:3 │
- │┌──────┬──────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────┐│
- ││ │0 @ 0 │1 @ 0 │2 @ 0 │3 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2 │axis 2 ││
- │├──────┼──────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤│
- ││axis 1│ 1.00 2.00 3.00 │ 7.00 8.00 9.00 │ 1.30e+1 1.40e+1 1.50e+1 │ 1.90e+1 2.00e+1 2.10e+1 ││
- ││ │ 4.00 5.00 6.00 │ 1.00e+1 1.10e+1 1.20e+1 │ 1.60e+1 1.70e+1 1.80e+1 │ 2.20e+1 2.30e+1 2.40e+1 ││
- │└──────┴──────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────┘│
- └───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op heyhoo2 =
[|
[| [ [ 1; 31 ]; [ 2; 32 ]; [ 3; 33 ] ]; [ [ 4; 34 ]; [ 5; 35 ]; [ 6; 36 ] ] |];
@@ -305,56 +252,9 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend heyhoo2);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline heyhoo2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:307:21
- [5]: 1,31,2,32,3..._heyhoo2 shape 0:4,1:2|2:3,3:2 [|
- [|
- [ [ 1.00 ; 31.00 ] ; [ 2.00 ; 32.00 ] ; [ 3.00 ; 33.00 ] ]
- ; [ [ 4.00 ; 34.00 ] ; [ 5.00 ; 35.00 ] ; [ 6.00 ; 36.00 ] ]
- |]
- ; [|
- [ [ 7.00 ; 37.00 ] ; [ 8.00 ; 38.00 ] ; [ 9.00 ; 39.00 ] ]
- ; [ [ 10.00 ; 40.00 ] ; [ 11.00 ; 41.00 ] ; [ 12.00 ; 42.00 ] ]
- |]
- ; [|
- [ [ 13.00 ; 43.00 ] ; [ 14.00 ; 44.00 ] ; [ 15.00 ; 45.00 ] ]
- ; [ [ 16.00 ; 46.00 ] ; [ 17.00 ; 47.00 ] ; [ 18.00 ; 48.00 ] ]
- |]
- ; [|
- [ [ 19.00 ; 49.00 ] ; [ 20.00 ; 50.00 ] ; [ 21.00 ; 51.00 ] ]
- ; [ [ 22.00 ; 52.00 ] ; [ 23.00 ; 53.00 ] ; [ 24.00 ; 54.00 ] ]
- |]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false heyhoo2;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:330:21
- ┌──────────────────────────────────────────────────┐
- │[5]: 1,31,2,32,3..._heyhoo2 shape 0:4,1:2|2:3,3:2 │
- │┌──────┬──────────────────┬──────────────────┐ │
- ││ │0 @ 1 │1 @ 1 │ │
- ││ │axis 3 │axis 3 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││0 @ 0 │ 1.00 3.10e+1 │ 4.00 3.40e+1 │ │
- ││axis 2│ 2.00 3.20e+1 │ 5.00 3.50e+1 │ │
- ││ │ 3.00 3.30e+1 │ 6.00 3.60e+1 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││1 @ 0 │ 7.00 3.70e+1 │ 1.00e+1 4.00e+1 │ │
- ││axis 2│ 8.00 3.80e+1 │ 1.10e+1 4.10e+1 │ │
- ││ │ 9.00 3.90e+1 │ 1.20e+1 4.20e+1 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││2 @ 0 │ 1.30e+1 4.30e+1 │ 1.60e+1 4.60e+1 │ │
- ││axis 2│ 1.40e+1 4.40e+1 │ 1.70e+1 4.70e+1 │ │
- ││ │ 1.50e+1 4.50e+1 │ 1.80e+1 4.80e+1 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││3 @ 0 │ 1.90e+1 4.90e+1 │ 2.20e+1 5.20e+1 │ │
- ││axis 2│ 2.00e+1 5.00e+1 │ 2.30e+1 5.30e+1 │ │
- ││ │ 2.10e+1 5.10e+1 │ 2.40e+1 5.40e+1 │ │
- │└──────┴──────────────────┴──────────────────┘ │
- └──────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op heyhoo3 =
[|
[|
@@ -369,65 +269,9 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend heyhoo3);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline heyhoo3;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:371:21
- [6]: 1,31,2,32,3..._heyhoo3 shape 0:2,1:2|2:2,3:3,4:2 [|
- [|
- [
- [ [ 1.00 ; 31.00 ] ; [ 2.00 ; 32.00 ] ; [ 3.00 ; 33.00 ] ]
- ; [ [ 4.00 ; 34.00 ] ; [ 5.00 ; 35.00 ] ; [ 6.00 ; 36.00 ] ]
- ]
- ; [
- [ [ 7.00 ; 37.00 ] ; [ 8.00 ; 38.00 ] ; [ 9.00 ; 39.00 ] ]
- ; [ [ 10.00 ; 40.00 ] ; [ 11.00 ; 41.00 ] ; [ 12.00 ; 42.00 ] ]
- ]
- |]
- ; [|
- [
- [ [ 13.00 ; 43.00 ] ; [ 14.00 ; 44.00 ] ; [ 15.00 ; 45.00 ] ]
- ; [ [ 16.00 ; 46.00 ] ; [ 17.00 ; 47.00 ] ; [ 18.00 ; 48.00 ] ]
- ]
- ; [
- [ [ 19.00 ; 49.00 ] ; [ 20.00 ; 50.00 ] ; [ 21.00 ; 51.00 ] ]
- ; [ [ 22.00 ; 52.00 ] ; [ 23.00 ; 53.00 ] ; [ 24.00 ; 54.00 ] ]
- ]
- |]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false heyhoo3;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:398:21
- ┌──────────────────────────────────────────────────────┐
- │[6]: 1,31,2,32,3..._heyhoo3 shape 0:2,1:2|2:2,3:3,4:2 │
- │┌──────┬───────────────┬──────────────────┐ │
- ││0 @ 0 │0 @ 2 │1 @ 2 │ │
- ││ │axis 4 │axis 4 │ │
- │├──────┼───────────────┼──────────────────┤ │
- ││0 @ 1 │ 1.00 3.10e+1 │ 4.00 3.40e+1 │ │
- ││axis 3│ 2.00 3.20e+1 │ 5.00 3.50e+1 │ │
- ││ │ 3.00 3.30e+1 │ 6.00 3.60e+1 │ │
- │├──────┼───────────────┼──────────────────┤ │
- ││1 @ 1 │ 7.00 3.70e+1 │ 1.00e+1 4.00e+1 │ │
- ││axis 3│ 8.00 3.80e+1 │ 1.10e+1 4.10e+1 │ │
- ││ │ 9.00 3.90e+1 │ 1.20e+1 4.20e+1 │ │
- │└──────┴───────────────┴──────────────────┘ │
- ├──────────────────────────────────────────────────────┤
- │┌──────┬──────────────────┬──────────────────┐ │
- ││1 @ 0 │0 @ 2 │1 @ 2 │ │
- ││ │axis 4 │axis 4 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││0 @ 1 │ 1.30e+1 4.30e+1 │ 1.60e+1 4.60e+1 │ │
- ││axis 3│ 1.40e+1 4.40e+1 │ 1.70e+1 4.70e+1 │ │
- ││ │ 1.50e+1 4.50e+1 │ 1.80e+1 4.80e+1 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││1 @ 1 │ 1.90e+1 4.90e+1 │ 2.20e+1 5.20e+1 │ │
- ││axis 3│ 2.00e+1 5.00e+1 │ 2.30e+1 5.30e+1 │ │
- ││ │ 2.10e+1 5.10e+1 │ 2.40e+1 5.40e+1 │ │
- │└──────┴──────────────────┴──────────────────┘ │
- └──────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
let%op heyhoo4 =
[|
[
@@ -442,65 +286,42 @@ let%expect_test "Print constant tensor" =
in
ignore (Train.forward_once backend heyhoo4);
Train.printf ~here:[%here] ~with_code:false ~with_grad:false ~style:`Inline heyhoo4;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:444:21
- [7]: 1,31,2,32,3..._heyhoo4 shape 0:2|4:2->1:2,2:2,3:3 [|
- [
- [
- [ 1.00 , 31.00 ; 2.00 , 32.00 ; 3.00 , 33.00 ]
- ; [ 4.00 , 34.00 ; 5.00 , 35.00 ; 6.00 , 36.00 ]
- ]
- ; [
- [ 7.00 , 37.00 ; 8.00 , 38.00 ; 9.00 , 39.00 ]
- ; [ 10.00 , 40.00 ; 11.00 , 41.00 ; 12.00 , 42.00 ]
- ]
- ]
- ; [
- [
- [ 13.00 , 43.00 ; 14.00 , 44.00 ; 15.00 , 45.00 ]
- ; [ 16.00 , 46.00 ; 17.00 , 47.00 ; 18.00 , 48.00 ]
- ]
- ; [
- [ 19.00 , 49.00 ; 20.00 , 50.00 ; 21.00 , 51.00 ]
- ; [ 22.00 , 52.00 ; 23.00 , 53.00 ; 24.00 , 54.00 ]
- ]
- ]
- |]
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false heyhoo4;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:471:21
- ┌───────────────────────────────────────────────────────┐
- │[7]: 1,31,2,32,3..._heyhoo4 shape 0:2|4:2->1:2,2:2,3:3 │
- │┌──────┬───────────────┬──────────────────┐ │
- ││0 @ 0 │0 @ 2 │1 @ 2 │ │
- ││ │axis 4 │axis 4 │ │
- │├──────┼───────────────┼──────────────────┤ │
- ││0 @ 1 │ 1.00 3.10e+1 │ 4.00 3.40e+1 │ │
- ││axis 3│ 2.00 3.20e+1 │ 5.00 3.50e+1 │ │
- ││ │ 3.00 3.30e+1 │ 6.00 3.60e+1 │ │
- │├──────┼───────────────┼──────────────────┤ │
- ││1 @ 1 │ 7.00 3.70e+1 │ 1.00e+1 4.00e+1 │ │
- ││axis 3│ 8.00 3.80e+1 │ 1.10e+1 4.10e+1 │ │
- ││ │ 9.00 3.90e+1 │ 1.20e+1 4.20e+1 │ │
- │└──────┴───────────────┴──────────────────┘ │
- ├───────────────────────────────────────────────────────┤
- │┌──────┬──────────────────┬──────────────────┐ │
- ││1 @ 0 │0 @ 2 │1 @ 2 │ │
- ││ │axis 4 │axis 4 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││0 @ 1 │ 1.30e+1 4.30e+1 │ 1.60e+1 4.60e+1 │ │
- ││axis 3│ 1.40e+1 4.40e+1 │ 1.70e+1 4.70e+1 │ │
- ││ │ 1.50e+1 4.50e+1 │ 1.80e+1 4.80e+1 │ │
- │├──────┼──────────────────┼──────────────────┤ │
- ││1 @ 1 │ 1.90e+1 4.90e+1 │ 2.20e+1 5.20e+1 │ │
- ││axis 3│ 2.00e+1 5.00e+1 │ 2.30e+1 5.30e+1 │ │
- ││ │ 2.10e+1 5.10e+1 │ 2.40e+1 5.40e+1 │ │
- │└──────┴──────────────────┴──────────────────┘ │
- └───────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hey_fwd_f3b6f0.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hey_fwd_f3b6f068f252.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hey_fwd_f3b6f0_run_id_4.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 135, characters 9-41
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hey_fwd_f3b6f0.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hey_fwd_f3b6f068f252.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hey_fwd_f3b6f0_run_id_4.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cctrreYs.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hey_fwd_f3b6f0.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
...TRUNCATED BY DUNE...
- ││8 @ 1 │ 4.43e+4 4.43e+4 ... 4.43e+4 4.43e+4 │ 4.43e+4 4.43e+4 ... 4.43e+4 4.43e+4 │ ... │ 4.44e+4 4.44e+4 ... 4.44e+4 4.44e+4 │ 4.44e+4 4.44e+4 ... 4.44e+4 4.44e+4 ││
- ││axis 2│ 4.48e+4 4.48e+4 ... 4.48e+4 4.48e+4 │ 4.48e+4 4.48e+4 ... 4.48e+4 4.48e+4 │ │ 4.49e+4 4.49e+4 ... 4.49e+4 4.49e+4 │ 4.49e+4 4.49e+4 ... 4.49e+4 4.49e+4 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 4.88e+4 4.88e+4 ... 4.88e+4 4.88e+4 │ 4.88e+4 4.88e+4 ... 4.89e+4 4.89e+4 │ │ 4.89e+4 4.89e+4 ... 4.89e+4 4.89e+4 │ 4.89e+4 4.89e+4 ... 4.89e+4 4.89e+4 ││
- ││ │ 4.93e+4 4.93e+4 ... 4.93e+4 4.94e+4 │ 4.94e+4 4.94e+4 ... 4.94e+4 4.94e+4 │ │ 4.94e+4 4.94e+4 ... 4.94e+4 4.94e+4 │ 4.94e+4 4.94e+4 ... 4.94e+4 4.94e+4 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││9 @ 1 │ 4.98e+4 4.98e+4 ... 4.99e+4 4.99e+4 │ 4.99e+4 4.99e+4 ... 4.99e+4 4.99e+4 │ ... │ 4.99e+4 4.99e+4 ... 4.99e+4 4.99e+4 │ 4.99e+4 4.99e+4 ... 4.99e+4 4.99e+4 ││
- ││axis 2│ 5.04e+4 5.04e+4 ... 5.04e+4 5.04e+4 │ 5.04e+4 5.04e+4 ... 5.04e+4 5.04e+4 │ │ 5.04e+4 5.04e+4 ... 5.04e+4 5.04e+4 │ 5.04e+4 5.04e+4 ... 5.04e+4 5.04e+4 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 5.44e+4 5.44e+4 ... 5.44e+4 5.44e+4 │ 5.44e+4 5.44e+4 ... 5.44e+4 5.44e+4 │ │ 5.44e+4 5.44e+4 ... 5.44e+4 5.44e+4 │ 5.44e+4 5.44e+4 ... 5.45e+4 5.45e+4 ││
- ││ │ 5.49e+4 5.49e+4 ... 5.49e+4 5.49e+4 │ 5.49e+4 5.49e+4 ... 5.49e+4 5.49e+4 │ │ 5.49e+4 5.49e+4 ... 5.49e+4 5.49e+4 │ 5.49e+4 5.50e+4 ... 5.50e+4 5.50e+4 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││1 @ 0 │0 @ 4 │1 @ 4 │~~~~~ │6 @ 4 │7 @ 4 ││
- ││ │axis 5 │axis 5 │axis 5│axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 1 │ 5.54e+4 5.54e+4 ... 5.54e+5.54e+4 │ 5.54e+4 5.54e+4 ... 5.54e+4 5.54e+4 │ ... │ 5.54e+4 5.54e+4 ... 5.55e+4 5.55e+4 │ 5.55e+4 5.55e+4 ... 5.55e+4 5.55e+4 ││
- ││axis 2│ 5.59e+4 5.59e+4 ... 5.59e+4 5.59e+4 │ 5.59e+4 5.59e+4 ... 5.59e+4 5.59e+4 │ │ 5.59e+4 5.59e+4 ... 5.60e+4 5.60e+4 │ 5.60e+4 5.60e+4 ... 5.60e+4 5.60e+4 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 5.99e+4 5.99e+4 ... 5.99e+4 5.99e+4 │ 5.99e+4 5.99e+4 ... 5.99e+4 5.99e+4 │ │ 6.00e+4 6.00e+4 ... 6.00e+4 6.00e+4 │ 6.00e+4 6.00e+4 ... 6.00e+4 6.00e+4 ││
- ││ │ 6.04e+4 6.04e+4 ... 6.04e+4 6.04e+4 │ 6.04e+4 6.04e+4 ... 6.04e+4 6.04e+4 │ │ 6.05e+4 6.05e+4 ... 6.05e+4 6.05e+4 │ 6.05e+4 6.05e+4 ... 6.05e+4 6.05e+4 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 1 │ 6.09e+4 6.09e+4 ... 6.09e+4 6.09e+4 │ 6.09e+4 6.09e+4 ... 6.10e+4 6.10e+4 │ ... │ 6.10e+4 6.10e+4 ... 6.10e+4 6.10e+4 │ 6.10e+4 6.10e+4 ... 6.10e+4 6.10e+4 ││
- ││axis 2│ 6.14e+4 6.14e+4 ... 6.14e+4 6.14e+4 │ 6.14e+4 6.14e+4 ... 6.15e+4 6.15e+4 │ │ 6.15e+4 6.15e+4 ... 6.15e+4 6.15e+4 │ 6.15e+4 6.15e+4 ... 6.15e+4 6.15e+4 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 6.55e+4 6.55e+4 ... 6.55e+4 6.55e+4 │ 6.55e+4 6.55e+4 ... 6.55e+4 6.55e+4 │ │ 6.55e+4 6.55e+4 ... 6.55e+4 6.55e+4 │ 6.55e+4 6.55e+4 ... 6.55e+4 6.55e+4 ││
- ││ │ 6.60e+4 6.60e+4 ... 6.60e+4 6.60e+4 │ 6.60e+4 6.60e+4 ... 6.60e+4 6.60e+4 │ │ 6.60e+4 6.60e+4 ... 6.60e+4 6.60e+4 │ 6.60e+4 6.60e+4 ... 6.60e+4 6.60e+4 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││~~~~~ │ ... │ ... │ ... │ ... │ ... ││
- ││axis 2│ │ │ │ │ ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││8 @ 1 │ 9.97e+4 9.97e+4 ... 9.97e+4 9.98e+4 │ 9.98e+4 9.98e+4 ... 9.98e+4 9.98e+4 │ ... │ 9.98e+4 9.98e+4 ... 9.98e+4 9.98e+4 │ 9.98e+4 9.98e+4 ... 9.98e+4 9.98e+4 ││
- ││axis 2│ 1.00e+5 1.00e+5 ... 1.00e+5 1.00e+5 │ 1.00e+5 1.00e+5 ... 1.00e+5 1.00e+5 │ │ 1.00e+5 1.00e+5 ... 1.00e+5 1.00e+5 │ 1.00e+5 1.00e+5 ... 1.00e+5 1.00e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 ││
- ││ │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 │ 1.04e+5 1.04e+5 ... 1.04e+5 1.04e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││9 @ 1 │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ ... │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 ││
- ││axis 2│ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 │ 1.05e+5 1.05e+5 ... 1.05e+5 1.05e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 1.09e+5 1.09e+5 ... 1.09e+5 1.09e+5 │ 1.09e+5 1.09e+5 ... 1.09e+5 1.09e+5 │ │ 1.09e+5 1.09e+5 ... 1.09e+5 1.09e+5 │ 1.09e+5 1.09e+5 ... 1.09e+5 1.09e+5 ││
- ││ │ 1.10e+5 1.10e+5 ... 1.10e+5 1.10e+5 │ 1.10e+5 1.10e+5 ... 1.10e+5 1.10e+5 │ │ 1.10e+5 1.10e+5 ... 1.10e+5 1.10e+5 │ 1.10e+5 1.10e+5 ... 1.10e+5 1.10e+5 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │ ... │
- ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││4 @ 0 │0 @ 4 │1 @ 4 │~~~~~ │6 @ 4 │7 @ 4 ││
- ││ │axis 5 │axis 5 │axis 5│axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 1 │ 2.21e+5 2.21e+5 ... 2.21e+5 2.21e+5 │ 2.21e+5 2.21e+5 ... 2.21e+5 2.21e+5 │ ... │ 2.21e+5 2.21e+5 ... 2.21e+5 2.21e+5 │ 2.21e+5 2.21e+5 ... 2.21e+5 2.21e+5 ││
- ││axis 2│ 2.22e+5 2.22e+5 ... 2.22e+5 2.22e+5 │ 2.22e+5 2.22e+5 ... 2.22e+5 2.22e+5 │ │ 2.22e+5 2.22e+5 ... 2.22e+5 2.22e+5 │ 2.22e+5 2.22e+5 ... 2.22e+5 2.22e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 ││
- ││ │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 │ 2.26e+5 2.26e+5 ... 2.26e+5 2.26e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 1 │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ ... │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 ││
- ││axis 2│ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 │ 2.27e+5 2.27e+5 ... 2.27e+5 2.27e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.31e+5 2.31e+5 ... 2.31e+5 2.31e+5 │ 2.31e+5 2.31e+5 ... 2.31e+5 2.31e+5 │ │ 2.31e+5 2.31e+5 ... 2.31e+5 2.31e+5 │ 2.31e+5 2.31e+5 ... 2.31e+5 2.31e+5 ││
- ││ │ 2.32e+5 2.32e+5 ... 2.32e+5 2.32e+5 │ 2.32e+5 2.32e+5 ... 2.32e+5 2.32e+5 │ │ 2.32e+5 2.32e+5 ... 2.32e+5 2.32e+5 │ 2.32e+5 2.32e+5 ... 2.32e+5 2.32e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││~~~~~ │ ... │ ... │ ... │ ... │ ... ││
- ││axis 2│ │ │ │ │ ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││8 @ 1 │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ ... │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 ││
- ││axis 2│ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 │ 2.66e+5 2.66e+5 ... 2.66e+5 2.66e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.70e+5 2.70e+5 ... 2.70e+5 2.70e+5 │ 2.70e+5 2.70e+5 ... 2.70e+5 2.70e+5 │ │ 2.70e+5 2.70e+5 ... 2.70e+5 2.70e+5 │ 2.70e+5 2.70e+5 ... 2.70e+5 2.70e+5 ││
- ││ │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││9 @ 1 │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ ... │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 │ 2.71e+5 2.71e+5 ... 2.71e+5 2.71e+5 ││
- ││axis 2│ 2.72e+5 2.72e+5 ... 2.72e+5 2.72e+5 │ 2.72e+5 2.72e+5 ... 2.72e+5 2.72e+5 │ │ 2.72e+5 2.72e+5 ... 2.72e+5 2.72e+5 │ 2.72e+5 2.72e+5 ... 2.72e+5 2.72e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 ││
- ││ │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 │ 2.76e+5 2.76e+5 ... 2.76e+5 2.76e+5 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││5 @ 0 │0 @ 4 │1 @ 4 │~~~~~ │6 @ 4 │7 @ 4 ││
- ││ │axis 5 │axis 5 │axis 5│axis 5 │axis 5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││0 @ 1 │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ ... │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 ││
- ││axis 2│ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 │ 2.77e+5 2.77e+5 ... 2.77e+5 2.77e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.81e+5 2.81e+5 ... 2.81e+5 2.81e+5 │ 2.81e+5 2.81e+5 ... 2.81e+5 2.81e+5 │ │ 2.81e+5 2.81e+5 ... 2.81e+5 2.81e+5 │ 2.81e+5 2.81e+5 ... 2.81e+5 2.81e+5 ││
- ││ │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││1 @ 1 │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ ... │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 │ 2.82e+5 2.82e+5 ... 2.82e+5 2.82e+5 ││
- ││axis 2│ 2.83e+5 2.83e+5 ... 2.83e+5 2.83e+5 │ 2.83e+5 2.83e+5 ... 2.83e+5 2.83e+5 │ │ 2.83e+5 2.83e+5 ... 2.83e+5 2.83e+5 │ 2.83e+5 2.83e+5 ... 2.83e+5 2.83e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 ││
- ││ │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 │ 2.87e+5 2.87e+5 ... 2.87e+5 2.87e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││~~~~~ │ ... │ ... │ ... │ ... │ ... ││
- ││axis 2│ │ │ │ │ ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││8 @ 1 │ 3.21e+5 3.21e+5 ... 3.21e+5 3.21e+5 │ 3.21e+5 3.21e+5 ... 3.21e+5 3.21e+5 │ ... │ 3.21e+5 3.21e+5 ... 3.21e+5 3.21e+5 │ 3.21e+5 3.21e+5 ... 3.21e+5 3.21e+5 ││
- ││axis 2│ 3.22e+5 3.22e+5 ... 3.22e+5 3.22e+5 │ 3.22e+5 3.22e+5 ... 3.22e+5 3.22e+5 │ │ 3.22e+5 3.22e+5 ... 3.22e+5 3.22e+5 │ 3.22e+5 3.22e+5 ... 3.22e+5 3.22e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 ││
- ││ │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 │ 3.26e+5 3.26e+5 ... 3.26e+5 3.26e+5 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││9 @ 1 │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ ... │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 ││
- ││axis 2│ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 │ 3.27e+5 3.27e+5 ... 3.27e+5 3.27e+5 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 3.31e+5 3.31e+5 ... 3.31e+5 3.31e+5 │ 3.31e+5 3.31e+5 ... 3.31e+5 3.31e+5 │ │ 3.31e+5 3.31e+5 ... 3.31e+5 3.31e+5 │ 3.31e+5 3.31e+5 ... 3.31e+5 3.31e+5 ││
- ││ │ 3.32e+5 3.32e+5 ... 3.32e+5 3.32e+5 │ 3.32e+5 3.32e+5 ... 3.32e+5 3.32e+5 │ │ 3.32e+5 3.32e+5 ... 3.32e+5 3.32e+5 │ 3.32e+5 3.32e+5 ... 3.32e+5 3.32e+5 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}];
+ [%expect.unreachable];
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hoo;
(* Disable line wrapping for viewing the output. In VSCode: `View: Toggle Word Wrap`. *)
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:752:21
- ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
- │[6]: -_hoo shape 0:6|1:10,2:11 │
- │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
- ││ │0 @ 0 │1 @ 0 │~~~~~ │4 @ 0 │5 @ 0 ││
- ││ │axis 2 │axis 2 │axis 2│axis 2 │axis 2 ││
- │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
- ││axis 1│ 2.53e+5 7.61e+5 ... 4.82e+6 5.33e+6 │ 5.61e+7 5.66e+7 ... 6.07e+7 6.12e+7 │ ... │ 2.23e+8 2.24e+8 ... 2.28e+8 2.28e+8 │ 2.79e+8 2.80e+8 ... 2.84e+8 2.84e+8 ││
- ││ │ 5.84e+6 6.34e+6 ... 1.04e+7 1.09e+7 │ 6.17e+7 6.22e+7 ... 6.62e+7 6.68e+7 │ │ 2.29e+8 2.29e+8 ... 2.33e+8 2.34e+8 │ 2.85e+8 2.85e+8 ... 2.89e+8 2.90e+8 ││
- ││ │ ... ... ... ... ... │ ... ... ... ... ... │ │ ... ... ... ... ... │ ... ... ... ... ... ││
- ││ │ 4.49e+7 4.54e+7 ... 4.95e+7 5.00e+7 │ 1.00e+8 1.01e+8 ... 1.05e+8 1.05e+8 │ │ 2.68e+8 2.69e+8 ... 2.73e+8 2.73e+8 │ 3.24e+8 3.24e+8 ... 3.28e+8 3.29e+8 ││
- ││ │ 5.05e+7 5.10e+7 ... 5.51e+7 5.56e+7 │ 1.06e+8 1.06e+8 ... 1.11e+8 1.11e+8 │ │ 2.74e+8 2.74e+8 ... 2.78e+8 2.79e+8 │ 3.29e+8 3.30e+8 ... 3.34e+8 3.35e+8 ││
- │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
- └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hoo_fwd_002f29.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hoo_fwd_002f2979da58.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\hoo_fwd_002f29_run_id_7.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 614, characters 9-41
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hoo_fwd_002f29.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hoo_fwd_002f2979da58.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\hoo_fwd_002f29_run_id_7.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/ccG6mILX.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/hoo_fwd_002f29.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
let%expect_test "Embed self id" =
Tensor.unsafe_reinitialize ();
@@ -790,44 +513,39 @@ let%expect_test "Embed self id" =
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hey;
Train.printf ~here:[%here] ~with_code:false ~with_grad:false hoo;
Train.printf ~here:[%here] ~with_code:false ~with_grad:false bar;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:790:21
- ┌─────────────────────────┐
- │[0]: !@self_id shape 0:1 │
- │┌┬──────┐ │
- │││axis 0│ │
- │├┼──────┤ │
- │││ 0.00 │ │
- │└┴──────┘ │
- └─────────────────────────┘
- HERE: test/operations/hello_world_op.ml:791:21
- ┌─────────────────────────┐
- │[1]: !@self_id shape 0:1 │
- │┌┬──────┐ │
- │││axis 0│ │
- │├┼──────┤ │
- │││ 1.00 │ │
- │└┴──────┘ │
- └─────────────────────────┘
- HERE: test/operations/hello_world_op.ml:792:21
- ┌─────────────────────┐
- │[4]: +_bar shape 0:1 │
- │┌┬──────┐ │
- │││axis 0│ │
- │├┼──────┤ │
- │││ 3.00 │ │
- │└┴──────┘ │
- └─────────────────────┘
- |}];
+ [%expect.unreachable];
Train.printf_tree ~here:[%here] bar;
- [%expect
- {|
- HERE: test/operations/hello_world_op.ml:823:26
- #4 +_bar
- 3.00
- #3 + Virt/40 │#2 !@self_id Virt/40
- <void> │<void>
- #1 !@self_id│#0 !@self_id│
- 1.00 │ 0.00 │
- |}]
+ [%expect.unreachable]
+[@@expect.uncaught_exn {|
+ (* CR expect_test_collector: This test expectation appears to contain a backtrace.
+ This is strongly discouraged as backtraces are fragile.
+ Please change this test to not include a backtrace. *)
+ (Invalid_argument
+ "Cc_backend.c_compile_and_load: compilation failed with errors:\
+ \nCommand: x86_64-w64-mingw32-gcc\r C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\bar_fwd_3554f1.c -O3 -o C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\bar_fwd_3554f1312e6b.dll -shared >> C:\\Users\\opam\\AppData\\Local\\Temp\\build_b9a353_dune\\bar_fwd_3554f1_run_id_8.log 2>&1\
+ \nBuiltins lib: ''\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'\
+ \n/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'\
+ \ncollect2: error: ld returned 1 exit status\
+ \n")
+ Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
+ Called from Backends__Cc_backend.c_compile_and_load in file "arrayjit/lib/cc_backend.ml", line 127, characters 4-22
+ Called from Backends__Cc_backend.compile in file "arrayjit/lib/cc_backend.ml", line 335, characters 23-67
+ Called from Backends.Add_device.compile in file "arrayjit/lib/backends.ml", line 324, characters 15-45
+ Called from Backends.Raise_backend.compile in file "arrayjit/lib/backends.ml", line 441, characters 29-59
+ Called from Ocannl__Train.run_once in file "lib/train.ml", line 516, characters 37-77
+ Called from Ocannl__Train.forward_once in file "lib/train.ml", line 528, characters 12-96
+ Called from Operations_tutorials__Hello_world_op.(fun) in file "test/operations/hello_world_op.ml", line 789, characters 9-41
+ Called from Ppx_expect_runtime__Test_block.Configured.dump_backtrace in file "runtime/test_block.ml", line 142, characters 10-28
+
+ Trailing output
+ ---------------
+ Cc_backend.c_compile_and_load: compilation failed with errors:
+ Command: x86_64-w64-mingw32-gcc
C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\bar_fwd_3554f1.c -O3 -o C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\bar_fwd_3554f1312e6b.dll -shared >> C:\Users\opam\AppData\Local\Temp\build_b9a353_dune\bar_fwd_3554f1_run_id_8.log 2>&1
+ Builtins lib: ''
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x3a5): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x468): undefined reference to `__imp_uint32_to_single_uniform'
+ /usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /cygdrive/c/Users/opam/AppData/Local/Temp/cc7YKAp0.o:C:/Users/opam/AppData/Local/Temp/build_b9a353_dune/bar_fwd_3554f1.c:(.text+0x4ed): undefined reference to `__imp_uint32_to_single_uniform'
+ collect2: error: ld returned 1 exit status
+ |}]
"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-08-19 08:14.51: Job failed: Failed: Build failed