Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cublasmp #27602

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
29 changes: 14 additions & 15 deletions broken-recipes/libcal/meta.yaml → recipes/libcal/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% set version = "0.4.3.36" %}
{% set lib_version = version.split(".")[0]+"."+version.split(".")[1]+"."+version.split(".")[2]+".0" %}
{% set platform = "placeholder" %} # [not linux]
{% set platform = "placeholder" %} # [not (linux64 or aarch64)]
{% set platform = "linux-x86_64" %} # [linux64]
{% set platform = "linux-sbsa" %} # [aarch64]
{% set extension = "tar.xz" %}

{% set cuda_compiler_version = cuda_compiler_version|default("None") %}
{% set cuda_major = environ.get("cuda_compiler_version", "11.2").split(".")[0] %}

package:
name: libcal
name: libcal-split
version: {{ version }}

source:
Expand All @@ -22,41 +23,39 @@ build:
number: 0
skip: true # [cuda_compiler_version in (None, "None")]
skip: true # [not (linux64 or aarch64)]
missing_dso_whitelist:
- "*/libcuda.so.*"
script:
- cp -rv include $PREFIX
- cp -rv lib $PREFIX
- mkdir -p $PREFIX/share/libcal

test:
commands:
- test -L $PREFIX/lib/libcal.so.0
- test -f $PREFIX/lib/libcal.so.{{ lib_version }}

outputs:
- name: libcal
build:
run_exports:
- {{ pin_subpackage("libcal", max_pin="x") }}
missing_dso_whitelist:
- "*/libcuda.so.*"
files:
- lib/libcal.so.*
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler_version != "None"]
- {{ compiler('cuda') }}
- arm-variant * {{ arm_variant_type }} # [aarch64]
- {{ stdlib("c") }}
host:
- cuda-version {{ cuda_compiler_version }} # [cuda_compiler_version != "None"]
- cuda-version {{ cuda_compiler_version }}
- ucc
run:
- {{ pin_compatible("cuda-version", max_pin="x") }} # [cuda_compiler_version != "None"]
- {{ pin_compatible("cuda-version", max_pin="x") }}
- ucc
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]
# Tests are defined at the top level, due to package/output name conflicts.
test:
commands:
- test -L $PREFIX/lib/libcal.so.0
- test -f $PREFIX/lib/libcal.so.{{ lib_version }}
about:
home: https://docs.nvidia.com/cuda/cublasmp/
license: LicenseRef-NVIDIA-End-User-License-Agreement
Expand All @@ -78,9 +77,9 @@ outputs:
- include/cal.h
requirements:
host:
- cuda-version {{ cuda_compiler_version }} # [cuda_compiler_version != "None"]
- cuda-version {{ cuda_compiler_version }}
run:
- {{ pin_compatible("cuda-version", max_pin="x") }} # [cuda_compiler_version != "None"]
- {{ pin_compatible("cuda-version", max_pin="x") }}
- {{ pin_subpackage("libcal", exact=True) }}
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% set version = "0.2.1.427" %}
{% set lib_version = version.split(".")[0]+"."+version.split(".")[1]+"."+version.split(".")[2] %}
{% set platform = "placeholder" %} # [not linux]
{% set platform = "placeholder" %} # [not (linux64 or aarch64)]
{% set platform = "linux-x86_64" %} # [linux64]
{% set platform = "linux-sbsa" %} # [aarch64]
{% set extension = "tar.xz" %}

{% set cuda_compiler_version = cuda_compiler_version|default("None") %}
{% set cuda_major = environ.get("cuda_compiler_version", "11.2").split(".")[0] %}

package:
name: libcublasmp
name: libcublasmp-split
version: {{ version }}

source:
Expand All @@ -26,11 +27,6 @@ build:
- cp -rv include $PREFIX
- cp -rv lib $PREFIX

test:
commands:
- test -L $PREFIX/lib/libcublasmp.so.0
- test -f $PREFIX/lib/libcublasmp.so.{{ lib_version }}

outputs:
- name: libcublasmp
build:
Expand All @@ -42,22 +38,25 @@ outputs:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler_version != "None"]
- {{ compiler('cuda') }}
- arm-variant * {{ arm_variant_type }} # [aarch64]
- {{ stdlib("c") }}
host:
- cuda-version {{ cuda_compiler_version }} # [cuda_compiler_version != "None"]
- cuda-version {{ cuda_compiler_version }}
- libcublas # [(cuda_compiler_version or "").startswith("12")]
- cudatoolkit # [(cuda_compiler_version or "").startswith("11")]
- libcal 0.4.3.*
run:
- {{ pin_compatible("cuda-version", max_pin="x") }} # [cuda_compiler_version != "None"]
- {{ pin_compatible("cuda-version", max_pin="x") }}
- libcublas # [(cuda_compiler_version or "").startswith("12")]
- cudatoolkit # [(cuda_compiler_version or "").startswith("11")]
- {{ pin_compatible("libcal", exact=True) }}
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]
# Tests are defined at the top level, due to package/output name conflicts.
test:
commands:
- test -L $PREFIX/lib/libcublasmp.so.0
- test -f $PREFIX/lib/libcublasmp.so.{{ lib_version }}
about:
home: https://docs.nvidia.com/cuda/cublasmp/
license: LicenseRef-NVIDIA-End-User-License-Agreement
Expand All @@ -79,7 +78,7 @@ outputs:
- include/cublasmp.h
requirements:
host:
- cuda-version {{ cuda_compiler_version }} # [cuda_compiler_version != "None"]
- cuda-version {{ cuda_compiler_version }}
run:
- {{ pin_compatible("cuda-version", max_pin="x") }}
- {{ pin_subpackage("libcublasmp", exact=True) }}
Expand Down
Loading