add gfx900:xnack- and workflow

This commit is contained in:
likelovewant
2024-12-18 18:54:27 +08:00
parent d46d05d636
commit 08b8916a45
3 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,59 @@
name: Upload Release Assets
on:
release:
types: [created]
jobs:
upload-release-assets:
runs-on: windows
steps:
- name: Checkout code
uses: actions/checkout@v2
# This step checks out the code from the repository to the runner.
# Assuming you already have compilation and packaging steps that generate the following files:
# dist/ollama-windows-amd64.7z
# dist/OllamaSetup.exe
- name: Get the version
id: get_version
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
# This step extracts the version number from the tag name.
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Description of the release goes here.
# draft: false (Uncomment if you want to create a non-draft release)
# prerelease: false (Uncomment if you want to create a non-prerelease version)
# This step creates a new release on GitHub.
- name: Upload ollama-windows-amd64.7z Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/ollama-windows-amd64.7z
asset_name: ollama-windows-amd64.7z
asset_content_type: application/x-7z-compressed
# This step uploads the .7z file as a release asset.
- name: Upload OllamaSetup.exe Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/OllamaSetup.exe
asset_name: OllamaSetup.exe
asset_content_type: application/vnd.microsoft.portable-executable
# This step uploads the .exe file as a release asset.

View File

@@ -26,7 +26,7 @@ Please download from ollama [official](https://ollama.com/download/OllamaSetup.e
Example extra list add on this repo.
```
"gfx803" "gfx902" gfx906:xnack- "gfx90c:xnack-" "gfx1010:xnack-" "gfx1011" "gfx1012:xnack-" "gfx1031" "gfx1032" "gfx1034" "gfx1035" "gfx1036" "gfx1103" "gfx1150(expertimental)"...
"gfx803" "gfx900:xnack-" "gfx902" gfx906:xnack- "gfx90c:xnack-" "gfx1010:xnack-" "gfx1011" "gfx1012:xnack-" "gfx1031" "gfx1032" "gfx1034" "gfx1035" "gfx1036" "gfx1103" "gfx1150(expertimental)"...
```
Please follow the [wiki](https://github.com/likelovewant/ollama-for-amd/wiki) guide to build or use the pre-release version.

View File

@@ -6,7 +6,7 @@
include make/common-defs.make
include make/rocm-defs.make
HIP_ARCHS_COMMON := gfx803 gfx902 gfx906:xnack- gfx90c:xnack- gfx1010:xnack- gfx1011 gfx1012:xnack- gfx1030 gfx1031 gfx1032 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1103 gfx1150
HIP_ARCHS_COMMON := gfx803 gfx900:xnack- gfx902 gfx906:xnack- gfx90c:xnack- gfx1010:xnack- gfx1011 gfx1012:xnack- gfx1030 gfx1031 gfx1032 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1103 gfx1150
HIP_ARCHS_LINUX := gfx908:xnack- gfx90a:xnack+ gfx90a:xnack-