tilework-hip 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +81 -0
- data/ext/tilework/hip/bridge.cpp +1067 -0
- data/ext/tilework/hip/extconf.rb +66 -0
- data/ext/tilework/hip/gpu_bridge.c +840 -0
- data/lib/tilework/backend/hip.rb +21 -0
- metadata +65 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Activates the HIP backend when `Tilework.backend = :hip` is selected.
|
|
4
|
+
begin
|
|
5
|
+
require "tilework/hip/bridge"
|
|
6
|
+
rescue LoadError => e
|
|
7
|
+
raise Tilework::DeviceError,
|
|
8
|
+
"failed to load the HIP bridge (is the native extension built? run `rake compile` " \
|
|
9
|
+
"in the tilework-hip gem; requires ROCm — set ROCM_HOME): #{e.message}"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
Tilework.register_backend(:hip, Tilework::HIPBridge)
|
|
13
|
+
|
|
14
|
+
module Tilework::HIPBridge
|
|
15
|
+
def self.gemm_library_name = :hipblas
|
|
16
|
+
def self.random_library_name = :hiprand
|
|
17
|
+
def self.fft_library_name = :hipfft
|
|
18
|
+
def self.conv_library_name = :miopen
|
|
19
|
+
def self.gemm_supported_dtypes = %i[float32 float16 bfloat16]
|
|
20
|
+
def self.conv_supported_dtypes = %i[float32 float16 bfloat16]
|
|
21
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tilework-hip
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.18.4
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kihaya Sugiura
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: tilework
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.18.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.18.0
|
|
27
|
+
description: 'The HIP backend gem for tilework: HIP Runtime + HIPRTC native bridge.'
|
|
28
|
+
email:
|
|
29
|
+
- kihayas@gmail.com
|
|
30
|
+
executables: []
|
|
31
|
+
extensions:
|
|
32
|
+
- ext/tilework/hip/extconf.rb
|
|
33
|
+
extra_rdoc_files: []
|
|
34
|
+
files:
|
|
35
|
+
- LICENSE
|
|
36
|
+
- README.md
|
|
37
|
+
- ext/tilework/hip/bridge.cpp
|
|
38
|
+
- ext/tilework/hip/extconf.rb
|
|
39
|
+
- ext/tilework/hip/gpu_bridge.c
|
|
40
|
+
- lib/tilework/backend/hip.rb
|
|
41
|
+
homepage: https://github.com/kihaya/tilework
|
|
42
|
+
licenses:
|
|
43
|
+
- MIT
|
|
44
|
+
metadata:
|
|
45
|
+
rubygems_mfa_required: 'true'
|
|
46
|
+
post_install_message:
|
|
47
|
+
rdoc_options: []
|
|
48
|
+
require_paths:
|
|
49
|
+
- lib
|
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.1'
|
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
requirements: []
|
|
61
|
+
rubygems_version: 3.5.22
|
|
62
|
+
signing_key:
|
|
63
|
+
specification_version: 4
|
|
64
|
+
summary: HIP backend for tilework
|
|
65
|
+
test_files: []
|