LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2019, 09:06 AM   #1
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Rep: Reputation: Disabled
Blender 2.79 - no GPU render option


I use Ubuntu 18.10.

I read on the Blender website that it supports OpenCL for AMD graphic cards that use GCN architecture 2.0 and above.

I've got an R9 380 (GCN 3) but in Blender's user preferences there isn't an option for GPU compute device.

Is this likely to be a driver issue? How do I find out which drivers I have installed? I remember to get a game to work I had to install "mesa-vulkan-drivers". Is there anything else I might need?

Thank you!

Last edited by LQ496873; 03-04-2019 at 09:14 AM.
 
Old 03-04-2019, 09:28 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
under settings it is not there or at rendering settings, my other laptop has a dropdown list to select gpu and cpu rendering. you might have better luck getting the skinny on there QA sight.
 
Old 03-04-2019, 09:47 AM   #3
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Original Poster
Rep: Reputation: Disabled
I do have the dropdown on the right side of Blender but both options take the same time to render. In user preferences there is no option for OpenCL.

I've read that installing AMDGPU-Pro will install OpenCL but I've also become aware that those drivers aren't recommended and that its best to stick to AMDGPU... plus the mesa-vulkan-drivers that I installed.
 
Old 03-04-2019, 09:52 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
be aware of tile size(s) too change rendering time.
https://www.blenderguru.com/articles...peed-up-cycles

running it in a script to eliminate gui .. let me go find my script brb

Code:
#!/bin/bash

#executable
Blender=/media/data/blender-2.79-5480de3fca8-linux-glibc219-x86_64/blender 
#file to render
file=/media/data/Charlotte_Zone_video/CZ_Shorter_version/BlenderNightly/Charlotte_Zone_Marque_SS_ShorterVersion_08a2a.blend
#output images to adds numbering to end ####
output=/media/projects/Charlotte_Zone_video/CLI_CZ_Shorter_version_middle/Charlotte_Zone_SuperStar_ShorterVersion_Marque_08a-####
render_type=CYCLES
cores=4
#Frame Numbers
start=2689
finish=2800

 "$Blender" -b "$file" -o "$output" -E "$render_type" -s "$start" -e "$finish" -t "$cores" -a
https://docs.blender.org/manual/en/l...arguments.html

https://docs.blender.org/manual/en/l...mand_line.html

Last edited by BW-userx; 03-04-2019 at 09:56 AM.
 
Old 03-04-2019, 12:59 PM   #5
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Original Poster
Rep: Reputation: Disabled
I've found this webpage.
"Install OpenCL For The AMDGPU Open Source Drivers On Debian and Ubuntu"
https://linuxconfig.org/install-open...ian-and-ubuntu

It's the second one of it's kind so I'm hoping to give it a try.

From the instructions...

Code:
$ sudo apt install build-essential dkms
Works fine

Code:
cd /Downloads/amdgpu-pro-18.50-725072-ubuntu-18.04
Works fine. Though, I have 18.10 not 18.04. Would/could it make a difference?????

I'm stuck.

Code:
sudo dpkg -i amdgpu-pro-core_18.50-725072_all.deb
Flashes up an error...

Code:
Selecting previously unselected package amdgpu-pro-core.
(Reading database ... 161528 files and directories currently installed.)
Preparing to unpack amdgpu-pro-core_18.50-725072_all.deb ...
Unpacking amdgpu-pro-core (18.50-725072) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-core:
 amdgpu-pro-core depends on amdgpu-core; however:
  Package amdgpu-core is not installed.

dpkg: error processing package amdgpu-pro-core (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 amdgpu-pro-core
I have tried installing "amdgpu-core 18.50-725072_all.deb" but it returns...
Code:
sudo dpkg -i amdgpu-core_18.50-725072_all.deb
[sudo] password for user: 
(Reading database ... 161531 files and directories currently installed.)
Preparing to unpack amdgpu-core_18.50-725072_all.deb ...
ERROR: This package can only be installed on Ubuntu 18.04.
dpkg: error processing archive amdgpu-core_18.50-725072_all.deb (--install):
 new amdgpu-core package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 amdgpu-core_18.50-725072_all.deb
Am I doing something wrong? "Selecting previously unselected package amdgpu-pro-core."

Can anyone help me with these steps?

Thank you for any help.

Last edited by LQ496873; 03-04-2019 at 01:10 PM.
 
Old 03-04-2019, 02:10 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
i am not a user of debs but have a little experience, maybe add -f to force it to install, the end results I have no idea. but you should still be able to uninstall it. this is up to you of course.

too, maybe look into the dependency issues first to see if there are any dependency needed before proceeding.

Last edited by BW-userx; 03-04-2019 at 02:11 PM.
 
Old 03-05-2019, 01:49 PM   #7
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Original Poster
Rep: Reputation: Disabled
Thank you for your replies. It's the blenderguru videos I'm following.. they're brilliant!

I've as good as given up on using OpenCL! Maybe I'll have to do the final renders in Windows :-(

I searched the internet until my brain hurt and it seems I have to use the amdgpu-pro drivers.

The amdgpu-pro driver wouldn't install because its for Ubuntu 18.04 and apparently very fussy the on the Ubuntu version. So I installed Ubuntu 18.04 but the driver still wouldn't install because it doesn't like the version of the kernel. I guess at some point the kernel updated.
 
Old 03-05-2019, 03:02 PM   #8
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Original Poster
Rep: Reputation: Disabled
I did it!

There was a bit of mucking about (like re-installing my OS twice!!) but I can now render in Blender on Ubuntu 18.10 using my AMD graphics card.

For anyone looking for a solution to this... this should work -

Code:
sudo gedit /usr/lib/os-release
Change "18.10" to "18.04"

Download and extract the amdgpu-pro drivers and change directory to that folder.
Then...

Code:
/amdgpu-pro-install --opencl=legacy --headless
It should install the OpenCL part of amdgpu-pro whilst keeping the amdgpu driver. The "legacy" is because I have a pre Vega 10 system. The AMD release notes explain this.

Last edited by LQ496873; 03-05-2019 at 03:05 PM.
 
Old 03-05-2019, 05:47 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
sweet, you found a good work around...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Render animation using computation device GPU under blender tousif Linux - Software 2 03-15-2015 08:44 PM
[SOLVED] Blender 2.63 only runs if I type /opt/blender/blender in cmdline Jeebizz Slackware 6 07-23-2013 05:00 PM
LXer: Blender 2.62 Brings New Render Engine Features LXer Syndicated Linux News 0 02-18-2012 06:30 PM
LXer: Blender 2.5: Detailed Render of the Earth from Space LXer Syndicated Linux News 0 05-26-2011 09:20 AM
blender shut down when calling render bibilit Linux - Software 8 01-10-2005 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration