From 15f5729985885af81973ed9df1a2f411c5a358aa Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 19 Sep 2023 18:31:27 -0400 Subject: [PATCH] fix tabulate_fusion_se_a_fifth_order_polynomial for rocm Signed-off-by: Jinzhe Zeng --- source/lib/src/gpu/tabulate.cu | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/lib/src/gpu/tabulate.cu b/source/lib/src/gpu/tabulate.cu index 7bc5206eba..51cfac8edb 100644 --- a/source/lib/src/gpu/tabulate.cu +++ b/source/lib/src/gpu/tabulate.cu @@ -748,10 +748,16 @@ void tabulate_fusion_se_a_gpu(FPTYPE* out, DPErrcheck(gpuGetLastError()); DPErrcheck(gpuDeviceSynchronize()); tabulate_fusion_se_a_fifth_order_polynomial - <<>>(out, table, em_x, em, two_embed, - table_info[0], table_info[1], table_info[2], - table_info[3], table_info[4], nnei, - last_layer_size, is_sorted); +#if GOOGLE_CUDA + <<>> +#elif TENSORFLOW_USE_ROCM + <<>> +#else +#error "should not touch here" +#endif + (out, table, em_x, em, two_embed, table_info[0], table_info[1], + table_info[2], table_info[3], table_info[4], nnei, last_layer_size, + is_sorted); DPErrcheck(gpuGetLastError()); DPErrcheck(gpuDeviceSynchronize()); }