Pratica di Shadowing: Nvidia CUDA in 100 Seconds - Impara a parlare inglese con i video

Creazione lezione...
1
CUDA, a parallel computing platform that allows you to use your GPU for more than just playing video games.
2
Compute Unified Device Architecture was developed by NVIDIA in 2007 based on the prior work of Ian Buck and John Nichols.
3
Since then, CUDA has revolutionized the world by allowing humans to compute large blocks of data in parallel, which has unlocked the true potential of the deep neural networks behind artificial intelligence.
4
The Graphics Processing Unit, or GPU, is historically used for what the name implies, to compute graphics.
5
When you play a game in 1080p at 60fps, you've got over 2 million pixels on the screen that may need to be recalculated after every frame,
6
which requires hardware that can do a lot of matrix multiplication and vector transformations in parallel.
7
And I mean a lot.
8
Modern GPUs are measured in teraflops, or how many trillions of floating point operations can it handle per second?
9
Unlike modern CPUs like the Intel i9, which has 24 cores, a modern GPU like the RTX 4090 has over 16,000 cores.
10
A CPU is designed to be versatile, while a GPU is designed to go really fast in parallel.
11
CUDA allows developers to tap into the GPU's power, and data scientists all around the world are using at this very moment, trying to train the most powerful machine learning models.
12
It works like this.
13
You write a function, called a CUDA kernel, that runs on the GPU.
14
You then copy some data from your main RAM over to the GPU's memory, then the CPU will tell the GPU to execute that function or kernel in parallel.
15
The code is executed in a block, which itself organizes threads into a multi-dimensional grid.
16
Then the final result from the GPU is copied back to the main memory.
17
Piece of cake, let's go ahead and build a CUDA application right now.
18
First you'll need an NVIDIA GPU, then install the CUDA toolkit.
19
CUDA includes device drivers, runtime, compilers, and dev tools, but the actual code is most often written in C++, as I'm doing here in Visual Studio.
20
First, we use the global specifier to define a function or CUDA kernel that runs on the actual GPU.
21
This function adds two vectors or arrays together.
22
It takes pointer arguments A and B, which are the two vectors to be added together, and pointer C for the result.
23
C equals A plus B, but because hypothetically we're doing billions of operations in parallel, we need to calculate the global index of the thread in the block that we're working on.
24
From there, we can use managed, which tells CUDA this data can be accessed from both the host CPU and the device GPU, without the need to manually copy data between them.
25
And now we can write a main function for the CPU that runs the CUDA kernel.
26
We use a for loop to initialize our arrays with data, then from there, we pass this data to the add function to run it on the GPU.
27
But you might be wondering what these weird triple brackets are.
28
They allow us to configure the CUDA kernel launch to control how many blocks
29
and how many threads per block are used to run this code in parallel.
30
And that's crucial for optimizing multi-dimensional data structures like tensors used in deep learning.
31
From there, CUDA Device Synchronize will pause the execution of this code and wait for it to complete on the GPU.
32
When it finishes and copies the data back to the host machine, we can then use the result and print it to the standard output.
33
Now, let's execute this code with a CUDA compiler by clicking the play button.
34
Congratulations, you just ran 256 threads in parallel on your GPU.
35
But if you want to go beyond, NVIDIA's GTC conference is coming up in a few weeks.
36
It's free to attend virtually, featuring talks about building massive parallel systems with CUDA.
37
Thanks for watching, and I will see you in the next one.

Cosa imparerai

Con questo video, potrai esercitare due abilità cruciali per il parlato inglese: comprendere il discorso veloce e tecnico (caratterizzato da termini specifici come "GPU", "CUDA kernel" o "parallel computing") e riprodurre la struttura logica di un explanations. Inoltre, migliorerai la tua capacità di seguire un argomento complesso, utile per conversazioni professionali o accademiche.

Ascolta questi suoni

Nel video, nota come il speaker usa la connessione tra le parole per rendere il discorso fluido. Ad esempio: "compute unified device architecture" diventa quasi "computeunifieddevicearchitecture" a causa della velocità. Inoltre, ci sono riduzioni come "it's" per "it is" e "you've" per "you have", tipiche del parlato spontaneo. Ascolta anche come "GPU" e "CPU" sono pronunciate come acronimi (giù-più, ci-più) e non come parole intere.

Parla come un madrelingua

Per imitare il ritmo e l'accento del speaker, focalizzati su due punti: l'enfasi sulle parole chiave (es. "revolutionized", "parallel", "neural networks") e la pausa tra le frasi lunghe. Il speaker usa le pause per organizzare l'idea, quindi quando ripeti, fai lo stesso: pausa dopo "Since then" o "The code is executed in a block". Per esercitarti, usa la tecnica del shadowing in inglese: ascolta una frase, pausa e ripetila immediatamente, cercando di copiare il tono e la velocità. Più pratichi, meglio diventerà la tua pronuncia. Se vuoi approfondire, un shadowing site o un tool come shadowspeaks può aiutarti a confrontare la tua registrazione con l'originale. Ricorda: il segreto è la costanza! Ogni giorno, dedica 5 minuti a questo esercizio e noterai come la tua pronuncia inglese si migliora.

Il video è anche un ottimo esempio di shadow speech: il discorso è chiaro, ma con una velocità che richiede attenzione, perfetta per esercitarti a seguire e ripetere. Prova a riprodurre la parte dove si spiega il codice CUDA: le parole tecniche richiedono una pronuncia precisa, ma con il shadowing, diventeranno semplici.

Cos'è la tecnica dello Shadowing?

Shadowing è una tecnica di apprendimento delle lingue supportata da studi scientifici, originariamente sviluppata per la formazione dei traduttori professionisti e resa popolare dal poliglotta Dr. Alexander Arguelles. Il metodo è semplice ma potente: ascolti un audio in inglese di madrelingua e lo ripeti immediatamente ad alta voce — come un'ombra che segue il parlante con un ritardo di solo 1–2 secondi. A differenza dell'ascolto passivo o degli esercizi di grammatica, lo shadowing costringe il tuo cervello e i muscoli della bocca a elaborare e riprodurre simultaneamente i modelli di discorso reale. La ricerca dimostra che migliora significativamente la precisione della pronuncia, l'intonazione, il ritmo, il discorso connesso, la comprensione dell'ascolto e la fluidità del parlato — rendendolo uno dei metodi più efficaci per la preparazione alla prova di speaking dell'IELTS e per la comunicazione reale in inglese.

Tecnica dello shadowing: leggi la guida completa passo dopo passo →