ATI Client via WINE

Moderators: slegrand, Site Moderators, PandeGroup

GPU2 in Linux via WINE

Postby shatteredsilicon » Thu Sep 25, 2008 12:21 am

Since we have a wrapper for CUDA under WINE that enables the nVidia GPU2 client to run, I thought I'd ask the question and see if it gets the ball rolling on the subject of getting a CAL wrapper for ATI client.

It would appear that ATI do now provide Linux drivers. Presumably these support CAL, since ATI also appear to provide CAL for Linux. So far so good.

1) Can anyone confirm or deny that similar API wrappers as used for CUDA might work for the CAL interfaces?
2) Does the ATI client support GPU selection in multi-GPU setups (-gpu n)? If so, does it include support for X2 cards?

I'm mostly asking 2) to ascertain whether this undertaking would be worthwhile. If the client itself isn't yet ready for X2 cards, even if 1) would plausibly work, I'm not sure I could work up enough motivation to do it quite yet, since the card that's tempting me to consider this is he 4870X2. If it's just not going to happen, I'll stick with my GX2s for a while longer.
Image
1x Q6600 @ 3.2GHz, 4GB DDR3-1333
1x Phenom X4 9950 @ 2.6GHz, 4GB DDR2-1066
3x GeForce 9800GX2
1x GeForce 8800GT
CentOS 5 x86-64, WINE 1.x with CUDA wrappers
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

Re: GPU2 in Linux via WINE

Postby toTOW » Thu Sep 25, 2008 9:56 am

I don't know for the 1) but I can answer the 2) :

- it does of course support -gpu X switch for multi GPU setups. Crossfire has to be disabled.
- crossfire can't be disabled on X2 boards, so it will be seen a one board, and use only one GPU. Mike talked about direct addressing to the GPU to make it run, but I don't know if it's possible (I'd say no, unless someone show me the contrary).
Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.

FAH-Addict : latest news, tests and reviews about Folding@Home project.

Image
User avatar
toTOW
Site Moderator
 
Posts: 8931
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: GPU2 in Linux via WINE

Postby shatteredsilicon » Thu Sep 25, 2008 11:15 am

Thanks for that. Interesting. Is there no way to get a handle directly on the 2nd GPU on the X2 boards, like there is on nVidia setups?
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

Re: GPU2 in Linux via WINE

Postby ahu » Fri Sep 26, 2008 4:24 pm

I think you can use both the GPU cores, but only in XP/2003 currently as in Vista you apparently can't disable the internal Crossfire. But according to Mike Houston, the current GPU2 client can only recognize one GPU core anyway.

I just installed the latest AMD Stream SDK CAL batch for Windows XP64 (I'm using Server 2003) and found that the calDeviceGetCount() method does indeed report 2 for the 4870 X2 card. So there's hope :)

BTW, I can't ENABLE the internal Crossfire on the Server 2003 x64 (not that I want to...). This was also the case with my 9800GX2 setup and the OS: all GPU cores recognized separately and no way to enable SLI. Go figure...
ahu
 
Posts: 61
Joined: Sat Jul 19, 2008 7:07 pm
Location: Finland

Re: GPU2 in Linux via WINE

Postby shatteredsilicon » Fri Sep 26, 2008 5:51 pm

So, as long as internal Crossfire can be disabled, GPUs are addressable separately? I think I may just have to check X driver options. :-)

Can you verify that under 2K3 that doesn't allow _enabling_ x-fire, you can run 2 GPU clients for 2x performance on the X2 card?
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

Re: GPU2 in Linux via WINE

Postby shatteredsilicon » Fri Sep 26, 2008 8:51 pm

Reading through this article on Crossfire under Linux is making me think that maybe, just maybe, on the X2 cards Crossfire isn't enabled by default, so maybe it is disablable on the X2 cards. Has anyone got an X2 ATI on a Linux box that they could use to confirm that:
1) Crossfire can be disabled
2) The two GPUs do in fact appear as separate devices with separate PCI IDs?
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

Re: GPU2 in Linux via WINE

Postby Ivoshiee » Fri Sep 26, 2008 9:00 pm

Latest ATI Linux drivers are supposed to enable crossfire control.
Ivoshiee
Site Moderator
 
Posts: 1377
Joined: Sun Dec 02, 2007 12:05 am
Location: Estonia

