@@ -1572,17 +1572,17 @@ extern "C" int CeedOperatorBuildKernel_Cuda_gen(CeedOperator op, bool *is_good_b
15721572
15731573 // Compile
15741574 {
1575- bool is_compile_good = false ;
1576- const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
1577- bool use_mixed_precision ;
1575+ bool is_compile_good = false ;
1576+ const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
1577+ CeedScalarType precision ;
15781578
15791579 // Check for mixed precision
1580- CeedCallBackend (CeedOperatorGetMixedPrecision (op, &use_mixed_precision ));
1580+ CeedCallBackend (CeedOperatorGetPrecision (op, &precision ));
15811581
15821582 data->thread_1d = T_1d;
1583- if (use_mixed_precision ) {
1584- CeedCallBackend (
1585- CeedTryCompile_Cuda (ceed, code. str (). c_str (), &is_compile_good, &data-> module , 2 , " OP_T_1D " , T_1d, " CEED_JIT_MIXED_PRECISION " , 1 ));
1583+ if (precision ) {
1584+ CeedCallBackend (CeedTryCompile_Cuda (ceed, code. str (). c_str (), &is_compile_good, &data-> module , 2 , " OP_T_1D " , T_1d, " CEED_JIT_PRECISION " ,
1585+ (CeedInt)precision ));
15861586 } else {
15871587 CeedCallBackend (CeedTryCompile_Cuda (ceed, code.str ().c_str (), &is_compile_good, &data->module , 1 , " OP_T_1D" , T_1d));
15881588 }
@@ -2052,18 +2052,18 @@ static int CeedOperatorBuildKernelAssemblyAtPoints_Cuda_gen(CeedOperator op, boo
20522052
20532053 // Compile
20542054 {
2055- bool is_compile_good = false ;
2056- const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
2057- bool use_mixed_precision ;
2055+ bool is_compile_good = false ;
2056+ const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
2057+ CeedScalarType precision ;
20582058
20592059 // Check for mixed precision
2060- CeedCallBackend (CeedOperatorGetMixedPrecision (op, &use_mixed_precision ));
2060+ CeedCallBackend (CeedOperatorGetPrecision (op, &precision ));
20612061
20622062 data->thread_1d = T_1d;
2063- if (use_mixed_precision ) {
2063+ if (precision ) {
20642064 CeedCallBackend (CeedTryCompile_Cuda (ceed, code.str ().c_str (), &is_compile_good,
20652065 is_full ? &data->module_assemble_full : &data->module_assemble_diagonal , 2 , " OP_T_1D" , T_1d,
2066- " CEED_JIT_MIXED_PRECISION " , 1 ));
2066+ " CEED_JIT_PRECISION " , (CeedInt)precision ));
20672067 } else {
20682068 CeedCallBackend (CeedTryCompile_Cuda (ceed, code.str ().c_str (), &is_compile_good,
20692069 is_full ? &data->module_assemble_full : &data->module_assemble_diagonal , 1 , " OP_T_1D" , T_1d));
@@ -2642,17 +2642,17 @@ extern "C" int CeedOperatorBuildKernelLinearAssembleQFunction_Cuda_gen(CeedOpera
26422642
26432643 // Compile
26442644 {
2645- bool is_compile_good = false ;
2646- const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
2647- bool use_mixed_precision ;
2645+ bool is_compile_good = false ;
2646+ const CeedInt T_1d = CeedIntMax (is_all_tensor ? Q_1d : Q, data->max_P_1d );
2647+ CeedScalarType precision ;
26482648
26492649 // Check for mixed precision
2650- CeedCallBackend (CeedOperatorGetMixedPrecision (op, &use_mixed_precision ));
2650+ CeedCallBackend (CeedOperatorGetPrecision (op, &precision ));
26512651
26522652 data->thread_1d = T_1d;
2653- if (use_mixed_precision ) {
2653+ if (precision ) {
26542654 CeedCallBackend (CeedTryCompile_Cuda (ceed, code.str ().c_str (), &is_compile_good, &data->module_assemble_qfunction , 2 , " OP_T_1D" , T_1d,
2655- " CEED_JIT_MIXED_PRECISION " , 1 ));
2655+ " CEED_JIT_PRECISION " , (CeedInt)precision ));
26562656 } else {
26572657 CeedCallBackend (CeedTryCompile_Cuda (ceed, code.str ().c_str (), &is_compile_good, &data->module_assemble_qfunction , 1 , " OP_T_1D" , T_1d));
26582658 }
0 commit comments