Skip to content

Commit

Permalink
synchronize doc for v0.2.0 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
msftsw authored and ghostplant committed Apr 3, 2021
1 parent f911561 commit e44a57d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ Before running `make` command in antares root directory, you need to ensure the

`Requirement: run bash command "make install_host" in antares root directory beforehand`

- Predependencies for backend `c-ocl_android`:

`Requirement: Ubuntu >= 18.04`

`Requirement: Install package "adb", connect to rooted Android device and ensure command "adb shell su -c 'ls /sdcard'" works`

`Requirement: run bash command "make install_host" in antares root directory beforehand`

- Predependencies for backend `c-rocm`, `c-ocl_amdgpu`:

`Requirement: Ubuntu >= 18.04`
Expand Down
7 changes: 4 additions & 3 deletions backends/c-hlsl_win64/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
local_dll_path = os.environ["ANTARES_DRIVER_PATH"]

if not os.path.exists(f'{local_dll_path}/dxcompiler.dll'):
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/antares_hlsl_v0.2dev3_x64.dll -o {local_dll_path}/antares_hlsl_v0.2_x64.dll')
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/dxil.dll -o {local_dll_path}/dxil.dll')
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/dxcompiler.dll -o {local_dll_path}/dxcompiler.dll')
print('\nDownload Microsoft DirectX Shader Compiler 6 ...\n')
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/antares_hlsl_v0.2_x64.dll -o {local_dll_path}/antares_hlsl_v0.2_x64.dll')
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/dxil.dll -o {local_dll_path}/dxil.dll')
os.system(f'curl -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/dxcompiler.dll -o {local_dll_path}/dxcompiler.dll')

def get_execution_parallism():
return 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ cd %~dp0
if exist dxcompiler.dll (
echo Using local dependencies ..
) else (
echo Downloading dependencies ..
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/antares_hlsl_v0.2dev3_x64.dll -o antares_hlsl_v0.2_x64.dll
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/dxcompiler.dll -o dxcompiler.dll
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.1.0/dxil.dll -o dxil.dll
echo Downloading dependencies: Microsoft DirectX Shader Compiler 6 ..
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/antares_hlsl_v0.2_x64.dll -o antares_hlsl_v0.2_x64.dll
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/dxcompiler.dll -o dxcompiler.dll
curl.exe -Ls https://github.com/microsoft/antares/releases/download/v0.2.0/dxil.dll -o dxil.dll

if errorlevel 1 (
echo "`curl.exe` command not found in Windows PATH. Failed to download dependencies."
Expand Down

0 comments on commit e44a57d

Please sign in to comment.