Skip to content

Commit

Permalink
Fix Generate
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Jan 5, 2025
1 parent 1fde094 commit d7c38bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: cargo-generate

on:
push:
Expand All @@ -23,10 +23,11 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- name: "hello-compute"
- path: "examples/standalone/1_hello_compute"
path: "examples/standalone/1_hello_compute"

name: "cargo-generate: ${{ matrix.name }}"

Expand Down
3 changes: 1 addition & 2 deletions examples/standalone/1_hello_compute/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
///
/// While this isn't a very practical example, you will see all the major components
/// of using wgpu headlessly.
///
///
/// If you time the recording and execution of this example you will certainly see that
/// running on the gpu is slower than doing the same calculation on the cpu. This is because
/// floating point multiplication is a very simple operation so the transfer/submission overhead
/// is quite a lot higher than the actual computation. This is normal and shows that the GPU
/// needs a lot higher work/transfer ratio to come out ahead.
use std::{num::NonZeroU64, str::FromStr};
use wgpu::util::DeviceExt;

Expand Down

0 comments on commit d7c38bf

Please sign in to comment.