Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 60 additions & 55 deletions .github/workflows/test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,21 @@ jobs:
needs: [prepare-checks]
timeout-minutes: 60
# '@id:' label must be unique within this worklow
runs-on: [
'@id:burn-cuda-job-${{github.run_id}}-${{github.run_attempt}}',
'@pr_number:${{ inputs.pr_number }}',
'@organization:tracel-ai',
'@repository:burn',
'@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}',
'@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}',
'@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}',
'@gpu:true' ]
runs-on:
[
"@id:burn-cuda-job-${{github.run_id}}-${{github.run_attempt}}",
"@pr_number:${{ inputs.pr_number }}",
"@organization:tracel-ai",
"@repository:burn",
"@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}",
"@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}",
"@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}",
"@gpu:true",
]
env:
LD_LIBRARY_PATH: '/usr/local/cuda/lib64'
LD_LIBRARY_PATH: "/usr/local/cuda/lib64"
# disable incremental compilation (reduces artifact size)
CARGO_PROFILE_TEST_INCREMENTAL: 'false'
CARGO_PROFILE_TEST_INCREMENTAL: "false"
# Keep the stragegy to be able to easily add new rust versions if required
strategy:
matrix:
Expand All @@ -84,18 +86,20 @@ jobs:
needs: [prepare-checks]
timeout-minutes: 60
# '@id:' label must be unique within this worklow
runs-on: [
'@id:burn-vulkan-job-${{github.run_id}}-${{github.run_attempt}}',
'@pr_number:${{ inputs.pr_number }}',
'@organization:tracel-ai',
'@repository:burn',
'@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}',
'@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}',
'@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}',
'@gpu:true' ]
runs-on:
[
"@id:burn-vulkan-job-${{github.run_id}}-${{github.run_attempt}}",
"@pr_number:${{ inputs.pr_number }}",
"@organization:tracel-ai",
"@repository:burn",
"@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}",
"@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}",
"@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}",
"@gpu:true",
]
env:
# disable incremental compilation (reduces artifact size)
CARGO_PROFILE_TEST_INCREMENTAL: 'false'
CARGO_PROFILE_TEST_INCREMENTAL: "false"
# Keep the stragegy to be able to easily add new rust versions if required
strategy:
matrix:
Expand All @@ -117,18 +121,20 @@ jobs:
needs: [prepare-checks]
timeout-minutes: 60
# '@id:' label must be unique within this worklow
runs-on: [
'@id:burn-wgpu-job-${{github.run_id}}-${{github.run_attempt}}',
'@pr_number:${{ inputs.pr_number }}',
'@organization:tracel-ai',
'@repository:burn',
'@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}',
'@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}',
'@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}',
'@gpu:true' ]
runs-on:
[
"@id:burn-wgpu-job-${{github.run_id}}-${{github.run_attempt}}",
"@pr_number:${{ inputs.pr_number }}",
"@organization:tracel-ai",
"@repository:burn",
"@image-family:${{ needs.prepare-checks.outputs.gcp_runners_image_family }}",
"@machine-type:${{ needs.prepare-checks.outputs.gcp_runners_machine_type }}",
"@zones:${{ needs.prepare-checks.outputs.gcp_runners_zone }}",
"@gpu:true",
]
env:
# disable incremental compilation (reduces artifact size)
CARGO_PROFILE_TEST_INCREMENTAL: 'false'
CARGO_PROFILE_TEST_INCREMENTAL: "false"
# Keep the stragegy to be able to easily add new rust versions if required
strategy:
matrix:
Expand All @@ -146,27 +152,26 @@ jobs:
- name: Tests (burn-wgpu)
run: cargo xtask test ${{ env.TEST_RELEASE_FLAG }} --ci gcp-wgpu-runner

# TODO: fix macos CI tests (M2 virtualization)
# macos-std-metal-tests:
# runs-on: blaze/macos-14
# needs: [prepare-checks]
# timeout-minutes: 60
# # Keep the stragegy to be able to easily add new rust versions if required
# strategy:
# matrix:
# rust: [stable]
# include:
# - rust: stable
# toolchain: stable
# steps:
# - name: Setup Rust
# uses: tracel-ai/github-actions/setup-rust@v6
# with:
# rust-toolchain: ${{ matrix.toolchain }}
# cache-key: ${{ matrix.rust }}-macos
# # --------------------------------------------------------------------------------
# - name: Device check
# run: system_profiler SPHardwareDataType
# # --------------------------------------------------------------------------------
# - name: Tests
# run: cargo xtask test ${{ env.TEST_RELEASE_FLAG }} --ci github-mac-runner
macos-std-metal-tests:
runs-on: blaze/macos-15
needs: [prepare-checks]
timeout-minutes: 60
# Keep the stragegy to be able to easily add new rust versions if required
strategy:
matrix:
rust: [stable]
include:
- rust: stable
toolchain: stable
steps:
- name: Setup Rust
uses: tracel-ai/github-actions/setup-rust@v6
with:
rust-toolchain: ${{ matrix.toolchain }}
cache-key: ${{ matrix.rust }}-macos
# --------------------------------------------------------------------------------
- name: Device check
run: system_profiler SPHardwareDataType
# --------------------------------------------------------------------------------
- name: Tests
run: cargo xtask test ${{ env.TEST_RELEASE_FLAG }} --ci github-mac-runner
5 changes: 3 additions & 2 deletions crates/burn-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,13 @@ mod tests {
{
assert!(B::supports_dtype(&device, DType::F16));
assert!(B::supports_dtype(&device, DType::I16));
assert!(B::supports_dtype(&device, DType::I8));
assert!(B::supports_dtype(&device, DType::U16));
assert!(B::supports_dtype(&device, DType::U8));

assert!(!B::supports_dtype(&device, DType::F64));
assert!(!B::supports_dtype(&device, DType::BF16));
assert!(!B::supports_dtype(&device, DType::Flex32));
assert!(!B::supports_dtype(&device, DType::I8));
assert!(!B::supports_dtype(&device, DType::U8));
}

#[cfg(not(any(feature = "vulkan", feature = "metal")))]
Expand Down
Loading