This project demonstrates computing sin(x)
using the Taylor Series Approximation, implemented in both C++ and ISPC for parallel execution.
- GCC or Clang
- ISPC Compiler (Download from https://ispc.github.io/)
- Clone the repository:
git clone https://github.com/PramithaMJ/ispc-sinx-optimizer.git cd ispc-sinx-optimizer
- Compile the code:
make
- Run the program:
./main
- Clean up:
make clean
The program will print sin(x)
results for the first 10 values, computed with both C++ and ISPC implementations.
By using ISPC, we achieve a significant speedup over sequential C++ execution by utilizing SIMD parallelism.