clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
839 stars 240 forks source link

Generalize the tuning code in tools/tune/tune.c #58

Open pavanky opened 9 years ago

pavanky commented 9 years ago

Right now the code works as expected only if the platform is "Advanced Micro Devices, Inc." AND the platform has a GPU.

Generalize this tuning code to work for a given (platform, device) combination.

pavanky commented 9 years ago

I assigned it to myself as I have begun some work on this already. I am trying to add the following parameters.

tune --list

This will list all the available platforms and devices available on the machine.

tune --platform pid --device id

This will for the specified platform and device. When an option is not provided, it will assume the id is 0.