Skip to content

Commit

Permalink
fix test due to cloning during build
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Jan 23, 2025
1 parent aea0128 commit f1fac26
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ schema_version: 1
context:
name: katago
version: 1.15.3
cuda: ${{ "true" if cuda_compiler_version != "None" else "false" }}
cuda: ${{ true if cuda_compiler_version != "None" else false }}
cuda_build_string: cuda_${{ cuda_compiler_version | version_to_buildstring }}
string_prefix: ${{ cuda_build_string if cuda == "true" else "cpu_" }}
string_prefix: ${{ cuda_build_string if cuda else "cpu_" }}

package:
name: ${{ name|lower }}
Expand All @@ -23,19 +23,19 @@ package:
build:
number: 1
skip:
# - cuda == "true" and win
- cuda == "true" and match(cuda_compiler_version, "<12")
# - cuda and win
- cuda and match(cuda_compiler_version, "<12")
string: ${{ string_prefix }}h${{ hash }}_${{ build_number }}
variant:
use_keys:
# use cuda from the variant config, e.g. to build multiple CUDA variants
- ${{ "cuda" if cuda == "true" }}
- ${{ "cuda" if cuda }}
# this will down-prioritize the cuda variant versus other variants of the package
down_prioritize_variant: ${{ 1 if cuda == "true" else 0 }}
down_prioritize_variant: ${{ 1 if else 0 }}

requirements:
build:
- if: cuda == "true"
- if: cuda
then:
- ${{ compiler('cuda') }}

Expand All @@ -47,7 +47,7 @@ requirements:
- curl
- git
host:
- if: cuda == "true"
- if: cuda
then:
- cuda-version ==${{ cuda_compiler_version }}
- libcublas-dev
Expand All @@ -64,14 +64,19 @@ requirements:
tests:
- files:
source:
- cpp/tests/
# NOTE: remove subfolder once we dont git clone during build
- katago/cpp/tests/
script:

# NOTE: remove subfolder once we dont git clone during build
- cd katago

- katago
- katago version

# fails some accuracy tests on osx
- ${{ "katago runtests" if not osx }}
- ${{ "katago runnnlayertests" if cuda != "true" }}
- ${{ "katago runnnlayertests" if not cuda }}

# run some tests that hopefully exercise the distributed code a bit as well
# (based on searching "distributed" under cpp/tests and running the right portion)
Expand All @@ -81,13 +86,13 @@ tests:
- cd cpp/
- mkdir tests/scratch
- katago runoutputtests
- ${{ "katago runtinynntests tests/scratch 1.0" if cuda != "true" }}
- ${{ "katago runtinynntests tests/scratch 1.0" if not cuda }}

- if: win
then:
- cd cpp/
- mkdir tests\scratch
- - ${{ "katago runtinynntests tests/scratch 1.0" if cuda != "true" }}
- - ${{ "katago runtinynntests tests/scratch 1.0" if not cuda }}

about:
summary: GTP engine and self-play learning in Go
Expand Down

0 comments on commit f1fac26

Please sign in to comment.