Cannot update Julia package to newest versions

I am using Julia 1.9.2, and I’m trying to update CUDA from 4.0.1 to 4.4.0 and KernelAbstractions from 0.8.7 to 0.9.8. I’ve tried the following in Pkg mode:

  • Using up (no changes to Project.toml and Manifest.toml, nothing happens)
  • Removing and adding CUDA and KernelAbstractions (nothing happens, both remain at same versions)
  • Using add CUDA@4.4.0 and KA@0.9.8 (see error attached)

Does anyone have any suggestions for what I should do next? I know I can activate a new env, but that doesn’t work for what I need. Is there anyway I can fix this without activating a new env and reinstalling these?

I can’t find the post, but I had a similar problem a while back and I think that pkg instantiate helped?

I think you need to remove CUDAKernels since it was moved inside CUDA.jl

This was it, thank you!