{"id":4088,"date":"2025-02-18T06:33:54","date_gmt":"2025-02-18T10:33:54","guid":{"rendered":"https:\/\/www.wholetomato.com\/blog\/?p=4088"},"modified":"2025-02-18T08:48:26","modified_gmt":"2025-02-18T12:48:26","slug":"einfuehrung-in-die-cuda-entwicklung-einrichten-in-visual-studio","status":"publish","type":"post","link":"https:\/\/www.wholetomato.com\/blog\/de\/einfuehrung-in-die-cuda-entwicklung-einrichten-in-visual-studio\/","title":{"rendered":"Einf\u00fchrung in die CUDA Entwicklung + Einrichten in Visual Studio"},"content":{"rendered":"<p>Denken Sie einmal dar\u00fcber nach. Haben Sie jemals \u00fcber zwei Dinge gleichzeitig nachgedacht? Wenn Sie kurz dar\u00fcber reflektieren, werden Sie feststellen, dass unser Gehirn sehr komplex ist, sich aber nur auf einen Gedankengang konzentrieren kann. Nat\u00fcrlich kann im Unterbewusstsein eine Menge passieren, aber man kann sich nur auf eine Sache bewusst konzentrieren &#8211; man kann sich nicht auf zwei Dinge gleichzeitig fokussieren.<\/p>\n<p>Aber was w\u00e4re, wenn Sie das k\u00f6nnten? Das w\u00fcrde eine breite Palette von M\u00f6glichkeiten er\u00f6ffnen. So k\u00f6nnte man z. B. aus mehreren Quellen lernen, drei mathematische Gleichungen gleichzeitig im Kopf l\u00f6sen oder buchst\u00e4blich Multitasking betreiben, indem man mit jeder Hand etwas anderes macht.<\/p>\n<p>Das ist die Idee, die hinter der Nutzung von Grafikprozessoren (GPUs) steht, um die Entwicklungszeit f\u00fcr einige spezielle Technologien zu verk\u00fcrzen. Mit ihrer F\u00e4higkeit, wesentlich mehr Threads (<a href=\"https:\/\/aws.amazon.com\/compare\/the-difference-between-gpus-cpus\/#:~:text=GPU%20cores%20are%20less%20powerful,important%20role%20in%20parallel%20computing.\" target=\"_blank\" rel=\"noopener\">im Vergleich zu CPUs<\/a>) zu verarbeiten, k\u00f6nnen sie Aufgaben ausf\u00fchren, die eine starke Parallelverarbeitung erfordern, wie z. B. das Rendern von Grafiken, das Trainieren von Machine-Learning-Modellen und die Durchf\u00fchrung komplexer Simulationen.<\/p>\n<p>Eine der M\u00f6glichkeiten, Ihre GPUs so zu programmieren, dass sie Daten ausspucken, die nicht nur aus Grafiken bestehen, ist ein Framework namens CUDA. Und genau damit befassen wir uns heute in diesem Blog.<\/p>\n<h2>Warum wird CUDA heute verwendet?<\/h2>\n<p>CUDA, die Abk\u00fcrzung f\u00fcr Compute Unified Device Architecture, beschleunigt Rechenaufgaben durch die Nutzung von Grafikkarten (Graphics Processing Units, GPUs). Es handelt sich um ein Framework, das 2006 von NVIDIA entwickelt wurde. CUDA erm\u00f6glicht es Entwicklern, Programme zu schreiben, die gro\u00dfe Rechenaufgaben in kleinere Aufgaben aufteilen und dabei parallele Berechnungen durchf\u00fchren.<\/p>\n<p>Dabei werden die vielen Kerne eines Grafikprozessors genutzt, um mehrere Rechenoperationen gleichzeitig durchzuf\u00fchren &#8211; im Gegensatz zu einer CPU, die einige wenige leistungsstarke Kerne verwendet, die f\u00fcr die sequentielle Verarbeitung optimiert sind. Diese Parallelverarbeitungsfunktion beschleunigt Aufgaben mit gro\u00dfen Datens\u00e4tzen oder komplexen Berechnungen, wie sie beim Grafik-Rendering, bei wissenschaftlichen Simulationen und beim maschinellen Lernen anfallen, erheblich.<\/p>\n<p>CUDA von Nvidia gibt es seit <a href=\"https:\/\/en.wikipedia.org\/wiki\/CUDA\" target=\"_blank\" rel=\"noopener\">mehr als zwei Jahrzehnten<\/a> und aufgrund seiner Popularit\u00e4t und der hohen Kompatibilit\u00e4t mit den physischen Grafikkarten des Mutterunternehmens hat es sich zu einem der f\u00fchrenden Systeme in der Branche entwickelt. Und obwohl CUDA die Vorherrschaft in diesem Bereich <a href=\"https:\/\/semianalysis.com\/2023\/01\/16\/nvidiaopenaitritonpytorch\/\" target=\"_blank\" rel=\"noopener\">verliert<\/a>, bleibt es die erste Wahl f\u00fcr die Beschleunigung des Trainings von Modellen f\u00fcr computerbasiertes Lernen.<\/p>\n<h2>CUDA in der Industrie<\/h2>\n<p>Wir haben \u00fcber die Vorteile der Verwendung von Grafikprozessoren gesprochen und dar\u00fcber, wie man sie mit CUDA f\u00fcr bestimmte Aufgaben programmieren kann. Der beliebteste Anwendungsfall ist derzeit der Aufstieg des maschinellen Lernens und der k\u00fcnstlichen Intelligenz, aber wir haben ein paar andere Branchen aufgelistet, die Sie vielleicht noch nicht kennen und die ebenfalls die Vorteile der GPU-Rechenleistung nutzen k\u00f6nnen.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Industrie<\/b><\/td>\n<td><b>Aufgabe\/Arbeitsbedarf<\/b><\/td>\n<td><b>Wie CUDA-f\u00e4hige Programme helfen<\/b><\/td>\n<\/tr>\n<tr>\n<td>Informatik &amp; KI<\/td>\n<td>Deep-Learning Trainings, NLP, Empfehlungssysteme<\/td>\n<td>Beschleunigt das Training von KI-Modellen exponentiell und hilft bei Dingen wie Chatbots und Empfehlungsalgorithmen.<\/td>\n<\/tr>\n<tr>\n<td><b>High-Performance Computing (HPC)<\/b><\/td>\n<td>Wissenschaftliche Simulationen, physikalische Berechnungen<\/td>\n<td>Beschleunigung komplexer wissenschaftlicher Experimente und Forschung.<\/td>\n<\/tr>\n<tr>\n<td><b>Finanzindustrie<\/b><\/td>\n<td>Risikomodellierung, Hochfrequenzhandel (HFT), Portfolio-Optimierung<\/td>\n<td>Komplexe Finanzberechnungen werden viel schneller berechnet, was H\u00e4ndlern hilft, schnelle Entscheidungen zu treffen.<\/td>\n<\/tr>\n<tr>\n<td><b>Autonome Fahrzeuge<\/b><\/td>\n<td>Objekterkennung, Sensorfusion, Wegplanung<\/td>\n<td>Hilft selbstfahrenden Autos, ihre Umgebung in Echtzeit zu \u201esehen\u201c und darauf zu reagieren.<\/td>\n<\/tr>\n<tr>\n<td><strong>Fertigungs- und Industrieautomatisierung<\/strong><\/td>\n<td>Pr\u00e4ventive Wartung, Fehlererkennung, Robotersteuerung<\/td>\n<td>Hilft Maschinen, Probleme zu erkennen, bevor sie auftreten, und verbessert die Automatisierung.<\/td>\n<\/tr>\n<tr>\n<td><strong>Wetter- und Klimawissenschaft<\/strong><\/td>\n<td>Klimamodellierung, Hurrikanvorhersage, Datenassimilation<\/td>\n<td>F\u00fchrt Wettersimulationen viel schneller durch, um Vorhersagen zu verbessern.<\/td>\n<\/tr>\n<tr>\n<td><strong>Cybersicherheit <\/strong><\/td>\n<td>Erkennung von Anomalien, Verschl\u00fcsselung\/Entschl\u00fcsselung, Bedrohungsanalyse<\/td>\n<td>Hilft, Hacker zu erkennen und Daten schneller zu sch\u00fctzen.<\/td>\n<\/tr>\n<tr>\n<td><strong>Robotik <\/strong><\/td>\n<td>Echtzeit-Sensorverarbeitung, KI-basierte Steuerung, SLAM (Simultaneous Localization and Mapping)<\/td>\n<td>Hilft Robotern, das zu verarbeiten, was sie sehen, und sich genauer zu bewegen.<\/td>\n<\/tr>\n<tr>\n<td><strong>Blockchain &amp; Kryptografie<\/strong><\/td>\n<td>Kryptow\u00e4hrungs-Mining, Transaktionsvalidierung<\/td>\n<td>Macht das Mining von Kryptow\u00e4hrungen und die Sicherung von Transaktionen schneller.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span id=\"Challenges_in_learning_CUDA_development\" class=\"ez-toc-section\"><\/span>Anforderungen beim Erlernen der CUDA-Entwicklung<\/h2>\n<p>Die Nutzung von Grafikprozessoren und deren Programmierung mit CUDA ist zwar auf dem Vormarsch, aber es gibt immer noch eine erhebliche H\u00fcrde, um ein erfahrener CUDA-Programmierer zu werden. Die gr\u00f6\u00dfte St\u00e4rke von CUDA ist auch einer der Faktoren, die das Erlernen erschweren. CUDA ist f\u00fcr die parallele Datenverarbeitung konzipiert, die sich grundlegend von der traditionellen seriellen Programmierung unterscheidet. Programmierer m\u00fcssen Konzepte wie Threads, Bl\u00f6cke und Grids verstehen und wissen, wie sie auf GPU-Hardware abgebildet werden.<\/p>\n<p>Dar\u00fcber hinaus ist C\/C++, eine Sprache, die in der Regel f\u00fcr fortgeschrittene Entwickler geeignet ist, die am besten zu erlernende Sprache, wenn Sie die CUDA-Programmierung optimieren wollen (Sie k\u00f6nnen sich auch f\u00fcr Python mit PyTorch oder Jax entscheiden).<\/p>\n<p>Schlie\u00dflich erfordert CUDA ein tieferes Wissen \u00fcber die physische Hardware (d. h. welche NVIDIA-GPU\/s Sie verwenden). Sowohl bei der Hardware als auch bei den Software-Toolkits sind zus\u00e4tzliche Einstellungen erforderlich, um Zugang zur grundlegenden Entwicklung und zu Tests zu erhalten. Um eine hohe Leistung zu erzielen, ist es au\u00dferdem erforderlich, die GPU-Architektur zu studieren, den Code sorgf\u00e4ltig zu optimieren und den Speicher genau zu verwalten.<\/p>\n<h2>Einrichten Ihres ersten CUDA Programmierprojekts<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3403\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2023-4-released\/cuda\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?fit=1490%2C641&amp;ssl=1\" data-orig-size=\"1490,641\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CUDA Visual Assist\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;A CUDA file with proper syntax highlighting and code analysis features.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?fit=300%2C129&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?fit=1024%2C441&amp;ssl=1\" class=\"size-large wp-image-3403\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=1024%2C441&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"441\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=1024%2C441&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=300%2C129&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=768%2C330&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=1200%2C516&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?resize=360%2C155&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2023\/08\/cuda.png?w=1490&amp;ssl=1 1490w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Mit Ihrem allerersten CUDA Projekt zu beginnen, mag einsch\u00fcchternd erscheinen, aber mit der richtigen Anleitung k\u00f6nnen Sie Visual Studio in nur einer Stunde f\u00fcr CUDA Programmierprojekte konfigurieren. Befolgen Sie die folgenden Schritte, um loszulegen:<\/p>\n<h3>Installation von Visual Studio<\/h3>\n<p>Visual Studio ist eine gute erste Wahl f\u00fcr eine IDE, wenn Sie bereits mit C++ vertraut sind. Es ist kompatibel mit der Integration des NVIDIA CUDA Toolkits, mit dem Sie CUDA-Anwendungen innerhalb derselben Plattform kompilieren, debuggen und optimieren k\u00f6nnen.<\/p>\n<ul>\n<li aria-level=\"1\"><strong>Download Visual Studio<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4042\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/visual-studio-download\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?fit=1849%2C820&amp;ssl=1\" data-orig-size=\"1849,820\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Visual Studio Download\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?fit=300%2C133&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?fit=1024%2C454&amp;ssl=1\" class=\"wp-image-4042 lazyloaded\" title=\"Visual Studio Download - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=708%2C314&amp;ssl=1\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=1024%2C454&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=768%2C341&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=1536%2C681&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=360%2C160&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?w=1849&amp;ssl=1 1849w\" alt=\"\" width=\"708\" height=\"708\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=1024%2C454&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=768%2C341&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=1536%2C681&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=360%2C160&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?w=1849&amp;ssl=1 1849w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Download.png?resize=708%2C314&amp;ssl=1\" data-sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/a><br \/>\nLaden Sie zun\u00e4chst, <a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\">Visual Studio von Microsoft<\/a> herunter. W\u00e4hlen Sie die von Ihnen bevorzugte Edition. F\u00fcr unsere Installation haben wir eine Community-Version von Visual Studio 2022 heruntergeladen, da dies die neueste unterst\u00fctzte Version f\u00fcr unser Windows 11-System ist.<\/li>\n<li aria-level=\"1\"><strong>F\u00fchren Sie das Installationsprogramm aus, um die Installation abzuschlie\u00dfen.<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4044\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/visual-studio-install\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?fit=1287%2C728&amp;ssl=1\" data-orig-size=\"1287,728\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Visual Studio Install\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?fit=300%2C170&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?fit=1024%2C579&amp;ssl=1\" class=\"wp-image-4044 lazyloaded\" title=\"Visual Studio Install - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=711%2C402&amp;ssl=1\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=1024%2C579&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=300%2C170&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=768%2C434&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=360%2C204&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?w=1287&amp;ssl=1 1287w\" alt=\"\" width=\"710\" height=\"710\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=1024%2C579&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=300%2C170&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=768%2C434&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=360%2C204&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?w=1287&amp;ssl=1 1287w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Visual-Studio-Install.png?resize=711%2C402&amp;ssl=1\" data-sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/a><br \/>\nFolgen Sie den folgenden Aufforderungen, bis Sie zum Visual Studio-Installationsprogramm gelangen. Es wird Sie nach einigen Dingen fragen, z. B. nach dem Installationsverzeichnis, und wird einige Abh\u00e4ngigkeiten \u00fcberpr\u00fcfen. Danach sollten Sie Visual Studio aus diesem Fenster oder \u00fcber eine Verkn\u00fcpfung starten k\u00f6nnen.<\/li>\n<\/ul>\n<h2>Installieren des CUDA Toolkits<\/h2>\n<p>Nach der Installation von Visual Studio ben\u00f6tigen Sie den Download des CUDA Toolkits f\u00fcr Visual Studio. Es bietet die Tools, Bibliotheken und den Compiler (nvcc), die f\u00fcr die Entwicklung und Ausf\u00fchrung von CUDA-Anwendungen in Visual Studio erforderlich sind. Es erm\u00f6glicht die Integration von GPU-beschleunigtem Computing, was die Verwendung von NVIDIA-GPUs f\u00fcr leistungsstarke Aufgaben erm\u00f6glicht.<\/p>\n<ul>\n<li><strong>\u00dcberpr\u00fcfen Sie, ob Sie einen CUDA-kompatiblen Grafikprozessor haben<br \/>\n<\/strong>Um einen reibungslosen Betrieb zu gew\u00e4hrleisten, sollten Sie zun\u00e4chst \u00fcberpr\u00fcfen, ob Ihr aktueller Grafikprozessor ein unterst\u00fctztes Ger\u00e4t ist. Navigieren Sie dazu zum Abschnitt Grafikkarten im Windows-Ger\u00e4temanager. Weitere Informationen finden Sie in der <a href=\"https:\/\/docs.nvidia.com\/cuda\/cuda-installation-guide-microsoft-windows\/#verify-you-have-a-cuda-capable-gpu\">Installationsanleitung von NVIDIA<\/a>.<\/li>\n<li aria-level=\"1\"><strong>CUDA Toolkit von NVIDIA herunterladen<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4047\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/cuda-toolkit-download\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?fit=1429%2C1148&amp;ssl=1\" data-orig-size=\"1429,1148\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Cuda Toolkit Download\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?fit=300%2C241&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?fit=1024%2C823&amp;ssl=1\" class=\"wp-image-4047 lazyloaded\" title=\"Cuda Toolkit Download - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=697%2C560&amp;ssl=1\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=1024%2C823&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=300%2C241&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=768%2C617&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=360%2C289&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?w=1429&amp;ssl=1 1429w\" alt=\"\" width=\"697\" height=\"697\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=1024%2C823&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=300%2C241&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=768%2C617&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=360%2C289&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?w=1429&amp;ssl=1 1429w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Cuda-Toolkit-Download.png?resize=697%2C560&amp;ssl=1\" data-sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/a><br \/>\nBesuchen Sie die <a href=\"https:\/\/developer.nvidia.com\/cuda-toolkit\">Website von NVIDIA<\/a> um das Toolkit herunterzuladen und mehr dar\u00fcber zu erfahren. Vergewissern Sie sich vor dem Herunterladen, dass Sie das richtige Betriebssystem, die richtige Version usw. ausgew\u00e4hlt haben. Die heruntergeladene Datei ist in unserem Fall 3,2 GB gro\u00df. Stellen Sie jedoch sicher, dass Sie \u00fcber mindestens 10 GB freien Speicherplatz verf\u00fcgen, da Sie die Installationsdateien vor\u00fcbergehend extrahieren m\u00fcssen, bevor Sie das Installationsprogramm ausf\u00fchren.<\/li>\n<\/ul>\n<ul>\n<li><strong>Starten Sie das Installationsprogramm<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4048\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/cuda-installer2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?fit=601%2C447&amp;ssl=1\" data-orig-size=\"601,447\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CUDA Installer2\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?fit=300%2C223&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?fit=601%2C447&amp;ssl=1\" class=\"size-full wp-image-4048 lazyloaded\" title=\"CUDA Installer2 - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=601%2C447&amp;ssl=1\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?w=601&amp;ssl=1 601w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=360%2C268&amp;ssl=1 360w\" alt=\"\" width=\"601\" height=\"601\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?w=601&amp;ssl=1 601w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=360%2C268&amp;ssl=1 360w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/CUDA-Installer2.png?resize=601%2C447&amp;ssl=1\" data-sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/a><br \/>\nF\u00fchren Sie nach dem Herunterladen das Installationsprogramm aus. Es \u00fcberpr\u00fcft Ihr Ger\u00e4t auf fehlende Abh\u00e4ngigkeiten oder bereits vorhandene Installationen und passt Ihre Installationsdateien entsprechend an. Danach haben Sie das CUDA Toolkit auf Ihrem System installiert. Zus\u00e4tzlich wird <a href=\"https:\/\/developer.nvidia.com\/nsight-graphics\">NSIGHT<\/a>\u00a0installiert, das spezielle Debugging- und Profiling-Funktionen f\u00fcr CUDA Anwendungen bietet.Sollten Sie bei der Installation des Toolkits auf Probleme sto\u00dfen, lesen Sie bitte die <a href=\"https:\/\/docs.nvidia.com\/cuda\/cuda-installation-guide-microsoft-windows\/\">Installations- und Fehlerbehebungsanleitung von NVIDIA<\/a>.<strong>Tipp<\/strong>: Wenn Sie Visual Studio Code bevorzugen, sollten Sie stattdessen <a href=\"https:\/\/developer.nvidia.com\/nsight-visual-studio-code-edition\">Nsight \u00fcber diesen Link installieren<\/a>. Dabei handelt es sich um eine Anwendungsentwicklungsumgebung f\u00fcr \u201eheterogene Plattformen, die die CUDA-Entwicklung f\u00fcr GPUs\u201c in Microsofts Visual Studio Code integriert.<\/li>\n<\/ul>\n<h2>Erste Schritte mit Ihrem ersten CUDA Projekt in Visual Studio<\/h2>\n<p>Nachdem Sie sowohl Visual Studio als auch das CUDA Toolkit installiert haben, k\u00f6nnen Sie nun Ihr erstes Projekt in Visual Studio initialisieren.<\/p>\n<ul>\n<li><strong>Erstellen Sie ein neues Projekt.<br \/>\n<\/strong>Beginnen Sie mit dem \u00d6ffnen von Visual Studio und erstellen Sie ein neues Projekt oder klonen Sie ein bestehendes Repository, um Ihre erste Projektdatei zu starten.<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4049\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/project-setup-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?fit=376%2C387&amp;ssl=1\" data-orig-size=\"376,387\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Project Setup 1\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?fit=291%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?fit=376%2C387&amp;ssl=1\" class=\"size-full wp-image-4049 lazyloaded\" title=\"Project Setup 1 - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=376%2C387&amp;ssl=1\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?w=376&amp;ssl=1 376w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=291%2C300&amp;ssl=1 291w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=360%2C371&amp;ssl=1 360w\" alt=\"\" width=\"376\" height=\"376\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?w=376&amp;ssl=1 376w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=291%2C300&amp;ssl=1 291w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=360%2C371&amp;ssl=1 360w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-1.png?resize=376%2C387&amp;ssl=1\" data-sizes=\"(max-width: 376px) 100vw, 376px\" \/><\/a><\/li>\n<li><strong>Initialisieren Sie Ihr Projekt.<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4051\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/project-setup-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?fit=570%2C590&amp;ssl=1\" data-orig-size=\"570,590\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Project Setup 2\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?fit=290%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?fit=570%2C590&amp;ssl=1\" class=\"wp-image-4051 ls-is-cached lazyloaded\" title=\"Project Setup 2 - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=406%2C420&amp;ssl=1\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?w=570&amp;ssl=1 570w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=290%2C300&amp;ssl=1 290w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=360%2C373&amp;ssl=1 360w\" alt=\"\" width=\"406\" height=\"406\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?w=570&amp;ssl=1 570w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=290%2C300&amp;ssl=1 290w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=360%2C373&amp;ssl=1 360w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-2.png?resize=406%2C420&amp;ssl=1\" data-sizes=\"(max-width: 406px) 100vw, 406px\" \/><\/a><br \/>\nAn diesem Punkt haben Sie zwei M\u00f6glichkeiten: Entweder Sie starten eine komplett leere Konsole\/ein leeres Projekt oder Sie w\u00e4hlen das CUDA 12.8-Projekt. Der Hauptunterschied besteht darin, dass die CUDA Runtime bereits mit den \u00fcblichen Arbeitslasten, Beispielcode und Anwendungsf\u00e4llen ausgestattet ist. Wenn Sie jedoch von Grund auf neu beginnen, k\u00f6nnen Sie Ihr Projekt nur mit dem konfigurieren, was Sie ben\u00f6tigen, und sich mit dem Arbeitsbereich vertraut machen. F\u00fcr dieses Projekt werden wir mit einem v\u00f6llig leeren Projekt beginnen.<\/li>\n<li><strong>Einstellen der Build-Konfiguration<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4053\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/project-setup-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?fit=797%2C205&amp;ssl=1\" data-orig-size=\"797,205\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Project Setup 3\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?fit=300%2C77&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?fit=797%2C205&amp;ssl=1\" class=\"size-full wp-image-4053 lazyloaded\" title=\"Project Setup 3 - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=750%2C193&amp;ssl=1\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?w=797&amp;ssl=1 797w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=300%2C77&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=768%2C198&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=360%2C93&amp;ssl=1 360w\" alt=\"\" width=\"710\" height=\"710\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?w=797&amp;ssl=1 797w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=300%2C77&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=768%2C198&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=360%2C93&amp;ssl=1 360w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-3.png?resize=750%2C193&amp;ssl=1\" data-sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><br \/>\nW\u00e4hlen Sie oben im Visual Studio-Fenster Release und x64 (wenn Sie ein 64-Bit-System verwenden). Dadurch wird VS mitgeteilt, dass wir versuchen, eine Version einer Anwendung zu erstellen, die bereitgestellt werden kann, im Gegensatz zum Debuggen.<\/li>\n<li><strong>Anpassen von Build-Abh\u00e4ngigkeiten<br \/>\n<span style=\"font-weight: 400;\"><div id=\"metaslider-id-4063\" style=\"max-width: 707px;\" class=\"ml-slider-3-95-0 metaslider metaslider-flex metaslider-4063 ml-slider ms-theme-default-base has-dots-nav\" role=\"region\" aria-roledescription=\"Slideshow\" aria-label=\"CUDA Development Blog\">\n    <div id=\"metaslider_container_4063\">\n        <div id=\"metaslider_4063\">\n            <ul class='slides'>\n                <li style=\"display: block; width: 100%;\" class=\"slide-4067 ms-image \" aria-roledescription=\"slide\" aria-label=\"slide-4067\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-4.png?resize=707%2C600&#038;ssl=1\" height=\"600\" width=\"707\" alt=\"\" class=\"slider-4063 slide-4067\" title=\"Project Setup 4\" data-recalc-dims=\"1\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-4068 ms-image \" aria-roledescription=\"slide\" aria-label=\"slide-4068\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-5.png?resize=707%2C600&#038;ssl=1\" height=\"600\" width=\"707\" alt=\"\" class=\"slider-4063 slide-4068\" title=\"Project Setup 5\" data-recalc-dims=\"1\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-4078 ms-image \" aria-roledescription=\"slide\" aria-label=\"slide-4078\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-65.png?resize=707%2C600&#038;ssl=1\" height=\"600\" width=\"707\" alt=\"\" class=\"slider-4063 slide-4078\" title=\"Project Setup 65\" data-recalc-dims=\"1\" \/><\/li>\n            <\/ul>\n        <\/div>\n        \n    <\/div>\n<\/div><\/span><br \/>\n<\/strong>Sie m\u00fcssen sicherstellen, dass Visual Studio wei\u00df, dass Sie versuchen, CUDA-Dateien zu erstellen und auszuf\u00fchren. Um dies zu konfigurieren, klicken Sie mit der rechten Maustaste auf Ihren Projektnamen (\u201eCUDA Sample\u201c) und klicken Sie auf Build Dependencies ? Build-Anpassungen. Es \u00f6ffnet sich ein neues Fenster, in dem die verf\u00fcgbaren Build-Anpassungsdateien aufgelistet sind. Stellen Sie sicher, dass Sie CUDA 12.8 ankreuzen und klicken Sie auf ok.<\/li>\n<li><strong>Hinzuf\u00fcgen einer CUDA C++- oder Header-Datei<br \/>\n<\/strong><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4054\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/project-setup-8-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?fit=782%2C406&amp;ssl=1\" data-orig-size=\"782,406\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Project Setup 85\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?fit=300%2C156&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?fit=782%2C406&amp;ssl=1\" class=\"wp-image-4054 lazyloaded\" title=\"Project Setup 85 - Tomato Soup\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=686%2C356&amp;ssl=1\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?w=782&amp;ssl=1 782w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=768%2C399&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=360%2C187&amp;ssl=1 360w\" alt=\"\" width=\"686\" height=\"686\" data-srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?w=782&amp;ssl=1 782w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=768%2C399&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=360%2C187&amp;ssl=1 360w\" data-src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/Project-Setup-85.png?resize=686%2C356&amp;ssl=1\" data-sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/a><br \/>\nUm neue Quelldateien hinzuzuf\u00fcgen, f\u00fcgen Sie einfach neue Elemente hinzu, wie Sie eine normale .cpp- oder .header-Datei hinzuf\u00fcgen w\u00fcrden. Klicken Sie mit der rechten Maustaste auf einen Ordner und klicken Sie auf Hinzuf\u00fcgen | Neues Element, um auf Ihre Dateioptionen zuzugreifen.<\/li>\n<li><strong>\u00dcberpr\u00fcfen, ob die Datei- und Projekteinstellungen korrekt sind<\/strong><br \/>\nAn diesem Punkt sollten Sie versuchen, eine L\u00f6sung zu erstellen, um sicherzustellen, dass alles reibungslos funktioniert. Wenn alles klappt, herzlichen Gl\u00fcckwunsch! Sie k\u00f6nnen nun mit der Arbeit an Ihrer ersten CUDA Datei in VS beginnen. NVIDIA stellt auch einige Beispielprojekte <a href=\"https:\/\/github.com\/NVIDIA\/cuda-samples\/tree\/master\/Samples\/1_Utilities\/bandwidthTest\">Beispielprojekte<\/a> zur Verf\u00fcgung, mit denen Sie das Setup testen, debuggen und sich mit bestehenden Projekten vertraut machen k\u00f6nnen, bevor Sie ein komplett neues Projekt erstellen.<\/li>\n<\/ul>\n<h2>Optimieren Sie Ihr Setup<\/h2>\n<p>VS und NVIDIA haben gro\u00dfe Fortschritte bei der Erleichterung der CUDA-Entwicklung und der Einrichtung gemacht. Da es sich bei CUDA jedoch um eine propriet\u00e4re Sprache handelt, kann es immer noch vorkommen, dass Syntaxhervorhebungen oder verwirrende Eingabeaufforderungen von VS&#8217;s IntelliSense fehlen.<\/p>\n<p>Um dies zu beheben, empfiehlt es sich, zus\u00e4tzliche Plugins vom Visual Studio-Marktplatz zu installieren, die bei der korrekten Hervorhebung von Symbolen helfen k\u00f6nnen. Sie k\u00f6nnen z. B. das\u00a0 <a href=\"https:\/\/www.wholetomato.com\/en\/downloads\">Visual Assist-Plugin<\/a>\u00a0 herunterladen und installieren, das Unterst\u00fctzung f\u00fcr CUDA-spezifischen Code bietet, der von Visual Studios IntelliSense m\u00f6glicherweise noch nicht erkannt wird. Es bietet au\u00dferdem den zus\u00e4tzlichen Vorteil, dass es neben der zus\u00e4tzlichen Unterst\u00fctzung f\u00fcr .cu- und .cuh-Dateien auch die Kernfunktionen f\u00fcr Navigation, Refactoring, Codehilfe und mehr bietet.<\/p>\n<div id=\"attachment_4055\" class=\"wp-caption alignnone\">\n<p><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4055\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/intro-to-cuda-and-visual-studio-installation\/with-vax\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?fit=1181%2C569&amp;ssl=1\" data-orig-size=\"1181,569\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"with VAX\" data-image-description=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;#image_title&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?fit=300%2C145&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?fit=1024%2C493&amp;ssl=1\" class=\"wp-image-4055 size-large\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?resize=1024%2C493&#038;ssl=1\" alt=\"visual assist for C++ CUDA development\" width=\"1024\" height=\"493\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?resize=1024%2C493&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?resize=300%2C145&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?resize=768%2C370&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?resize=360%2C173&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/with-VAX.png?w=1181&amp;ssl=1 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p id=\"caption-attachment-4055\" class=\"wp-caption-text\">Das <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=WholeTomatoSoftware.VisualAssist\">Visual Assist-Plugin<\/a> bietet Unterst\u00fctzung f\u00fcr die Erkennung von CUDA-spezifischem Code. VA erkennt, dass Sie ein Symbol verwenden, das auf eine fehlende Header-Datei verweist, und f\u00fcgt es f\u00fcr Sie hinzu.<\/p>\n<\/div>\n<h2><span id=\"Conclusion\" class=\"ez-toc-section\"><\/span>Fazit<\/h2>\n<p>CUDA ist zwar ein leistungsf\u00e4higes Tool, das auch in naher Zukunft von Bedeutung sein wird, aber die Landschaft des parallelen Rechnens ist dynamisch, und seine Dominanz wird von technologischen Fortschritten und ver\u00e4nderten Anforderungen der Industrie abh\u00e4ngen. Angesichts des rasanten Wachstums von KI und maschinellem Lernen wird CUDA jedoch aufgrund seiner Optimierung f\u00fcr Deep-Learning-Aufgaben wahrscheinlich relevant bleiben, zumal NVIDIA in diesem Bereich weiterhin Innovationen vorantreibt.<\/p>\n<p>Zusammenfassend l\u00e4sst sich sagen: Wenn Sie Ihre F\u00e4higkeiten in der Softwareentwicklung in einem wachsenden und aufstrebenden Bereich ausbauen m\u00f6chten, dann k\u00f6nnte CUDA das Richtige f\u00fcr Sie sein.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Denken Sie einmal dar\u00fcber nach. Haben Sie jemals \u00fcber zwei Dinge gleichzeitig nachgedacht? Wenn Sie kurz dar\u00fcber reflektieren, werden Sie feststellen, dass unser Gehirn sehr komplex ist, sich aber nur auf einen Gedankengang konzentrieren kann&#8230;.<\/p>\n","protected":false},"author":213500356,"featured_media":4094,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[726360306,726360304],"tags":[726360298,726360294,726360296,726360300,726360302],"class_list":["post-4088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-community-de","category-tipps-tricks","tag-cuda-de","tag-ki","tag-lernen","tag-visual-assist-de","tag-visual-studio-de"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2025\/02\/WT_DACH_Intro-to-CUDA-Development-1140x400-1.png?fit=1140%2C400&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfpLS4-13W","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/4088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/users\/213500356"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/comments?post=4088"}],"version-history":[{"count":4,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/4088\/revisions"}],"predecessor-version":[{"id":4092,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/4088\/revisions\/4092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/media\/4094"}],"wp:attachment":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/media?parent=4088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/categories?post=4088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/tags?post=4088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}