ما هو CUDA فعليًا
منصة NVIDIA لتشغيل C++ على GPU.
ما هو CUDA فعليًا درس مجاني في CUDA Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في CUDA Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة CUDA Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Putting a Name to the Magic
You have seen why GPUs are fast. CUDA is the tool that lets you actually write code for them in C++. Time to meet it properly. 🚀
CUDA Is a Platform
CUDA is NVIDIA's platform for general-purpose GPU computing. It lets you run your own programs on the GPU, not just graphics.
An Extension of C++
CUDA C++ is just C++ with a few extra keywords and functions. If you know C++, most of CUDA already feels familiar from day one.
Kernels: Code That Runs on the GPU
A function you mark to run on the GPU is called a kernel. Thousands of threads will each run that one function in parallel.
__global__ void add(int *out, int *a, int *b) {
// runs on the GPU
}The __global__ Keyword
That __global__ tag marks a function as a kernel: callable from the CPU but executed on the GPU. It is your gateway onto the device.
Host and Device
In CUDA talk, the CPU side is the host and the GPU side is the device. You will hear these two words constantly, so lock them in now.
The Runtime API
CUDA gives you a friendly runtime API: functions like cudaMalloc and cudaMemcpy that manage GPU memory and move data around for you.
nvcc: The CUDA Compiler
You build CUDA code with nvcc. It splits your file, sends host code to your normal compiler and device code to the GPU compiler.
It Is NVIDIA-Only
CUDA runs only on NVIDIA GPUs. That tight coupling is why it is so well tuned, but it also means it is vendor specific.
A Rich Library Ecosystem
CUDA ships tuned libraries like cuBLAS for matrices and cuDNN for deep learning, so you rarely start a hard problem from scratch.
Why CUDA Took Over
Mature tools, fast libraries, and deep ecosystem support made CUDA the default way to do GPU computing in science and AI today.
Quick Check
Let us confirm what CUDA really is.
Recap: What CUDA Is
CUDA is NVIDIA's platform that extends C++ with kernels, a runtime API, and the nvcc compiler so your code can run on the GPU. 👍
الأسئلة الشائعة
هل درس «ما هو CUDA فعليًا» مجاني؟
نعم — نص درس «ما هو CUDA فعليًا» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة CUDA Academy، انتقل إلى CoddyKit PRO. تتضمن دورة CUDA Academy 4 دروس في المجموع.
ماذا ستتعلم في «ما هو CUDA فعليًا»؟
منصة NVIDIA لتشغيل C++ على GPU. تتمرن على CUDA Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ CUDA Academy؟
لا تُشترط خبرة سابقة. CUDA Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «ما هو CUDA فعليًا»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس CUDA Academy هذا؟
نعم. كل درس في CUDA Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- CPU مقابل GPU: زمن الاستجابة مقابل معدل النقل
- SIMT: التعليمة نفسها وخيوط متعددة
- ما هو CUDA فعليًا
- المشكلات التي تناسب GPU