mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	 1614ce12fa
			
		
	
	
		1614ce12fa
		
			
		
	
	
	
	
		
			
			- Split logic in several dockers - runtime: wasi-nn-cpu and wasi-nn- Nvidia-gpu. - compilation: wasi-nn-compile. Prepare the testing wasm and generates the TFLites. - Implement GPU support for TFLite with Opencl.
		
			
				
	
	
		
			24 lines
		
	
	
		
			823 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			823 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Copyright (C) 2019 Intel Corporation.  All rights reserved.
 | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
| 
 | |
| FROM ubuntu:20.04
 | |
| 
 | |
| ENV DEBIAN_FRONTEND=noninteractive
 | |
| 
 | |
| RUN apt-get update && apt-get install -y \
 | |
|     cmake build-essential git wget python3.10 python3-pip
 | |
| 
 | |
| ARG WASI_SDK_VER=19
 | |
| RUN wget -c --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER}/wasi-sdk-${WASI_SDK_VER}.0-linux.tar.gz -P /opt \
 | |
|   && tar xf /opt/wasi-sdk-${WASI_SDK_VER}.0-linux.tar.gz -C /opt \
 | |
|   && ln -fs /opt/wasi-sdk-${WASI_SDK_VER}.0 /opt/wasi-sdk \
 | |
|   && rm /opt/wasi-sdk-${WASI_SDK_VER}.0-linux.tar.gz
 | |
| 
 | |
| WORKDIR /wasi-nn/test
 | |
| 
 | |
| COPY core/iwasm/libraries/wasi-nn/test/requirements.txt .
 | |
| 
 | |
| RUN pip3 install -r requirements.txt && rm requirements.txt
 | |
| 
 | |
| ENTRYPOINT [ "bash", "./build.sh" ]
 |