File tree 7 files changed +7
-0
lines changed
blog/2024-11-25-optimizing-matmul/code/crates/cpu/compiled_for_gpu
7 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/tiling_2d" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/naive" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/tiling_1d" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/tiling_1d_loop" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/tiling_2d" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/workgroup_256" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
5
5
6
6
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
7
7
let gpu_crate_path = Path :: new ( "../../../gpu/workgroup_2d" ) ;
8
+ println ! ( "cargo::rerun-if-changed={}" , gpu_crate_path. display( ) ) ;
8
9
9
10
// Compile the shader crate with SpirvBuilder.
10
11
let result = SpirvBuilder :: new ( gpu_crate_path, "spirv-unknown-vulkan1.2" )
You can’t perform that action at this time.
0 commit comments