You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, it seems like I was missing a fundamental concept in vectorization.
If I understand correctly, the function is executed n-times on a GPU device even though we call it with an array of dimension n. A correct implementation would, therefore, look like this:
if abs(waveform_value) > threshold:
return waveform_value
else:
return 0.0
Hi,
I am struggling with exercise 2. My implementation looks like this:
Somehow, that is not possible in CUDA and I don't understand why (if and for statements should be supported). Can someone elaborate?
The text was updated successfully, but these errors were encountered: