If I want to write and publish a book where I use my examples with C++ code that I have written for specific GPUs, what are the steps? Is there an infringement, because I will base the examples to GPU code??

  • 7
    What sort of infringement are you worried about?
    – Buffy
    Jun 15, 2023 at 21:51
  • For instance, how possible it is to use code for not-open source famous GPUs? The same happens for famous FPGAs, where the code is not open source... Jun 15, 2023 at 22:12
  • 3
    How is this related to academia? Jun 16, 2023 at 6:57
  • Of course it has relation with academia, since the book will have code inside, and I am asking If this can cause me problems.... Jun 16, 2023 at 7:13
  • 2
    I don't understand your use of "code". When you say "not-open source GPUs": The GPU is a piece of hardware. There is no code involved, so there is nothing that could be "open source". So I'm confused about what you refer to. Jun 16, 2023 at 14:55

1 Answer 1


Manufacturers of GPUs do not sell you their product with a condition attached that you cannot publish code for them. In any case, this stipulation would probably not hold up in a court of law. Thus, providing code written by you for a patent and trademark protected GPU is not a violation of your purchasing agreement.

  • 2
    there are a variety of book using/showing proprietary codes (abaqus, comsol, matlab). OP: go to the library, grab a copy of this book and check what disclaimer they add (usually something like "the coe is provided as is, with no endorsment from the code publisher/manufacturer")
    – EarlGrey
    Jun 16, 2023 at 7:50

Not the answer you're looking for? Browse other questions tagged .