Skip to content

Commit

Permalink
No precomp (#181)
Browse files Browse the repository at this point in the history
* Disable precompilation

* Bump version
  • Loading branch information
chriselrod authored Jun 27, 2023
1 parent c63b5b9 commit dcc448d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Octavian"
uuid = "6fd5a793-0b7e-452c-907f-f8bfe9c57db4"
authors = ["Chris Elrod", "Dilum Aluthge", "Mason Protter", "contributors"]
version = "0.3.24"
version = "0.3.25"

[deps]
CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9"
Expand Down
23 changes: 0 additions & 23 deletions src/Octavian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,5 @@ if !isdefined(Base, :get_extension)
include("../ext/HyperDualNumbersExt.jl")
end

@static if VERSION >= v"1.8.0-beta1"
@setup_workload begin
# Putting some things in `setup` can reduce the size of the
# precompile file and potentially make loading faster.
__init__()
A64 = rand(100, 100)
A32 = rand(Float32, 100, 100)

@compile_workload begin
# All calls in this block will be precompiled, regardless of whether
# they belong to Octavian.jl or not (on Julia 1.8 and higher).
matmul(A64, A64)
matmul(A64', A64)
matmul(A64, A64')
matmul(A64', A64')

matmul(A32, A32)
matmul(A32', A32)
matmul(A32, A32')
matmul(A32', A32')
end
end
end

end # module Octavian

2 comments on commit dcc448d

@chriselrod
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/86381

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.25 -m "<description of version>" dcc448dc1575bf7241c130cd0d97a782a28add25
git push origin v0.3.25

Please sign in to comment.