From 8f720ad0a855687648cad43780c15adb542e2b9e Mon Sep 17 00:00:00 2001 From: Andres Rios Tascon Date: Mon, 5 Aug 2024 07:57:46 -0700 Subject: [PATCH] Fixed memcpy --- RecoTracker/LSTCore/src/LSTESData.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecoTracker/LSTCore/src/LSTESData.cc b/RecoTracker/LSTCore/src/LSTESData.cc index 36c11ea59a711..9079d0d229216 100644 --- a/RecoTracker/LSTCore/src/LSTESData.cc +++ b/RecoTracker/LSTCore/src/LSTESData.cc @@ -91,10 +91,10 @@ std::unique_ptr> lst::loadAndFillESHost() EndcapGeometryBuffer(cms::alpakatools::host(), endcapGeometry.nEndCapMap); std::memcpy(alpaka::getPtrNative(endcapGeometryBuffers.geoMapDetId_buf), endcapGeometry.geoMapDetId_buf.data(), - endcapGeometry.nEndCapMap); + endcapGeometry.nEndCapMap * sizeof(unsigned int)); std::memcpy(alpaka::getPtrNative(endcapGeometryBuffers.geoMapPhi_buf), endcapGeometry.geoMapPhi_buf.data(), - endcapGeometry.nEndCapMap); + endcapGeometry.nEndCapMap * sizeof(float)); auto path = get_absolute_path_after_check_file_exists(trackLooperDir() + "/data/OT800_IT615_pt0.8/sensor_centroids.bin");