build: set LLAMA_STATIC_CRT for Windows CUDA (#8901)
Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
@@ -157,6 +157,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
CUDA_COMPUTE_CAP: ${{ matrix.variant == 'cuda' && '80' || '' }}
|
CUDA_COMPUTE_CAP: ${{ matrix.variant == 'cuda' && '80' || '' }}
|
||||||
|
LLAMA_STATIC_CRT: ${{ matrix.variant == 'cuda' && '1' || '' }}
|
||||||
run: |
|
run: |
|
||||||
Write-Output "Building Windows CLI executable..."
|
Write-Output "Building Windows CLI executable..."
|
||||||
if ("${{ matrix.variant }}" -eq "cuda") {
|
if ("${{ matrix.variant }}" -eq "cuda") {
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
CUDA_COMPUTE_CAP: ${{ inputs.windows_variant == 'cuda' && '80' || '' }}
|
CUDA_COMPUTE_CAP: ${{ inputs.windows_variant == 'cuda' && '80' || '' }}
|
||||||
|
LLAMA_STATIC_CRT: ${{ inputs.windows_variant == 'cuda' && '1' || '' }}
|
||||||
run: |
|
run: |
|
||||||
Write-Output "Building Windows executable..."
|
Write-Output "Building Windows executable..."
|
||||||
if ("${{ inputs.windows_variant }}" -eq "cuda") {
|
if ("${{ inputs.windows_variant }}" -eq "cuda") {
|
||||||
|
|||||||
Reference in New Issue
Block a user