GPU-accelerated Optical Sensor Simulation - Simulating a Network of Optical Sensors Utilizing GPU-acceleration

dc.contributor.authorForsberg, Joar
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerAli-Eldin Hassan, Ahmed
dc.contributor.supervisorAli-Eldin Hassan, Ahmed
dc.date.accessioned2026-05-12T05:39:27Z
dc.date.issued2026
dc.date.submitted
dc.description.abstractLaser triangulation sensors are widely used in industrial measurement systems, where multiple sensors continuously acquire geometric data and transmit it to a host for calibration and analysis. Prototyping such systems is costly and time-consuming, as physical sensors require specialized hardware, precise alignment, and dedicated network infrastructure. This thesis presents a proof-of-concept framework for virtual laser triangulation sensors that can be used as a substitute for physical prototypes during system development and testing. The work consists of two main components: a mathematical simulation for generating sensor-like measurements, and a network layer that enables the virtual sensors to communicate with the host software exactly as real devices do. The simulation computes raypolygon intersections to emulate the measurement process of a triangulation sensor. A naïve CPU version and a GPU-accelerated version were implemented, followed by a custom CUDA kernel based on Cramers rule for solving large batches of independent 2 × 2 systems. Profiling and roofline analysis show that the custom kernel achieves several orders of magnitude higher performance compared to both the CPU implementation and high-level GPU libraries such as cuSOLVER. The network interface is implemented using UDP communication and a virtual Wire- Guard network, allowing each virtual sensor to appear indistinguishable from a physical one to the existing configuration software. This enables seamless hardware-in-the-loop style testing without modifications to the host system. The results demonstrate that virtual laser triangulation sensors can generate realistic measurements at rates significantly higher than required for real-time operation, creating room for future improvements in physical accuracy and noise modeling. The framework establishes a foundation for scalable virtual prototyping of optical measurement systems and shows that highly specialized GPU kernels can dramatically accelerate small-matrix computations commonly found in geometric simulation workloads.
dc.identifier.coursecodeDATX05
dc.identifier.urihttps://hdl.handle.net/20.500.12380/311078
dc.language.isoeng
dc.setspec.uppsokTechnology
dc.subjectlaser triangulation
dc.subjectGPU acceleration
dc.subjectCUDA
dc.subjectUDP
dc.subjectnumerical simulation
dc.subjectvirtual sensors
dc.titleGPU-accelerated Optical Sensor Simulation - Simulating a Network of Optical Sensors Utilizing GPU-acceleration
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeHigh-performance computer systems (MPHPC), MSc

Ladda ner

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Size:
2.35 KB
Format:
Item-specific license agreed upon to submission
Description: