viennacl / viennacl-dev

Developer repository for ViennaCL. Visit http://viennacl.sourceforge.net/ for the latest releases.
Other
281 stars 89 forks source link

add platform select to dense_blas #242

Closed marty1885 closed 7 years ago

marty1885 commented 7 years ago

Add the ability to select which OpenCL platform user wants to run benchmark on form the command line. So user can benchmark their device when they have multiple platform.

karlrupp commented 7 years ago

Thanks! Would you mind replacing stoi with atoi so that things also work with C++03?

marty1885 commented 7 years ago

@karlrupp Sure. I use strtol instead of atoi. atoi is dangerous that it does not check if the user input is valid. I also made it prints a usage message then exit if invalid parameter is provided(not number/ too many).

karlrupp commented 7 years ago

Thank you!