Re: GPU2 in Linux via WINE

Postby ahu » Fri Sep 26, 2008 9:08 pm

shatteredsilicon wrote:So, as long as internal Crossfire can be disabled, GPUs are addressable separately? I think I may just have to check X driver options. :-)

Can you verify that under 2K3 that doesn't allow _enabling_ x-fire, you can run 2 GPU clients for 2x performance on the X2 card?


I haven't had the time to test properly yet, but yes, it certainly appears so. The recent Sisoft Sandra GPGPU test also confirms this, as the 4870 X2 gets twice the score of a 4870 card. Incidentally, the test doesn't work at all in Vista :wink:

Edit: I'm talking about Brook+/CAL programs generally, the GPU2 client doesn't support this ATM.
Last edited by ahu on Fri Sep 26, 2008 9:39 pm, edited 1 time in total.
ahu
 
Posts: 61
Joined: Sat Jul 19, 2008 7:07 pm
Location: Finland

Re: GPU2 in Linux via WINE

Postby shatteredsilicon » Fri Sep 26, 2008 9:19 pm

I mean, can you run 2 GPU2 client instances on the 2 GPUs on the X2 card as if they were on separate cards?
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

Re: GPU2 in Linux via WINE

Postby ahu » Fri Sep 26, 2008 9:54 pm

Like I said, this just doesn't work with the GPU2 client yet.
ahu
 
Posts: 61
Joined: Sat Jul 19, 2008 7:07 pm
Location: Finland

Re: GPU2 in Linux via WINE

Postby shatteredsilicon » Fri Sep 26, 2008 10:04 pm

What I'm wondering, though, if it might by one of those freakish extenuating circumstances actually work under Linux. If the X2 card appear as 2 separate cards, and CAL can address each one separately, then if the driver doesn't crossfire them, it should work just like any two separate cards.

On a separate X2 related node, does anyone know how much of the VRAM is mapped into the main memory address space? It'd be really cool if all of it was (2x 1GB on 4870X2). One of the real annoyances about nVidia cards for me is that under Linux I'm folding rather than gaming, so would rather like to have 256MB of VRAM per GPU for X + folding, and the other 256MB mappable for other things - such as attaching a MTD device and using it as a swap disk, for example. But that'd be too easy, only 256MB gets mapped into the address space, and there's no way to limit driver's usage unlike with standard X drivers (which isn't useful since they don't support CUDA). Quite frustratng when I have 1GB of VRAM that I could be using for more useful things.
shatteredsilicon
 
Posts: 699
Joined: Tue Jul 08, 2008 2:27 pm

ATI Client via WINE

Postby Tobit » Wed Jan 07, 2009 4:47 pm

Has anyone ever managed to get the ATI GPU2 client to work through WINE on Linux like the NVIDIA client can? I saw a couple posts from people who theorized it might work but is anyone actually doing it?
User avatar
Tobit
 
Posts: 675
Joined: Thu Apr 17, 2008 2:35 pm
Location: Manchester, NH USA

Re: ATI Client via WINE

Postby Terwou » Wed Jan 07, 2009 10:49 pm

I wrote a wrapper but i dont know if it works i dont have the hardware yet
Here is the binary/source if somebody wants to test
Code: Select all
http://terwoutest.payperbyte.be/wine_cal.tar.bz2

Just put amdcalcl.dll.so and amdcalrt.dll.so in /usr/lib/wine/
Terwou
 
Posts: 9
Joined: Wed Jan 07, 2009 10:06 pm

Re: ATI Client via WINE

Postby Tobit » Thu Jan 08, 2009 1:53 am

I'll play with it, thanks.
User avatar
Tobit
 
Posts: 675
Joined: Thu Apr 17, 2008 2:35 pm
Location: Manchester, NH USA

Re: ATI Client via WINE

Postby road-runner » Fri Jan 09, 2009 4:15 am

Let us know if you get it working I would like to try it if I can figure out how to do it...
Image
User avatar
road-runner
 
Posts: 487
Joined: Sun Dec 02, 2007 4:01 am
Location: Houston, Texas

Next

Return to unOfficial Linux GPU (WINE wrapper) (3rd party support)

Who is online

Users browsing this forum: No registered users and 1 guest

cron