Perform the ReLU (Rectified Linear Unit) activation function on an input matrix:
C[i][j]=max(0,A[i][j])
The ReLU function is defined as:
f(x)={x0if x>0if x≤0
Input:
- Matrix A of size M×N containing floating-point values
Output:
- Matrix C of size M×N containing the ReLU activation values
Notes:
- Both matrices A and C are stored in row-major order
- This problem is adapted from KernelBench
Test Case Sizes
- 4096x4096
- 6144x4096
- 4096x7168
- 4096x8192
- 8192x8192