Smallpt on Cuda

Source: Internet
Author: User

The Cuda model is very concise. It basically calls functions for Parallel Processing for a large segment of data.
However, there are many restrictions currently. For example, all functions executed on the GPU must be inline, which means you cannot
Use modular or object-oriented design to separate complex systems. There are also very limited registers,
It is basically not enough for ray tracing, which makes the GPU throughput not high.
However, as a rapidly developing parallel model, there will be great potential in the future.

600 path per pixel
This figure is for the Cuda version transformed by smallpt. As a version without optimization, the GPU speed
Amazing, dozens of times faster than the CPU version. However, this is a special case. The structure of smallpt is too simple.
Complex models, lights, materials, textures, and GPUs may not be able to exceed the CPU, which will be tested in the future.

Currently, only the material system is rewritten.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.