Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Short-circuiting in C
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="BGB, post: 4215125"] AFAIK, there may be a point of difference between nVidia and ATI GPUs here, where nVidia GPUs will in many cases skip over the non-evaluated code and ignore the instructions, and ATI GPUs will actually perform the branch, but typically go down only one side of the branch at a time (having different threads branch differently may mean first evaluating, say, all threads where the jump was true, followed by all branches where it was false, ...). also, the GPUs are normally organized into a large number of "cores" which operate independently of each other, but each core may operate some number of threads in parallel, each thread in turn having to move in lock-step with the others. granted, I am no particular expert on GPUs, and most of my personal experience has been with OpenGL and GLSL, rather than OpenCL and its modified C-subset (and, sadly, the inability to use function pointers would very much hinder many of my usual coding practices). I may use it eventually though. I think I remember hearing at some point about projects trying to run both Java-ByteCode and ActionScript on the GPU as well, ... [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Short-circuiting in C
Top