Download samples/pc_sampling_utility/pc_sampling_utility.cpp from MNghia/soft_gripper_envs: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/MNghia/soft_gripper_envs/resolve/main/samples/pc_sampling_utility/pc_sampling_utility.cpp
- Command line
-
hf download hf://MNghia/soft_gripper_envs/samples/pc_sampling_utility/pc_sampling_utility.cpp
-
curl -L -o pc_sampling_utility.cpp https://huggingface.co/MNghia/soft_gripper_envs/resolve/main/samples/pc_sampling_utility/pc_sampling_utility.cpp
1.17 kB
| int main(int argc, char *argv[]) | |
| { | |
| CUpti_PCSamplingData *mergedPcSampDataBuffer = NULL; | |
| size_t numMergedPcSampDataBuffer = 0; | |
| Init(); | |
| ParseCommandLineArgs(argc, argv); | |
| FillCrcModuleMap(); | |
| RetrievePcSampData(); | |
| if (!disableSourceCorrelation) | |
| { | |
| if (!disableMerge && collectionMode != CUPTI_PC_SAMPLING_COLLECTION_MODE_KERNEL_SERIALIZED) | |
| { | |
| MergePcSampDataBuffers(&mergedPcSampDataBuffer, numMergedPcSampDataBuffer); | |
| SourceCorrelation(mergedPcSampDataBuffer, numMergedPcSampDataBuffer); | |
| } | |
| else | |
| { | |
| SourceCorrelation(buffersRetrievedDataVector.data(), buffersRetrievedDataVector.size()); | |
| } | |
| } | |
| else | |
| { | |
| if (!disablePcInfoPrints) | |
| { | |
| PrintRetrievedPcSampData(); | |
| } | |
| } | |
| // Free memory | |
| FreePcSampStallReasonsMemory(); | |
| FreePcSampDataBuffers(mergedPcSampDataBuffer, numMergedPcSampDataBuffer); | |
| FreePcSampDataBuffers(buffersRetrievedDataVector.data(), buffersRetrievedDataVector.size()); | |
| FreeCrcModuleMapMemory(); | |
| exit(EXIT_SUCCESS); | |
| } | |