Page 1 of 5

GPU2 in Linux via WINE

PostPosted: Thu Sep 25, 2008 12:21 am
by shatteredsilicon
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.

Re: GPU2 in Linux via WINE

PostPosted: Thu Sep 25, 2008 9:56 am
by toTOW
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).

Re: GPU2 in Linux via WINE

PostPosted: Thu Sep 25, 2008 11:15 am
by shatteredsilicon
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?

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 4:24 pm
by ahu
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...

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 5:51 pm
by shatteredsilicon
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?

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 8:51 pm
by shatteredsilicon
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?

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 9:00 pm
by Ivoshiee
Latest ATI Linux drivers are supposed to enable crossfire control.

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 9:08 pm
by ahu
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.

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 9:19 pm
by shatteredsilicon
I mean, can you run 2 GPU2 client instances on the 2 GPUs on the X2 card as if they were on separate cards?

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 9:54 pm
by ahu
Like I said, this just doesn't work with the GPU2 client yet.

Re: GPU2 in Linux via WINE

PostPosted: Fri Sep 26, 2008 10:04 pm
by shatteredsilicon
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.

ATI Client via WINE

PostPosted: Wed Jan 07, 2009 4:47 pm
by Tobit
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?

Re: ATI Client via WINE

PostPosted: Wed Jan 07, 2009 10:49 pm
by Terwou
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/

Re: ATI Client via WINE

PostPosted: Thu Jan 08, 2009 1:53 am
by Tobit
I'll play with it, thanks.

Re: ATI Client via WINE

PostPosted: Fri Jan 09, 2009 4:15 am
by road-runner
Let us know if you get it working I would like to try it if I can figure out how to do it...