Skip to content

Try to bring back julia nightly builds #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
- windows-latest
arch:
- x64
# include:
# - version: 'nightly'
# os: ubuntu-latest
# arch: x64
include:
- version: 'nightly'
os: ubuntu-latest
arch: x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
Expand Down
8 changes: 0 additions & 8 deletions test/auto_differentiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,4 @@
# @show Zygote.jacobian(g, T(0), T(0), T(0))
end

# @testset verbose=true "log" begin
# ∂log∂q(q) = [
# ForwardDiff.derivative(ϵ->log(q+ϵ), 0),
# ForwardDiff.derivative(ϵ->log(q+ϵ*imx), 0),
# ForwardDiff.derivative(ϵ->log(q+ϵ*imy), 0),
# ForwardDiff.derivative(ϵ->log(q+ϵ*imz), 0)
# ]
# end
end
29 changes: 28 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,39 @@ around the code you don't want to measure:

"""

# This is hopefully a temporary clause, for checking the GC behavior on Julia pre-1.10 nightlies,
# which are failing for unknown reasons, but in ways that resemble behavior other people have found
# and traced back to the new GC. This block's code is copied from AbstractAlgebra.jl (under the
# Simplified "2-clause" BSD License): https://github.com/Nemocas/AbstractAlgebra.jl/pull/1432/files
if VERSION >= v"1.8.0"
GC.enable_logging(true)

# print gc settings
jlmax = @ccall jl_gc_get_max_memory()::UInt64
totalmem = @ccall uv_get_total_memory()::UInt64
constrmem = @ccall uv_get_constrained_memory()::UInt64
println("Memory: max: ", Base.format_bytes(jlmax))
println(" total: ", Base.format_bytes(totalmem))
println(" constr: ", Base.format_bytes(constrmem))

#= FIXME/TODO: in the future we may wish to experiment with limiting the GC heap here
if VERSION >= v"1.10.0-"
# adjust heap size hint
memenv = parse(Int, get(ENV, "OSCARCI_MAX_MEM_GB", "5")) * 2^30
println("Setting heap size hint to ", Base.format_bytes(memenv))
@ccall jl_gc_set_max_memory(memenv::UInt64)::Cvoid
end
=#
end



using Quaternionic
using Test
using Random, Symbolics, StaticArrays, ForwardDiff, GenericLinearAlgebra,
ChainRulesTestUtils, Zygote, ChainRulesTestUtils

import LinearAlgebra
import LinearAlgebra

using ChainRulesCore
ChainRulesCore.debug_mode() = true
Expand Down