flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Some GPUs do have published instruction sets. Some don't. Check before you buy.
Your OS should provide an API to talk to the GPU. Check with your OS as to what libraries and APIs it has. Things like CUDA and OpenCL etc. are popular with lots of examples on how to use them. And the high level interface libraries like OpenGL and DirectX will use those lower level APIs. Plus, every GPU is different in what it can do, and how it works, so it is not easy to talk in general terms except when using the APIs. If you want to go in at a lower level then you necessarily must look to each GPUs specs. |
|||
![]() |
|
ml64
Now i see it, thanks!
The GPU branch is developing intensively and extensively so there is no common industrial standard for all GPU architectures. GPU is not a general-purpose unit like CPU. Contemporary Intel, AMD, and Apple CPUs contain specialized media cores. Here's an Intel documentation, for example. https://software.intel.com/content/www/us/en/develop/articles/introduction-to-gen-assembly.html Are there any assemblers or any extensions for fasm working with GPU (media core) registers or instructions? If there are no such tools then how difficult is it to create such one? |
|||
![]() |
|
bitRAKE
LLVM has GPU backends for AMD, NVidia, ...
https://llvm.org/docs/AMDGPUUsage.html https://llvm.org/docs/NVPTXUsage.html These backends are largely provided/used by the manufacturers. AMD seems to be more open from an assembly perspective, imho: https://rocmdocs.amd.com/en/latest/GCN_ISA_Manuals/GCN-ISA-Manuals.html Whereas NVidia would like programmers to use their high-level APIs. Large collection of GPU docs: https://github.com/olvaffe/gpu-docs |
|||
![]() |
|
ml64
Oh, thanks! That's a real treasure!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.