Skip to content

Instantly share code, notes, and snippets.

JULIA = julia --startup-file=no
export JULIA_NUM_THREADS = 32
export JULIA_LOAD_PATH = @
export JULIA_PROJECT = $(PWD)
.PHONY: rebuild
analysis.ipynb: analysis.jl result.json
$(MAKE) rebuild
# This file is machine-generated - editing it directly is not advised
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "051c95d6836228d120f5f4b984dd5aba1624f716"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "0.5.0"
[[Adapt]]
deps = ["LinearAlgebra"]
# This file is machine-generated - editing it directly is not advised
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "051c95d6836228d120f5f4b984dd5aba1624f716"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "0.5.0"
[[Adapt]]
deps = ["LinearAlgebra"]
using FLoops
using CUDA
function demo1(ex, xs = CUDA.ones(3))
z = zero(eltype(xs))
@floop FallbackEx() for x in xs
@reduce(s = z + x)
end
return s
end
module ParallelPrecompilation
using Base: PkgId
using Pkg.Types: is_stdlib
using Pkg: TOML
using ProgressLogging: @logprogress, @withprogress
using UUIDs: UUID
function manifest_path(project)
manifest_names = ("JuliaManifest.toml", "Manifest.toml")
Base.return_type(f, T::Type{<:Tuple})

Infer a possible return type of f with input argument types T.

!!! warning

Using `Base.return_type` without understanding the API is likely to cause
undefined behavior.

Base.return_type returns a type R such that every return value y of

# This file is machine-generated - editing it directly is not advised
[[AWSCore]]
deps = ["Base64", "Dates", "HTTP", "IniFile", "JSON", "LazyJSON", "MbedTLS", "Mocking", "OrderedCollections", "Retry", "Sockets", "SymDict", "XMLDict"]
git-tree-sha1 = "579990e01caa68e0c1cdb62e617c4fee93732e8d"
uuid = "4f1ea46c-232b-54a6-9b17-cc2d0f3e6598"
version = "0.6.14"
[[AWSS3]]
deps = ["AWSCore", "Base64", "Dates", "EzXML", "FilePathsBase", "HTTP", "LinearAlgebra", "MbedTLS", "Retry", "SymDict", "UUIDs", "XMLDict"]
│ ─ %-1 = invoke _foldl_impl(::Base.BottomRF{typeof(+)},::Base._InitialValue,::Base.Generator{Base.Iterators.Filter{var"#28#30",Array{Union{Missing, Float64},1}},var"#27#29"})::Union{Missing, Base._InitialValue, Float64}
Body::Union{Missing, Base._InitialValue, Float64}
@ reduce.jl:53 within `_foldl_impl'
┌ @ generator.jl:44 within `iterate'
│┌ @ Base.jl:33 within `getproperty'
1 ──││ %1 = Base.getfield(itr, :iter)::Base.Iterators.Filter{var"#28#30",Array{Union{Missing, Float64},1}}
│ │└
│ │ @ generator.jl:44 within `iterate' @ iterators.jl:429
│ │┌ @ Base.jl:33 within `getproperty'
│ ││ %2 = Base.getfield(%1, :itr)::Array{Union{Missing, Float64},1}
from dataclasses import dataclass
from typing import Any
import trio
async def start_cancelable(nursery, async_fn, *args):
async def launcher(task_status):
with trio.CancelScope() as scope:
task_status.started(scope)
build
src