Skip to content

Commit 09455b0

Browse files
authored
Update lab01.md
1 parent 635d3a0 commit 09455b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

education/sheffield_onedaycuda/lab01.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $$D(x)= A^{-1} (x-B) mod M$$
2626

2727
Where $$A^{-1}$$ is the modular multiplicative inverse of $$A modulo M$$. For this exercise $$A^{-1}$$ has a value of `111`.
2828

29-
*Note: The mod operation is not the same as the remainder operator (`%`) for negative numbers. A suitable mod function has been provided for the example.*
29+
Note: The $$mod$$ operation is not the same as the remainder operator (`%`) for negative numbers. A suitable $$mod$$ function (`modulo`) has been provided for the example. The provided function takes the form of `modulo(int a, int b)` where `a` in this case is everything left of the affine decryption functions $$mod$$ opertor and `b` is everything to the right of the $$mod$$ operator.
3030

3131
As each of the encrypted character values are independent we can use the GPU to decrypt them in parallel. To do this we will launch a thread for each of the encrypted character values and use a kernel function to perform the decryption. Starting from the code provided in `exercise01.cu`, complete the following;
3232

0 commit comments

Comments
 (0)