LCOV - code coverage report
Current view: top level - src - torch_c_api.cpp (source / functions) Coverage Total Hit
Test: CP2K Regtests (git:9ccafda) Lines: 75.3 % 477 359
Test Date: 2026-10-15 00:55:44 Functions: 86.8 % 68 59

Function Name Sort by function name Hit count Sort by function hit count
_ZL22initialize_cuda_linalgRKN3c106DeviceE 0
_ZL22remap_device_constantsPN5torch3jit5BlockERKN3c106DeviceE 0
_ZL28remap_model_device_constantsRN5torch3jit6ModuleERKN3c106DeviceE 0
_ZL47enable_expandable_cuda_segments_if_unconfiguredv 0
_ZZL22initialize_cuda_linalgRKN3c106DeviceEENKUlvE_clEv 0
torch_c_cuda_device_count 0
torch_c_tensor_data_ptr_int32 0
torch_c_tensor_data_ptr_int64 0
torch_c_tensor_from_array_int32 0
torch_c_cuda_is_available 2
torch_c_allow_tf32 6
torch_c_model_freeze 6
torch_c_tensor_backward 6
torch_c_model_get_attr_double 8
torch_c_model_get_attr_list_size 8
torch_c_model_get_attr_string 16
torch_c_model_get_attr_strlist 16
torch_c_model_load 16
torch_c_model_release 16
torch_c_model_disable_parameter_gradients 17
torch_c_model_freeze_preserving_method 17
torch_c_model_load_with_metadata 17
torch_c_model_promote_float32 17
torch_c_model_remap_device_constants 25
_ZL22load_module_for_devicePKcRKN3c106DeviceEPSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_St4hashISB_ESt8equal_toISB_ESaISt4pairIKSB_SB_EEE 33
_ZL23set_jit_fusion_strategyv 33
_ZL27can_load_directly_to_deviceRKN3c106DeviceE 33
torch_c_dict_clone 34
torch_c_model_get_attr_int64 40
torch_c_model_read_metadata 40
_ZL20get_positive_int_envPKcRi 54
torch_c_model_forward 62
torch_c_tensor_data_ptr_float 66
torch_c_tensor_from_array_float 66
_ZL23copy_string_to_c_bufferRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPcPi 74
torch_c_free_string 74
torch_c_dict_get 76
torch_c_tensor_expand_dim 96
_ZL14tensor_matchesPKN2at6TensorEN3c1010ScalarTypeERKNS3_6DeviceEiPKl 144
_ZL30reset_tensor_from_array_doublePPN2at6TensorEbiPKlPd 144
torch_c_tensor_reset_from_array_double 144
torch_c_tensor_grad 256
_ZL29use_batched_gradient_readbackRKN2at6TensorE 282
torch_c_tensor_grad_batch3 282
torch_c_model_forward_mol_tensor 284
torch_c_tensor_backward_scalar 284
torch_c_tensor_item_double 284
torch_c_tensor_weighted_sum 284
_ZN27TorchFloatingPointMaskGuardD2Ev 369
torch_c_dict_create 410
torch_c_dict_release 422
torch_c_use_cuda 608
torch_c_tensor_from_array_int64 770
torch_c_tensor_data_ptr_double 1114
_ZL12get_data_ptrPKN2at6TensorEN3c1010ScalarTypeEiPl 1180
torch_c_tensor_from_array_double 1846
torch_c_tensor_narrow 1872
torch_c_tensor_to_device_leaf 2420
_ZL17tensor_from_arrayN3c1010ScalarTypeEbiPKlPv 2682
torch_c_dict_insert 2806
_ZL21promote_model_float32RN5torch3jit6ModuleE 2907
cblas_sgemm_batch 3888
_ZL25promote_float32_constantsPN5torch3jit5BlockE 4454
torch_c_tensor_release 6378
_ZL10get_devicev 9138
_ZL21get_device_with_guardRN3c1019OptionalDeviceGuardE 9138
_ZL33initialize_torch_threads_from_envv 11820
cblas_dgemm_batch 15726

Generated by: LCOV version 2.0-1