From e30dbb7edd3162b745571d9803cec4774d77bb26 Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Fri, 28 Jul 2023 14:32:59 +0100 Subject: [PATCH] Telemetry: Fix inclusiong of NVCCVersion --- src/flamegpu/simulation/CUDAEnsemble.cu | 2 +- src/flamegpu/simulation/CUDASimulation.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flamegpu/simulation/CUDAEnsemble.cu b/src/flamegpu/simulation/CUDAEnsemble.cu index 56098c1d4..894d1cac2 100644 --- a/src/flamegpu/simulation/CUDAEnsemble.cu +++ b/src/flamegpu/simulation/CUDAEnsemble.cu @@ -236,7 +236,7 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector &plans) { std::map payload_items; payload_items["GPUDevices"] = flamegpu::detail::compute_capability::getDeviceNames(config.devices); payload_items["SimTime(s)"] = std::to_string(ensemble_elapsed_time); - #if defined(__CUDACC_VER_MAJOR__) && defined(__CUDACC_VER_MINOR__) && defined(__CUDACC_VER_PATCH__) + #if defined(__CUDACC_VER_MAJOR__) && defined(__CUDACC_VER_MINOR__) && defined(__CUDACC_VER_BUILD__) payload_items["NVCCVersion"] = std::to_string(__CUDACC_VER_MAJOR__) + "." + std::to_string(__CUDACC_VER_MINOR__) + "." + std::to_string(__CUDACC_VER_BUILD__); #endif // generate telemetry data diff --git a/src/flamegpu/simulation/CUDASimulation.cu b/src/flamegpu/simulation/CUDASimulation.cu index 20e37b1e6..ffe9a3c59 100644 --- a/src/flamegpu/simulation/CUDASimulation.cu +++ b/src/flamegpu/simulation/CUDASimulation.cu @@ -1256,7 +1256,7 @@ void CUDASimulation::simulate() { std::map payload_items; payload_items["GPUDevices"] = flamegpu::detail::compute_capability::getDeviceName(deviceInitialised); payload_items["SimTime(s)"] = std::to_string(elapsedSecondsSimulation); - #if defined(__CUDACC_VER_MAJOR__) && defined(__CUDACC_VER_MINOR__) && defined(__CUDACC_VER_PATCH__) + #if defined(__CUDACC_VER_MAJOR__) && defined(__CUDACC_VER_MINOR__) && defined(__CUDACC_VER_BUILD__) payload_items["NVCCVersion"] = std::to_string(__CUDACC_VER_MAJOR__) + "." + std::to_string(__CUDACC_VER_MINOR__) + "." + std::to_string(__CUDACC_VER_BUILD__); #endif // generate telemtry data