vetter / shoc

The SHOC Benchmark Suite
Other
243 stars 104 forks source link

MIC branch has rudimentary device info class #22

Closed rothpc closed 10 years ago

rothpc commented 11 years ago

The MIC branch has a very rudimentary implementation of the device info class. It does not provide device names via driver script, and only rudimentary device names (e.g., "MIC 0") in response to the device info command line flag supported by each benchmark.

rothpc commented 11 years ago

The implementation uses Intel's extended OpenMP API (e.g., omp_get_max_threads_target instead of just omp_get_max_threads) and the offload API to get information about devices. It might be possible to do better by parsing the output of lspci, but that seems fragile and is very specific to Linux.

jyoung3131 commented 10 years ago

This issue should now be fixed. We've added as much relevant information as possible using the libmicmgmt API.

Commit: https://github.com/vetter/shoc/commit/49fc1261f241309e85fd4da988b739f994779eb4