Welcome to the LeetGPU PyTorch Problem Solutions repository! This project provides high-quality solutions to GPU programming problems from LeetGPU, with a focus on PyTorch-style computational tasks.
- Vector Addition – Element-wise addition of two vectors on the GPU
- Matrix Multiplication – Multiplication of two matrices using GPU parallelism
- Matrix Transpose – Efficiently transposing a matrix on the GPU
Each problem directory includes:
- A detailed
README.md(problem statement, examples, constraints) - A native GPU solution (CUDA C++ or Python, as specified)
- A direct link to the original LeetGPU problem
- Navigate to the desired problem folder
- Read the problem description & examples in its
README.md - Run the provided solution on your local GPU-enabled environment
LeetGPU is an online platform for practicing, benchmarking, and improving your GPU programming skills.
It provides real-world computational challenges to test and enhance your understanding of parallel programming and GPU architectures.
We welcome contributions, improvements, and new solutions!
- Open an issue for bug reports or suggestions
- Submit a pull request for new solutions or enhancements
✨ Happy coding & GPU learning! ✨