Quantcast
Channel: AMD Developer Forums: Message List
Viewing all 4294 articles
Browse latest View live

How can I easily switch between driver versions on Linux?

$
0
0

Using LKM functions (modprobe, rmmod, lsmod, etc) it is easy to install and change kernel-modules. I'd like to be able to easily switch between different versions of fglrx, so I can quickly test out a beta version for OpenCL-improvements, while not taking too many risks.

 

Does anybody have tried this out, or has clues how to do this? Ofcourse after "service lightdm stop" and all those basics about LKM - my question is about managing different versions of the driver, and hot-switching between them without rebooting the machine.


Re: GaussianNoiseGL sample from APP fails with 4.x GL context on Linux

$
0
0

Hm, that doesn't solve it for me at least. I didn't try with the sample, but with a bigger application which has the same issue, and using glXCreateContext didn't change the behaviour there. I'll check again with the sample, but in my application, I'm getting invalid context when trying to map resources from OpenGL to OpenCL with both glXCreateContext and creating the context with attributes. I'll check again on Windows as well, whether the issue is resolved there at least, cause I have a similar problem there (OpenGL/OpenCL interop isn't working, it's the same application in fact.)

ADL_SDK not compile straight "out of the box" under Linux

$
0
0

Hi guys,

 

I tried to compile the adlutil or Sample from ADL_SDK and it doesn't work from scratch.

 

So I replace "wchar_t" with "char" definition in include/adl_structures.h and now it works with the instructions from "Linux build instructions.txt":

gcc main.c -o adlutil -DLINUX -ldl -I ../include/

 

And by the way, the "Linux build instructions.txt" is written with a window encoding, so when you show it in a Linux terminal (cat), it gives this:

 

makefile is for building in Linux environment.
Run �make� to create executable file adlutil
Run �make clean� to remove adlutil ( equivalent with �rm adlutil�)

 


Without the makefile, the easiest way to build this is to run the following command:

 

gcc main.c �o adlutil �DLINUX �ldl �I ../include/

-ldl (all lower cases), -I (capital i)

 

If you could check this kind of small details in release 7 of ADL_SDK before publish the Linux version.

 

Best regards

OpenGL Bug Report: glClear memory leak

$
0
0

Hi!

 

I'm developing a application using OpenGL and i have noticed that i have a memory leak. I tracked it down to glClear using valgrind.

 

More details and a minimal example program can be found at: Bug 1084 – Memory leaks when calling glClear

 

Thanks

 

Jonathan

need help identifying AMD BGA L017D90VC

$
0
0

Hello,

   I am trying (no luck so far) to identify a small (approx 1cm x1cm)BGA chip which looks like memory chip (possibly nvram of some sort) with markings:

AMD 98

L017D90VC

0109APB  H

Any info would be appreciated.

Thanks, JE, Ranaissance

Re: Most efficient way of dividing by power of two

$
0
0

Thanks, guys.

 

What about:

 

int comp = (in >= 0);

int out = ((in >> n) & comp) + ((-in >> n) & ~comp); 

 

No branch, and rounds negative numbers up to zero.

OpenCL 1.2 Hydro benchmark problem

$
0
0

Hello,

 

I'm trying to benchmark the prototype (cooling system) machine (1 x Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz+ 2x AMD FirePro S9000) in our computing centre using Hydro OpenCL benchmark https://github.com/HydroBench/Hydro.

Together with the benchmark's author we've tried to analyze the problem which we guess is not freeing memory and system freeze.

At some point application stalls and GPU becomes unreachable.

'aticonfig' shows percentage usage at the level of 0-3% whereas it should be substantially more

Is there any tool I could monitor MEM usage on the GPUs?

Does anyone have experience with Hydro benchmark on AMD GPUs?

 

The same code is running i.e. on NVidia's K20 smoothly and without problems.

Other OCL tests applications work well.

 

OpenCL version installed is:

 

Device OpenCL C version:                   OpenCL C 1.2
Driver version:                            1214.3 (sse2,avx)

 

 

Best regards,

Damian

Re: New legacy drivers?

$
0
0

Open Source drivers for Radeon are still worse in power management than the (old) fglrx driver. E.g. Acer Aspire One notebook (Radeon 4250) w/ Ubuntu-11.10 and fglrx driver 8.911 consumes ~10W (or even slightly less) on a typical "browse internet" workload. The same notebook w/ Ubuntu up to 14/04 and open source drivers consumes ~18W or even more in a similar load modes. Certainly having half as much "mobility time" upsets me a lot

 

BTW Asus X200CA w/ an Intel graphics card and (obviously) open source drivers gives me less than 8W right out of the box


How Can I Debug/Profile a DirectCompute Shader?

