Skip to content

Commit 4f72ffe

Browse files
committed
ifdef
1 parent 7faf780 commit 4f72ffe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/mx/num_to_ue8mo.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <cuda_fp8.h>
22
#include <stdio.h>
33

4+
#if CUDA_VERSION >= 12080
45
__global__ void convert_to_e8m0(float *in, __nv_fp8_storage_t *out) {
56
const float input_val = in[0];
67
printf("Device input value: %f\n", input_val);
@@ -54,3 +55,8 @@ int main() {
5455
cudaFree(d_out);
5556
return 0;
5657
}
58+
#else
59+
int main() {
60+
return 0;
61+
}
62+
#endif

0 commit comments

Comments
 (0)