Skip to content
Merged
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
4 changes: 3 additions & 1 deletion zml/platform.zig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ pub const Platform = struct {
const memory_target: pjrt.Memory.Kind = switch (memory) {
.host_unpinned => switch (platform.target) {
// Cuda doesn't have host_unpinned.
.cuda => .host_pinned,
// ROCm doesn't seem to have it either.
// TODO(gwenzek): investigate why it was not forced before.
.cuda, .rocm => .host_pinned,
else => .host_unpinned,
},
inline else => |t| t,
Expand Down
Loading