MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / get_device_version

Method get_device_version

python/paddle_serving_server/server.py:554–572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

552 return False
553
554 def get_device_version(self):
555 avx_flag = False
556 avx_support = self.check_avx()
557 if avx_support:
558 avx_flag = True
559 self.use_mkl(True)
560 mkl_flag = self.mkl_flag
561 if avx_flag:
562 if mkl_flag:
563 device_version = "cpu-avx-mkl"
564 else:
565 device_version = "cpu-avx-openblas"
566 else:
567 if mkl_flag:
568 print(
569 "Your CPU does not support AVX, server will running with noavx-openblas mode."
570 )
571 device_version = "cpu-noavx-openblas"
572 return device_version
573
574 def get_serving_bin_name(self):
575 if device_type == "0":

Callers 1

get_serving_bin_nameMethod · 0.95

Calls 2

check_avxMethod · 0.95
use_mklMethod · 0.95

Tested by

no test coverage detected