From 6c36f3909af140441267c237a5a657c10320304b Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Wed, 17 Dec 2025 22:08:01 +0100 Subject: [PATCH] Remove Requires.jl This should not be required now that our minimum supported version is 1.10, which has package extension support. --- Project.toml | 2 -- src/CUDA.jl | 2 -- src/initialization.jl | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/Project.toml b/Project.toml index 07e437dbb2..f696a5176b 100644 --- a/Project.toml +++ b/Project.toml @@ -32,7 +32,6 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Random123 = "74087812-796a-5b5d-8853-05524746bad3" RandomNumbers = "e6cf234a-135c-5ec9-84dd-332b85af5143" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" -Requires = "ae029012-a4dd-5104-9daa-d747884805df" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" @@ -82,7 +81,6 @@ Random = "1" Random123 = "1.2" RandomNumbers = "1.5.3" Reexport = "1.0" -Requires = "1.0" SparseArrays = "1" SparseMatricesCSR = "0.6.9" SpecialFunctions = "1.3, 2" diff --git a/src/CUDA.jl b/src/CUDA.jl index f0a3e5f6b0..c2f831a2e1 100644 --- a/src/CUDA.jl +++ b/src/CUDA.jl @@ -14,8 +14,6 @@ import KernelAbstractions using Adapt: Adapt, adapt, WrappedArray -using Requires: @require - using LinearAlgebra using BFloat16s: BFloat16 diff --git a/src/initialization.jl b/src/initialization.jl index fb4093543c..6768633c23 100644 --- a/src/initialization.jl +++ b/src/initialization.jl @@ -171,18 +171,6 @@ function __init__() Please consider using an official build from https://julialang.org/downloads/.""" end - @static if !isdefined(Base, :get_extension) - @require ChainRulesCore="d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" begin - include("../ext/ChainRulesCoreExt.jl") - end - @require SpecialFunctions="276daf66-3868-5448-9aa4-cd146d93841b" begin - include("../ext/SpecialFunctionsExt.jl") - end - @require EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869" begin - include("../ext/EnzymeCoreExt.jl") - end - end - # enable generation of FMA instructions to mimic behavior of nvcc LLVM.clopts("-nvptx-fma-level=1")