Check if CPU feature is included in the TensorFlow binary.
| 43 | |
| 44 | // Check if CPU feature is included in the TensorFlow binary. |
| 45 | void CheckIfFeatureUnused(CPUFeature feature, const string& feature_name, |
| 46 | string& missing_instructions) { |
| 47 | if (TestCPUFeature(feature)) { |
| 48 | missing_instructions.append(" "); |
| 49 | missing_instructions.append(feature_name); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // Raises an error if the binary has been compiled for a CPU feature (like AVX) |
| 54 | // that isn't available on the current machine. It also warns of performance |
no test coverage detected