Commit Graph

5 Commits

Author SHA1 Message Date
John Buonagurio
cf7d32cfae
[blaze] Add lapack and openmp features (#36786)
Hi, this PR adds two feature flags to Blaze to allow for a minimal
'core' installation:

1. `lapack`: LAPACK/BLAS is currently a default dependency, but its only
required for certain matrix operations and `BLAZE_BLAS_MODE` which is
off by default. See
[CMakeLists.txt#L65-L75](3156507a4b/CMakeLists.txt (lines-65):75).
2. `openmp`: The absence of this flag actually disables SMP support
entirely, so it might be better to just use `smp` instead. Thoughts? I
used `openmp` for consistency with the existing port which explicitly
sets the threading library via `BLAZE_SMP_THREADS=OpenMP`. In any case,
Blaze defaults to OpenMP and removes `BLAZE_SMP_THREADS` from cache when
`BLAZE_SHARED_MEMORY_PARALLELIZATION` is turned off. See
[CMakeLists.txt#L297-L304](3156507a4b/CMakeLists.txt (lines-297):304).

Both of these are still set as default features to ensure compatibility,
though I think the default LAPACK REQUIRED as a reminder to package
maintainers might be a bit excessive! If you're using LAPACK, you
probably aren't relying on Blaze to import it for you. That's probably
more of a discussion for upstream in any case.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
2024-02-21 22:30:03 -08:00
MonicaLiu
e676f024aa
[blaze] Update to 3.8.2 (#31576)
* update blaze

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-05-23 12:59:02 -07:00
autoantwort
9b8ec3ef37
[blaze] update to 3.8.1 (#24235)
* [blaze] fix mac arm build

* Update versions/b-/blaze.json

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2022-06-10 10:25:12 -07:00
Billy O'Neal
b295670e4b
Bulk convert control files. (#19986)
```
function Convert-Control {
    Param($full)
    .\vcpkg.exe format-manifest $full
    $root = $full.Substring(0, $full.Length - 7) # CONTROL
    $new = $root + 'vcpkg.json'
    $content = Get-Content -Raw $new
    $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
    $oldVersion = $asJson['port-version']
    if ($null -eq $oldVersion) {
        $oldVersionFull = $asJson['version-string']
        Write-Host "Got version $oldVersionFull"
        $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
        if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
            $newFullVersion = [string]$match.Groups[1].Value
            $oldVersion = [int]$match.Groups[2].Value
            Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
            $newVersion = $oldVersion + 1
            $asJson['version-string'] = $newFullVersion
            Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
        } else {
            Write-Host "No previous version for $full -- setting 1"
            $newVersion = 1
        }
    } else {
        $newVersion = [int]$oldVersion + 1
        Write-Host "New version for $full : $newVersion"
    }

    $asJson['port-version'] = $newVersion

    $content = ConvertTo-Json $asJson -Depth 100
    Set-Content -Path $new -Value $content
    .\vcpkg.exe format-manifest $new
}

Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
    Convert-Control $_.FullName
}

git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
nicole mazzuca
68a74950d0
[vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00