Better HN
topnewbestaskshowjobs
Log inSign up

Sulik

-3 karma · joined Sep 16, 2020 (6y ago) · 5 submissions

Submissions

comment 6y ago · link · parent

You can predict a pseudo-assembly output for a mental model of the architecture(s) you're targeting. It doesn't have to be an exact match, register allocation and all.

comment 6y ago · link · parent

CUDA is basically just C/C++ with parallel-programming concepts. The "alternatives" like OpenCL are still tied to their graphics API origins.

comment 6y ago · link · parent

One "CUDA core" is indeed one GPU thread. The lane of a GPU SIMD is nothing like CPU SIMD, and can independently branch (even if that branching can be much more expensive than on a CPU).

comment 6y ago · link · parent

To me, the philosophy of C (and even C++ before things became nuts) is that you should be able to reasonably guess the assembly code resulting from the C code, the idea being that you can write assembly code with much less typing. These days, things seem to be moving in a more dogmatic direction with the underlying assumption that the vast majority of programmers are bad programmers.

comment 6y ago · link · parent

+1