mirror of
https://github.com/ROCm/ROCm.git
synced 2026-02-12 07:25:22 -05:00
Compare commits
1 Commits
docs/7.11.
...
add-fmtlib
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bcc1aa180 |
67
.azuredevops/dependencies/fmtlib.yml
Normal file
67
.azuredevops/dependencies/fmtlib.yml
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
parameters:
|
||||||
|
- name: checkoutRepo
|
||||||
|
type: string
|
||||||
|
default: 'self'
|
||||||
|
- name: checkoutRef
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
- name: fmtlibVersion
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
- name: aptPackages
|
||||||
|
type: object
|
||||||
|
default:
|
||||||
|
- cmake
|
||||||
|
- git
|
||||||
|
- ninja-build
|
||||||
|
- libfmt-dev
|
||||||
|
|
||||||
|
- name: jobMatrix
|
||||||
|
type: object
|
||||||
|
default:
|
||||||
|
buildJobs:
|
||||||
|
- { os: ubuntu2204, packageManager: apt}
|
||||||
|
- { os: almalinux8, packageManager: dnf}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- ${{ each job in parameters.jobMatrix.buildJobs }}:
|
||||||
|
- job: fmtlib_${{ job.os }}
|
||||||
|
variables:
|
||||||
|
- group: common
|
||||||
|
- template: /.azuredevops/variables-global.yml
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-22.04'
|
||||||
|
${{ if eq(job.os, 'almalinux8') }}:
|
||||||
|
container:
|
||||||
|
image: rocmexternalcicd.azurecr.io/manylinux228:latest
|
||||||
|
endpoint: ContainerService3
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- checkout: none
|
||||||
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
||||||
|
parameters:
|
||||||
|
aptPackages: ${{ parameters.aptPackages }}
|
||||||
|
packageManager: ${{ job.packageManager }}
|
||||||
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
||||||
|
- task: Bash@3
|
||||||
|
displayName: Clone fmtlib ${{ parameters.fmtlibVersion }}
|
||||||
|
inputs:
|
||||||
|
targetType: inline
|
||||||
|
script: git clone https://github.com/fmtlib/fmt.git -b ${{ parameters.fmtlibVersion }}
|
||||||
|
workingDirectory: $(Agent.BuildDirectory)
|
||||||
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
||||||
|
parameters:
|
||||||
|
os: ${{ job.os }}
|
||||||
|
cmakeBuildDir: $(Agent.BuildDirectory)/fmt/build
|
||||||
|
cmakeSourceDir: $(Agent.BuildDirectory)/fmt
|
||||||
|
useAmdclang: false
|
||||||
|
extraBuildFlags: >-
|
||||||
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
|
-DFMT_SYSTEM_HEADERS=ON
|
||||||
|
-DFMT_INSTALL=ON
|
||||||
|
-DFMT_TEST=OFF
|
||||||
|
-GNinja
|
||||||
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
||||||
|
parameters:
|
||||||
|
os: ${{ job.os }}
|
||||||
@@ -5,20 +5,22 @@ parameters:
|
|||||||
- name: checkoutRef
|
- name: checkoutRef
|
||||||
type: string
|
type: string
|
||||||
default: ''
|
default: ''
|
||||||
|
- name: spdlogVersion
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
- name: aptPackages
|
- name: aptPackages
|
||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
- cmake
|
- cmake
|
||||||
- git
|
- git
|
||||||
- ninja-build
|
- ninja-build
|
||||||
- libfmt-dev
|
|
||||||
|
|
||||||
- name: jobMatrix
|
- name: jobMatrix
|
||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
buildJobs:
|
buildJobs:
|
||||||
- { os: ubuntu2204, packageManager: apt, spdlogVersion: "v1.9.2"}
|
- { os: ubuntu2204, packageManager: apt}
|
||||||
- { os: almalinux8, packageManager: dnf, spdlogVersion: "v1.5.0"}
|
- { os: almalinux8, packageManager: dnf}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- ${{ each job in parameters.jobMatrix.buildJobs }}:
|
- ${{ each job in parameters.jobMatrix.buildJobs }}:
|
||||||
@@ -41,11 +43,15 @@ jobs:
|
|||||||
aptPackages: ${{ parameters.aptPackages }}
|
aptPackages: ${{ parameters.aptPackages }}
|
||||||
packageManager: ${{ job.packageManager }}
|
packageManager: ${{ job.packageManager }}
|
||||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
||||||
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-vendor.yml
|
||||||
|
parameters:
|
||||||
|
dependencyList:
|
||||||
|
- fmtlib
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
displayName: Clone spdlog ${{ job.spdlogVersion }}
|
displayName: Clone spdlog ${{ parameters.spdlogVersion }}
|
||||||
inputs:
|
inputs:
|
||||||
targetType: inline
|
targetType: inline
|
||||||
script: git clone https://github.com/gabime/spdlog.git -b ${{ job.spdlogVersion }}
|
script: git clone https://github.com/gabime/spdlog.git -b ${{ parameters.spdlogVersion }}
|
||||||
workingDirectory: $(Agent.BuildDirectory)
|
workingDirectory: $(Agent.BuildDirectory)
|
||||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
||||||
parameters:
|
parameters:
|
||||||
@@ -54,6 +60,7 @@ jobs:
|
|||||||
cmakeSourceDir: $(Agent.BuildDirectory)/spdlog
|
cmakeSourceDir: $(Agent.BuildDirectory)/spdlog
|
||||||
useAmdclang: false
|
useAmdclang: false
|
||||||
extraBuildFlags: >-
|
extraBuildFlags: >-
|
||||||
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/vendor
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
-DSPDLOG_USE_STD_FORMAT=OFF
|
-DSPDLOG_USE_STD_FORMAT=OFF
|
||||||
-DSPDLOG_FMT_EXTERNAL_HO=ON
|
-DSPDLOG_FMT_EXTERNAL_HO=ON
|
||||||
|
|||||||
23
.azuredevops/tag-builds/fmtlib.yml
Normal file
23
.azuredevops/tag-builds/fmtlib.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
variables:
|
||||||
|
- group: common
|
||||||
|
- template: /.azuredevops/variables-global.yml
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: fmtlibVersion
|
||||||
|
type: string
|
||||||
|
default: "11.1.3"
|
||||||
|
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: pipelines_repo
|
||||||
|
type: github
|
||||||
|
endpoint: ROCm
|
||||||
|
name: ROCm/ROCm
|
||||||
|
|
||||||
|
trigger: none
|
||||||
|
pr: none
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- template: ${{ variables.CI_DEPENDENCIES_PATH }}/fmtlib.yml
|
||||||
|
parameters:
|
||||||
|
fmtlibVersion: ${{ parameters.fmtlibVersion }}
|
||||||
@@ -2,6 +2,11 @@ variables:
|
|||||||
- group: common
|
- group: common
|
||||||
- template: /.azuredevops/variables-global.yml
|
- template: /.azuredevops/variables-global.yml
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: fmtlibVersion
|
||||||
|
type: string
|
||||||
|
default: "v1.15.1"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
- repository: pipelines_repo
|
- repository: pipelines_repo
|
||||||
@@ -13,4 +18,6 @@ trigger: none
|
|||||||
pr: none
|
pr: none
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: ${{ variables.CI_DEPENDENCIES_PATH }}/spdlog.yml
|
- template: ${{ variables.CI_DEPENDENCIES_PATH }}/fmtlib.yml
|
||||||
|
parameters:
|
||||||
|
fmtlibVersion: ${{ parameters.fmtlibVersion }}
|
||||||
|
|||||||
@@ -8,10 +8,12 @@ parameters:
|
|||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
boost: 250
|
boost: 250
|
||||||
|
fmtlib: 341
|
||||||
grpc: 72
|
grpc: 72
|
||||||
gtest: 73
|
gtest: 73
|
||||||
half560: 68
|
half560: 68
|
||||||
lapack: 69
|
lapack: 69
|
||||||
|
spdlog: 340
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- ${{ each dependency in parameters.dependencyList }}:
|
- ${{ each dependency in parameters.dependencyList }}:
|
||||||
|
|||||||
Reference in New Issue
Block a user