This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Repository navigation
v0.6
Significant Performance Improvements:
1. Optimized Kernel for Coefficient Dot Product:
- Removed reliance on cuBLAS/CLBlast (af::matmulTT) and eliminated redundant computation of the "x_" array.
- Instead, a single kernel now computes the dot product of coefficients (broadcasted via constant memory for efficient access) with neighboring values. This reduces both memory bandwidth usage and redundant multiplication overhead.
2. Faster Image Region Loading:
- Transitioned from relying solely on the texture cache to using shared memory for loading image regions.
- This approach reduces texture cache latency and minimizes cache miss penalties, significantly benefiting memory-bound kernels like NVF and scaled neighborhood dot product computations.
3. FP16 Optimization for Shared Memory:
- Introduced FP16 precision for storing Rx and rx arrays in shared memory, reducing space required and increasing theoretical occupancy.
- The values stored in FP16 don't exceed the maximum allowed for FP16, with negligible precision loss based on tests. Even if they did however, we could work with normalized values in [0,1]. The result would not change, because solving a system Ax=b is equal to aAx = ab, where a=(pixelValue/255) in our case.