running-tests

Execute and debug JustRelax.jl tests on CPU, CUDA, AMDGPU, and MPI backends.

40|12|Updated Sep 1, 2021
One-click install
npx skills add https://github.com/PTsolvers/JustRelax.jl --skill running-tests-ptsolvers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-tests
Source: https://github.com/PTsolvers/JustRelax.jl/tree/main/.claude/skills/running-tests
Command: npx skills add https://github.com/PTsolvers/JustRelax.jl --skill running-tests-ptsolvers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of running and debugging tests for the JustRelax.jl package, ensuring that users can quickly verify their code and identify any issues.

Core Features & Use Cases

  • Test Execution: Run single test files or the full test suite with backend and MPI support.
  • Backend Selection: Execute tests on CPU, CUDA, or AMDGPU backends.
  • MPI Tests: Perform tests with MPI (Message Passing Interface) for parallel processing.
  • Use Case: When you need to verify your changes in JustRelax.jl and ensure that your code works correctly on different backends and with MPI.

Quick Start

Execute the test suite with the specified backend by running:

julia --project=. -e 'using Pkg; Pkg.test(test_args=["--backend=CPU"])'

Frequently Asked Questions about running-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run tests for JustRelax.jl on specific hardware backends?

Run tests for JustRelax.jl on specific hardware backends by passing the target configuration as a test argument, such as `--backend=CPU`, allowing execution on CPU, CUDA, or AMDGPU environments.

Can I execute JustRelax.jl tests using MPI for parallel processing?

Yes, you can execute JustRelax.jl tests using MPI for parallel processing, enabling you to validate codebase functionality and robustness across distributed computing configurations.

What is the best way to debug a failing test file in the JustRelax.jl package?

The best way to debug a failing test file in the JustRelax.jl package is to run individual test files with the specified backend or MPI support to quickly isolate and identify code issues.

Does this test execution method require any external dependencies to run CUDA or AMDGPU tests?

Running CUDA or AMDGPU tests does not require external dependencies within this Skill, as the scripts handle backend selection and test execution directly through Julia's package manager.

How do I execute the full JustRelax.jl test suite after making code changes?

Execute the full JustRelax.jl test suite after code changes by running Julia's package manager test command with the desired backend test arguments to verify modifications across different configurations.