Skip to content
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

Remove CUDA from the test extras #1791

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Remove CUDA from the test extras #1791

merged 1 commit into from
Jun 28, 2024

Conversation

charleskawczynski
Copy link
Member

This PR removes CUDA from the test environment.

I did comment out Operators/spectralelement/opt.jl of runtests.jl (it's still run on buildkite), due to aviatesk/JET.jl#602.

I think soon we'll split off our tests into

  • runtests_opt.jl that performs all allocation, flop-counting, and inference tests.
  • runtests_benchmark.jl that performs all benchmarks
  • runtests_convergence.jl that performs all convergence tests

(#1784)

@charleskawczynski
Copy link
Member Author

The tests are still pretty slow, but I've got some ideas on how we can improve things.

@charleskawczynski
Copy link
Member Author

This should at least improve code loading time when running ClimaCore's test suite (it does seem to start much more quickly with ClimaCore> test) on this branch.

test/Fields/field_multi_broadcast_fusion.jl Outdated Show resolved Hide resolved
test/Operators/spectralelement/benchmark_utils.jl Outdated Show resolved Hide resolved
@charleskawczynski
Copy link
Member Author

I'm going to peel some pieces off from this..

@charleskawczynski
Copy link
Member Author

This PR is not ideal in that it uses eval(Meta.parse(CUDA)) to evade explicitly requiring CUDA (during code loading?).

That said, this does remove CUDA from the test environment.

@Sbozzolo
Copy link
Member

If you are not using macros from CUDA, you can access it with Base.get_extension(ClimaComms, :ClimaCommsCUDAEXt).CUDA

Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Yay!

wip

Use get_extension instead of eval-parse

Add composed function stencil benchmark
@charleskawczynski charleskawczynski merged commit e33f3e4 into main Jun 28, 2024
1 check passed
@charleskawczynski charleskawczynski deleted the ck/test_rm_cuda branch June 28, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants