Skip to content

Commit

Permalink
spit number of platforms too
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeterman committed Aug 29, 2016
1 parent 22aed1f commit 8390703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ void initContexts(){
typedef std::vector< viennacl::ocl::platform > platforms_type;
platforms_type platforms = viennacl::ocl::get_platforms();

std::cout << "Number of platforms: " << platforms.size() << std::endl;

for(unsigned int plat_idx=0; plat_idx < platforms.size(); plat_idx++){

std::vector< viennacl::ocl::device > devices;
Expand Down

0 comments on commit 8390703

Please sign in to comment.