DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th October 2021
smh1 smh1 is offline
New User
 
Join Date: Sep 2021
Posts: 5
Default GPU Programming

Hello everyone,

I would like to learn GPU programming and am looking for a suitable opportunity in *BSD. Currently I would use Metal on a M1, but since I want to get away from Apple in the medium term, I am looking for good alternatives.

Ideal would be something on OpenBSD, but if it shouldn't work there at all, of course Free- or NetBSD would be fine too.

I would be very happy about helpful hints!
Reply With Quote
  #2   (View Single Post)  
Old 24th October 2021
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 196
Default

I presume this video motivated your question?
https://www.youtube.com/watch?v=05xVLyvc-sA

I'd highly recommend OpenBSD for beginners to learn C/C++,
because it detects memory errors in normal operation. Its
like having a lesser Valgrind running all the time. It makes your life so much easier.

I am not sure how to answer your question, as I can't tell
what your level is.

You can make games on OpenBSD, as there are lots of game
libraries in ports, and a GUI driven 2D/3D engine called Godot.

Or it could be, you want to make your own 3D engine?
If so, keep in mind NVIDA cards are not supported on OpenBSD,
because they are closed source. AMD cards are supported up to
a certain extent. If you want to learn engine programming,
you can learn it from the Handmade Hero folks, though they
are Windows focused, but what they teach can be applied to other platforms.

I can't really help further as I don't use 3D, as it gives me
motion sickness. I'm more into the kind of games they were making fun of at the start of that video. :P
However the SlimEngine has me curious, I might try to get it to work on OpenBSD one day.

FreeBSD does support NVIDA cards so I hear, but I haven't used it.

Last edited by Prevet; 24th October 2021 at 04:24 AM.
Reply With Quote
  #3   (View Single Post)  
Old 4 Weeks Ago
smh1 smh1 is offline
New User
 
Join Date: Sep 2021
Posts: 5
Default

Thank you very much for your reply Prevet!

I was thinking about GPGPU programming, but forgot to mention that, I am very sorry for that.

Maybe I could try an AMD-Card with Vulkan or OpenGL on OpenBSD?
Reply With Quote
  #4   (View Single Post)  
Old 4 Weeks Ago
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 196
Default

From looking at this two year old post it*appears so:

"brynet
·
2y
· edited 2y
OpenBSD Developer

OpenBSD has modern graphics drivers from Linux (-current 4.19.y/Mesa 19.2.8) for Intel/AMD hardware, as a development platform we have many of the libraries that a game developer would expect in ports, like SDL2/OpenAL. We even have support for, at least on more recent hardware, the Vulkan graphics API."
https://www.reddit.com/r/openbsd/com...s_it_possible/

Have a search here to see if OpenBSD has what you need in the packages:
https://openports.pl/


Though I don't know what card series you should get.
When I first came to OpenBSD I couldn't find a clear answer on what card to get besides the Radeon 6000s series. I assume they support more recent than that, because OpenBSD devs have the latest laptops.
The hardest part when I was new to OpenBSD was finding a card, after that it was all good.
You might ask on the OpenBSD mailing lists, or ask at OpenBSD gaming on reddit

There's a user at OpenBSD gaming reddit who seems to get almost any game working if it can be done,
so he would be a good person to ask.
He calls himself thfrw on reddit and Thomas Frohwein when he is maintaining packages. Perhaps you can find him
on the OpenBSD mailing lists.
He is also the one who made the Youtube video above so he might answer there as well.

Last edited by Prevet; 4 Weeks Ago at 12:55 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming on *BSD ibara Programming 49 12th September 2021 02:44 AM
php programming in openbsd. bsdnewbie999 OpenBSD General 5 15th June 2009 03:03 AM
Java and AI-programming idefix Programming 4 7th February 2009 01:41 PM
c programming - Modules corey_james Programming 3 6th November 2008 08:49 PM
GUI Programming bsdnewbie999 Programming 6 17th August 2008 12:19 AM


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick