Skip to content

Commit

Permalink
fix(hardware): typo
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Jan 29, 2024
1 parent 722e6d9 commit 12e264a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/02hardware/src/devices/nvidia/device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace refactor::hardware {
CUDA_ASSERT(cudaMemGetInfo(&free, &total));
auto size = free * 9 / 10;
cudaDeviceProp prop;
CUDA_ASSERT(cudaGetDeviceProperties(&prop, 0));
CUDA_ASSERT(cudaGetDeviceProperties(&prop, card));
size_t alignment = prop.textureAlignment;
fmt::println("initializing Nvidia GPU {}, memory {} / {}, alloc {}, alignment {}",
card, free, total, size, alignment);
Expand Down

0 comments on commit 12e264a

Please sign in to comment.