$
0
0

We have a DirectCompute shader that is running extremely slow and are trying to determine the cause.  We cannot use OpenCL because the target is a Windows Store application, which will not pass certification if it links to OpenCL.

 

We've tried the following:

 

1. Profile OpenCL implementation then back-port to DirectCompute.  Unfortunately the OpenCL implementation version runs perfectly fast, but runs slowly once back-ported to DirectCompute.  We suspect this is due to the DirectCompute FXC compiler poorly optimizing the generates IL bytecode, but have no profiling tools available to be sure.

 

2. Examine the produced DirectCompute IL output.  It appears the produced DirectCompute IL may be using too many temporary registers (VGPRs in AMD parlance), but we have not found a way to determine how the AMD driver is translating the DirectCompute IL to AMD IL or device specific byte code.  The AMD driver may be optimizing out some of the temporary registers or there may be some other performance issue.

 

3. We've also tried specifying D3D11_CREATE_DEVICE_DEBUGGABLE to D3D11CreateDevice (which is documented to enable performance counters), however doing so causes D3D11CreateDevice to fail with DXGI_ERROR_UNSUPPORTED on AMD platforms.

 

 

Net: We need some way to either profile the DirectCompute shader to see VGPR, SGPR, and other occupancy telemetry, OR some way to examine the final AMD IL or device specific byte code.

 

 

Please help, thank you!

 

 

Our platform is:

Windows 8.1 64bit w/ Update

Radeon R9 290

CodeXL 1.4.5724.0

APP SDK 2.9

Visual Studio Ultimate 2013 Update 2

AMD Catalyst Version: 13.12

Driver Packaging Version: 13.251-131206a-166151E-ATI

 

 

EDIT: Attached is an image showing the limited CodeXL DirectCompute profiling output:

codexl.png

Re: CL-GL Interop: CL_INVALID_IMAGE_FORMAT_DESCRIPTOR with recent APP SDK or fglrx driver

$
0
0

All recent version still don't work. I'd like to clarify, that the working versions I mentioned:

> (The last working are APP SDK 2.7 and fglrx 13.1)

are still perfectly working with Mesa libGL (not fglrx one). Only AMD delivered an opencl library able to work on Intel CPU with Mesa libGL. But it's sadly no more the case. I hoped AMD could check changes between working/not working versions I've found to fix the issue. Maybe it could be done?

Re: Most efficient way of dividing by power of two

$
0
0

It's incorect:

I guess, the result of  (in >= 0) is either 0 or 1. And it already takes 2 clocks. With the correct comp = i>=0 ? -1 : 0 it costs 3.

in>>n, -(-in>>n) is another 3

And the last instruction is a bit-select: (a & c) | (a & ~c) -> 1 clock. So it's not too optimal.

Re: Blender Cycles(Opencl on AMD GPUS)

Re: OpenCL program crash

$
0
0

Did you run any further tests?  Please share your observations and a simple reproducible test case so that we can investigate the problem.

Re: OpenCL OpenGL interop and VAO problems

Re: How can I easily switch between driver versions on Linux?

$
0
0

Please start a new thread, if you have a new question. The answer to your question is in /usr/share/ati/fglrx-install.log - did you check it?


Re: ConcurrentKernel OpenCLsample problem

$
0
0

I was trying to see what it does on CodeXL and it is not very clear because not all kernels seem to start at the same time and they run kind of in mixed order and lengths. So, how many kernels am I suppose to be able to run in concurrently on Hawaii if the workgroup size is 64? What is the theoretical maximum concurrent execution?

Re: How can I easily switch between driver versions on Linux?

$
0
0

Hi,

 

I'll forward your question to concerned team and get back to you.

 

Regards,

glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, param) not working on Windows 7

$
0
0

I want to use glGetIntegerv with parameter as GL_TEXTURE_FREE_MEMORY_ATI, but all 4 values are coming as 0. The same code if compiled in Windows XP shows proper information.

I have a AMD Radeon HD 7750 graphics card on windows 7 now. I installed the same in another PC with Windows XP 32 bit & it worked fine. Neither in Windows 7 32/64 bit the proper information is available.

The API wglGetGPUInfoAMD gives correct memory info though.

NVidia GPU query APIs work fine on all OS & 32/64 Bit.

 

What mistake I am doing in my APP? Or there is Bug in the APIs for these OS?

Re: How can I easily switch between driver versions on Linux?

$
0
0

AFAIK easiest and fastest way is just let generate installer distribution packages and install them. After you install them you just need restart. You can keep packages somewhere so you can easily switch them.

ACML 6 GA released!

Viewing all 4294 articles
Browse latest View live




Latest Images