Edit: Updated title as not specific to HD4650
Edit: Updated title - now we can crunch with boinc as a service
Code: Select all
VIDEO_CARDS="fglrx"Code: Select all
echo "x11-drivers/ati-drivers opencl" >> /etc/portage/package.use
echo "dev-util/opencl-headers" >> /etc/portage/package.keywordCode: Select all
emerge -avDN worldCode: Select all
# eselect opengl set atiCode: Select all
# aticonfig --initial
# aticonfig --initial=checkCode: Select all
ln -s /usr/lib32/libOpenCL.so.1 /usr/lib32/libOpenCL.so
ln -s /usr/lib64/libOpenCL.so.1 /usr/lib64/libOpenCL.soCode: Select all
ln -snf /usr/lib64/libaticalrt.so /var/lib/boinc/libaticalrt.soeg.# Owner of BOINC process (must be existing)
USER="boinc"
GROUP="boinc"
Code: Select all
USER="trogdog"
GROUP="trogdog"Code: Select all
after xdm localStep 8 - Check that boinc will indeed recognise your gpudepend() {
# we can use dns and net, but we can also in most cases live without them
use dns net
after xdm local
}
Code: Select all
/etc/init.d/boinc startYou want VIDEO_CARDS="fglrx". "radeon" is for the open-source video drivers in xf86-video-ati.
Code: Select all
boinc_client --dir /var/lib/boincCode: Select all
[---] Starting BOINC client version 6.10.58 for x86_64-pc-linux-gnu
[---] log flags: file_xfer, sched_ops, task
[---] Libraries: libcurl/7.20.0 OpenSSL/1.0.0c zlib/1.2.3
[---] Data directory: /var/lib/boinc
[---] Processor: 4 AuthenticAMD AMD Phenom(tm) 9150e Quad-Core Processor [Family 16 Model 2 Stepping 3]
[---] Processor: 512.00 KB cache
[---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_leg
[---] OS: Linux: 2.6.36-gentoo-r5lxc
[---] Memory: 1.71 GB physical, 12.00 GB virtual
[---] Disk: 46.93 GB total, 43.91 GB free
[---] Local time is UTC +0 hours
[---] ATI GPU 0: ATI Radeon HD 2300/2400/3200 (RV610) (CAL version 1.4.880, 256MB, 50 GFLOPS peak)
[World Community Grid] URL http://www.worldcommunitygrid.org/; Computer ID 819821; resource share 100
[World Community Grid] General prefs: from World Community Grid (last modified 13-Aug-2008 08:23:33)
[World Community Grid] Host location: none
[World Community Grid] General prefs: using your defaults
[---] Reading preferences override file
[---] Preferences:
[---] max memory usage when active: 579.26MB
20-Jan-2011 11:42:14 [---] max memory usage when idle: 1158.52MB
20-Jan-2011 11:42:14 [---] max disk usage: 4.69GB
20-Jan-2011 11:42:14 [---] max CPUs used: 3
20-Jan-2011 11:42:14 [---] suspend work if non-BOINC CPU load exceeds 66 %
20-Jan-2011 11:42:14 [---] (to change preferences, visit the web site of an attached project, or select Preferences in the Manager)
20-Jan-2011 11:42:14 [---] Not using a proxy
Initialization completed
20-Jan-2011 11:42:14 [World Community Grid] Restarting task HFCC_L3_02551369_L3_0000_0 using hfcc version 611
20-Jan-2011 11:42:14 [World Community Grid] Restarting task HFCC_L3_02575383_L3_0000_0 using hfcc version 611
20-Jan-2011 11:42:14 [World Community Grid] Restarting task HFCC_L3_02572405_L3_0000_0 using hfcc version 611Code: Select all
[---] Starting BOINC client version 6.10.58 for x86_64-pc-linux-gnu
[---] log flags: file_xfer, sched_ops, task
[---] Libraries: libcurl/7.20.0 OpenSSL/1.0.0c zlib/1.2.3
[---] Data directory: /var/lib/boinc
[---] Processor: 4 AuthenticAMD AMD Phenom(tm) 9150e Quad-Core Processor [Family 16 Model 2 Stepping 3]
[---] Processor: 512.00 KB cache
[---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dno
[---] OS: Linux: 2.6.36-gentoo-r5lxc
[---] Memory: 1.71 GB physical, 12.00 GB virtual
[---] Disk: 46.93 GB total, 43.91 GB free
[---] Local time is UTC +0 hours
d
[---] No usable GPUs found
[World Community Grid] URL http://www.worldcommunitygrid.org/; Computer ID 819821; resource share 100
[World Community Grid] General prefs: from World Community Grid (last modified 13-Aug-2008 08:23:33)
[World Community Grid] Host location: none
[World Community Grid] General prefs: using your defaults
[---] Reading preferences override file
[---] Preferences:
[---] max memory usage when active: 579.26MB
[---] max memory usage when idle: 1158.52MB
[---] max disk usage: 4.69GB
[---] max CPUs used: 3
[---] suspend work if non-BOINC CPU load exceeds 66 %
[---] (to change preferences, visit the web site of an attached project, or select Preferences in the Manager)
[---] Not using a proxy
eted
[World Community Grid] Restarting task HFCC_L3_02551369_L3_0000_0 using hfcc version 611
[World Community Grid] Restarting task HFCC_L3_02575383_L3_0000_0 using hfcc version 611
[World Community Grid] Restarting task HFCC_L3_02572405_L3_0000_0 using hfcc version 611
[World Community Grid] Task HFCC_L3_02551369_L3_0000_0 exited with zero status but no 'finished' file
[World Community Grid] If this happens repeatedly you may need to reset the project.
[World Community Grid] Restarting task HFCC_L3_02551369_L3_0000_0 using hfcc version 611
[World Community Grid] Task HFCC_L3_02575383_L3_0000_0 exited with zero status but no 'finished' file
[World Community Grid] If this happens repeatedly you may need to reset the project.
[World Community Grid] Task HFCC_L3_02572405_L3_0000_0 exited with zero status but no 'finished' file
[World Community Grid] If this happens repeatedly you may need to reset the project.
[World Community Grid] Restarting task HFCC_L3_02572405_L3_0000_0 using hfcc version 611Code: Select all
start()
{
log_begin_msg "Starting $DESC: $NAME"
if is_running; then
log_progress_msg "already running"
else
sleep 5
xhost local:boinc &> /dev/null
start-stop-daemon --start --quiet --background --pidfile $PIDFILE \
--make-pidfile --user $BOINC_USER --chuid $BOINC_USER \
--chdir $BOINC_DIR --exec $BOINC_CLIENT -- $BOINC_OPTS
fi
log_end_msg 0
Code: Select all
else
CHRT="eval /usr/bin/chrt ${SCHED_PARAM}"
fi
# added to get boinc to see gpu
sleep 15
xhost local:boinc &> /dev/null
# end of additions
${CHRT} start-stop-daemon \
--start --quiet --chdir "${RUNTIMEDIR}" \
--background \
--make-pidfile \
--pidfile "${PIDFILE}" \
--chuid "${USER}:${GROUP}" \
--nicelevel "${NICELEVEL}" \
Code: Select all
layman -L
layman -a pentoo
echo "source /var/lib/layman/make.conf" >> /etc/make.confCode: Select all
emerge ati-stream-sdk-bin
eselect opencl set atiCode: Select all
# rc-update del boinc defaultCode: Select all
#chown -vR trogdog /var/lib/boincbig_gie has written an updated ebuild for the ati-stream package see [post=6772852]here[/post]. To swap to this new ebuild you will need toTrog Dog wrote:Slightly OT but to crunch with the primegrid gpu app you need libOpenCL.so this is available in the ati-stream-sdk-bin package from the pentoo overlay.
Steps invloved are
1. Install layman and subversion
2. Install the pentoo overlay3. Install ati-stream-sdkCode: Select all
layman -L layman -a pentoo echo "source /var/lib/layman/make.conf" >> /etc/make.confCode: Select all
emerge ati-stream-sdk-bin eselect opencl set ati
Code: Select all
echo ">=dev-util/opencl-headers-1.1-r6 ~amd64" >> /etc/portage/package.keywordCode: Select all
eselect opencl set amdAs of ati-drivers-11.11 opencl is now available with the opencl use flag.Trog Dog wrote:big_gie has written an updated ebuild for the ati-stream package see [post=6772852]here[/post]. To swap to this new ebuild you will need toTrog Dog wrote:Slightly OT but to crunch with the primegrid gpu app you need libOpenCL.so this is available in the ati-stream-sdk-bin package from the pentoo overlay.
[snip]
1. Stop boinc
2. Unmerge ati-stream-sdk-bin
3. Add the nbigaouette overlay
4. Unmask and emerge opencl-headers (unless you have or want nvidia-cuda-toolkit installed)5. Unmask and emerge amdstreamCode: Select all
echo ">=dev-util/opencl-headers-1.1-r6 ~amd64" >> /etc/portage/package.keyword
6. Update eselect-opencl to big_gie's fork
7. Run eselect opencl and set amd as the default8. Restart boincCode: Select all
eselect opencl set amd
Code: Select all
rm /etc/env.d/03opencl
rm /usr/lib32/libOpenCL.so
rm /usr/lib64/libOpenCL.soCode: Select all
echo "x11-drivers/ati-drivers opencl" >> /etc/portage/package.useCode: Select all
emerge -1 ati-driversCode: Select all
ln -s /usr/lib32/libOpenCL.so.1 /usr/lib32/libOpenCL.so
ln -s /usr/lib64/libOpenCL.so.1 /usr/lib64/libOpenCL.soCode: Select all
ln -snf /usr/lib64/libaticalrt.so /var/lib/boinc/libaticalrt.soeg.# Owner of BOINC process (must be existing)
USER="boinc"
GROUP="boinc"
Code: Select all
USER="trogdog"
GROUP="trogdog"Code: Select all
after xdm local5. Check that boinc will indeed recognise your gpudepend() {
# we can use dns and net, but we can also in most cases live without them
use dns net
after xdm local
}
Code: Select all
/etc/init.d/boinc startCode: Select all
rc-update add boinc defaultIt's a 4870. The reason I got it was so I could crunch Milkyway. I recently installed the OpenCL for the Primegrid Challenge, but otherwise I don't really need it. I think you have to have a more recent version of BOINC to crunch the POEM app.Trog Dog wrote:you got a hd4xxx series gpu? same thing happens with collatz, POEM now has a gpu app (openCL) which will work, as does primegrid
Code: Select all
emerge -pv =x11-drivers/ati-drivers-11.10I masked >=x11-drivers/ati-drivers-11.11 and it took me down to around 11.8. The downgrade of xorg is automatic. I guess if(when) Milkyway switches to OpenCL, I'll remove the mask.Trog Dog wrote:see if you can downgrade your ati-drivers, the latest upgrade broke compatibility with the 4xxx series and milkyway and collatz - both those apps are the old CAL apps which ATI/AMD no longer supports, 5XXX and above weren't affected but how long this will last? I wouldn't hold my breath.you'll probably have to downgrade xorg tooCode: Select all
emerge -pv =x11-drivers/ati-drivers-11.10
If you want to upgrade boinc to the latest 7 series the modifications to the current ebuild are trivial, and I can post the details.
If any future version of ati-drivers starts to work with milkyway again I'll let you know (11.12 certainly doesn't)trigggl wrote:
I masked >=x11-drivers/ati-drivers-11.11 and it took me down to around 11.8. The downgrade of xorg is automatic. I guess if(when) Milkyway switches to OpenCL, I'll remove the mask.