RepositoryCAUÚc
harrism

harrism/mini-nbody

A simple gravitational N-body simulation in less than 100 lines of C code, with CUDA optimizations.

112sao
30fork
2issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: nbody

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: astrophysics

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: nbody

#1 Repository của tháng

🚀 mini-nbody: Mô phỏng N-body trọng lực siêu nhẹ, tối ưu CUDA

Dưới 100 dòng C, chạy trên cả CPU, GPU Tesla K20c và Intel Xeon Phi.

mini-nbody là bộ mô phỏng N-body trọng lực đơn giản bằng C, được thiết kế để benchmark hiệu năng trên nền tảng CUDA và MIC (Intel Xeon Phi). Dự án cung cấp 5 phiên bản tối ưu khác nhau, từ bản gốc chưa tối ưu đến phiên bản cuối cùng với loop unrolling (CUDA) và data alignment (MIC).

✨ Điểm nổi bật

  • Mã nguồn siêu nhỏ gọn: Dưới 100 dòng C, dễ đọc và dễ sửa.
  • Hỗ trợ đa nền tảng: Chạy trên CPU (OpenMP), GPU (CUDA), và Intel Xeon Phi (MIC).
  • 5 cấp độ tối ưu: Từ AOS sang SOA, flush denormals, cache blocking, loop unrolling, data alignment.
  • Scripts shmoo: Tự động build và chạy benchmark trên dải kích thước 1024–524.288 body.
  • Thời gian thực: Hỗ trợ benchmark thời gian chạy thực tế trên từng nền tảng.

💡 Vì sao đáng chú ý

mini-nbody không phải là một công cụ mô phỏng chuyên nghiệp, mà là một bài tham khảo hiệu năng. Mỗi phiên bản tối ưu được thiết kế để đo lường ảnh hưởng cụ thể của một kỹ thuật (như SOA, cache blocking, unrolling) đến tốc độ tính toán N-body. Phù hợp cho nghiên cứu hiệu năng thuật toán trên kiến trúc phần cứng đa dạng.


#NBody #CUDA #OpenMP #XeonPhi #Benchmark #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC
SWIFTSIM/SWIFT

Modern astrophysics and cosmology particle-based code. Mirror of gitlab developments at https://gitlab.cosma.dur.ac.uk/swift/swiftsim

164
Nov 26, 2026
RepositoryPython
bluescarni/heyoka.py

Python library for ODE integration via Taylor's method and LLVM

95
Nov 25, 2026
RepositoryPython
debpalash/VoiceStudio

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

122.2k
Dec 3, 2026
RepositoryPython
vllm-project/vllm

A high-throughput and memory-efficient inference and serving engine for LLMs

98.0k
Dec 2, 2026
RepositoryC
hashcat/hashcat

World's fastest and most advanced password recovery utility

27.4k
Nov 29, 2026
RepositoryC
akopytov/sysbench

Scriptable database and system performance benchmark

6.8k
Mar 9, 2025
RepositoryC
baidu/dperf

dperf: High-Performance Network Load Testing Tool Based on DPDK

5.7k
Aug 7, 2026
RepositoryC
PlummersSoftwareLLC/Primes

Prime number projects in 100+ programming languages, to compare their speed - and their programmer's cleverness

3.0k
Nov 1, 2026
RepositoryC
TheTumultuousUnicornOfDarkness/CPU-X

CPU-X is a Free software that gathers information on CPU, motherboard and more

2.6k
Sep 27, 2026