ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

N-Body Simulation

Автор: a2flo

Загружено: 2015-04-06

Просмотров: 87207

Описание: This was written to demonstrate and test the compute toolchain/implementation I'm currently working on for my master's thesis (https://github.com/a2flo/floor). With this it is possible to compile the same C++17 code to CUDA/PTX, OpenCL/SPIR/SPIR-V, Metal and Vulkan/SPIR-V, thus running on a multitude of GPUs and CPUs on different platforms. To achieve this, I'm using a modified clang/llvm/libc++ 4.0 toolchain and a layer of host and device side code that makes it possible to address everything the same way. This demo in particular shows the use of local/shared memory buffers, local memory barriers, OpenGL buffer sharing, loop unrolling and that high performance computing is indeed possible with this toolchain.

The N-body simulation is largely based on http://http.developer.nvidia.com/GPUG... with some additional optimizations.

More information on N-body simulations: https://en.wikipedia.org/wiki/N-body_...

Code for this demo: https://github.com/a2flo/floor_exampl...

Current performance stats (in benchmark mode):
P6000: ~8400 gflops (--count 262144 --tile-size 512)
GP100: ~7600 gflops (--count 262144 --tile-size 512)
GTX 970: ~2770 gflops (--count 131072 --tile-size 256)
GTX 780: ~2350 gflops (--count 131072 --tile-size 512)
GTX 1050 Ti: ~1675 gflops (--count 262144 --tile-size 256)
R9 285: ~850 gflops (--count 131072 --tile-size 64)
GTX 750: ~840 gflops (--count 65536 --tile-size 256)
GT 650M: ~375 gflops (--count 65536 --tile-size 512)
HD 530: ~242 gflops (--count 65536 --tile-size 128)
HD 4600: ~235 gflops (--count 65536 --tile-size 80)
i7-6700: ~195 gflops (--count 32768 --tile-size 1024)
HD 4000: ~165 gflops (--count 32768 --tile-size 128)
iPhone A10: ~131 gflops (--count 32768 --tile-size 512)
i7-5820K: ~105 gflops (--count 32768 --tile-size 8)
i7-4770: ~80 gflops (--count 32768 --tile-size 8)
i7-3615QM: ~38 gflops (--count 32768 --tile-size 8)
i7-950: ~29 gflops (--count 32768 --tile-size 4)
iPhone A8: ~28 gflops (--count 16384 --tile-size 512)
iPad A7: ~20 gflops (--count 16384 --tile-size 512)

Stats from this video:
N = 131072, damping = 0.9983, softening = 0.01
since this is an O(n^2) algorithm, this results in 131072^2 = 17179869184 body/body interactions per iteration
the initial body setup is a hollow sphere (or on-sphere), with body velocities set to the center
with rendering and video capturing, performance is degraded a little and one iteration of this simulation took about 175ms (w/o rendering/capturing it would be ~155ms)
with N = 65536 this runs in realtime on a GTX 780 (~38ms per iteration with rendering)
the 1x runtime of this video is slightly above 1 hour, the video is shown in 16x speed-up, with camera rotations at 3x (to not cause that much confusion ;))

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
N-Body Simulation

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Realtime 2D Gravity Simulation

Realtime 2D Gravity Simulation

ASUS GX10 (NVIDIA DGX Spark): честный тест для инференса нейросетей

ASUS GX10 (NVIDIA DGX Spark): честный тест для инференса нейросетей

ИИ-роботы и Технологии Будущего на Выставке в США 2026

ИИ-роботы и Технологии Будущего на Выставке в США 2026

ЧП на стратегическом объекте / Москва не ожидала такого удара

ЧП на стратегическом объекте / Москва не ожидала такого удара

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

Чем ОПАСЕН МАХ? Разбор приложения специалистом по кибер безопасности

SST N-Body Timelapse

SST N-Body Timelapse

Идеальное оружие: смогут ли гафниевые бомбы заменить ядерные?

Идеальное оружие: смогут ли гафниевые бомбы заменить ядерные?

Making an N-Body Simulation

Making an N-Body Simulation

Вот Что

Вот Что "ВСЕГДА" Происходит Перед Обвалом Рынка!

25 Запрещенных Гаджетов, Которые Вы Можете Купить Онлайн

25 Запрещенных Гаджетов, Которые Вы Можете Купить Онлайн

Как работает трассировка лучей в видеоиграх и фильмах?

Как работает трассировка лучей в видеоиграх и фильмах?

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Simulation of galaxy formation

Simulation of galaxy formation

500.000 Body Simulation

500.000 Body Simulation

2026: Всё Уже Решено - Вот Что Будет Дальше

2026: Всё Уже Решено - Вот Что Будет Дальше

Главная война столетия. США против Китая

Главная война столетия. США против Китая

Квадродеревья и алгоритм Барнса-Хата: создание симуляции гравитации

Квадродеревья и алгоритм Барнса-Хата: создание симуляции гравитации

Science Today: Simulating Solar System Formation | California Academy of Sciences

Science Today: Simulating Solar System Formation | California Academy of Sciences

3 Body Problem - Periodic Solutions

3 Body Problem - Periodic Solutions

Как Трамп ОТМЕНЯЕТ Крипту Одним Указом. Биткоин — ВСЁ?

Как Трамп ОТМЕНЯЕТ Крипту Одним Указом. Биткоин — ВСЁ?

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]