Skip to content

Commit bcdc4de

Browse files
fix build error: "no case matching constant switch condition" (#1802)
* fix switch error * Apply suggestion from @matthewdouglas --------- Co-authored-by: Matthew Douglas <[email protected]>
1 parent 9e589a2 commit bcdc4de

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

csrc/kernels.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ __launch_bounds__(BLOCK_SIZE / NUM_VALS, 1) __global__ void kPreconditionOptimiz
557557
s1_vals[j] = s1_vals[j] / (sqrtf(s2_vals[j]) + eps); // update
558558
s1_vals[j] *= s1_vals[j]; // update l2 norm (update*update)
559559
break;
560+
case ADEMAMIX:
561+
break;
560562
}
561563
}
562564

csrc/kernels.hip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ __global__ void kPreconditionOptimizer32bit2State(T* g, T* p,
594594
s1_vals[j] = s1_vals[j]/(sqrtf(s2_vals[j])+eps); // update
595595
s1_vals[j] *= s1_vals[j]; // update l2 norm (update*update)
596596
break;
597+
case ADEMAMIX:
598+
break;
597599
}
598600
}
599601

0 commit comments

Comments
 (0)