[FIX] Remove static variables in device existence check
authorDongju Chae <dongju.chae@samsung.com>
Tue, 11 Jan 2022 09:31:45 +0000 (18:31 +0900)
committer채동주/NPU Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Wed, 12 Jan 2022 01:29:38 +0000 (10:29 +0900)
commit429da1ea15a7ad88423c637a3139f702ad779be5
treeeea491a9de29920b851d1cc77caa4d248bf7d43f
parent8a59009187d724d7a9f6e0bb510e3de532861db3
[FIX] Remove static variables in device existence check

This patch removes static variables when checking the number
of available devices. It possibly makes some race conditions.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/npu/NPUdrvAPI.h
src/core/npu/NPUdrvAPI_triv2.cc