Commit graph

362 commits

Author SHA1 Message Date
Andrzej Janik
5ec18f14a1 HIP conversion part #1 2021-08-27 23:04:52 +00:00
Andrzej Janik
4ae7feb93a Start converting host code to HIP 2021-08-27 17:27:48 +00:00
Andrzej Janik
9631a8d242 Don't wait on a blocking event 2021-08-08 17:43:14 +02:00
Andrzej Janik
e2432d0df1 Improve AMD compatibility 2021-08-08 14:26:56 +02:00
Andrzej Janik
043172bd9b Additional options to clang 2021-08-08 02:42:38 +02:00
Andrzej Janik
5969e59aae Explicitly mark input to AMD as bitcode 2021-08-08 02:35:17 +02:00
Andrzej Janik
4b4ba90219 Persist AMD kernels for later debug 2021-08-07 18:10:53 +02:00
Andrzej Janik
44decaf396 Use raw interop for building programs 2021-08-07 16:53:26 +02:00
Andrzej Janik
407664600a Hack to read clang output 2021-08-07 16:16:59 +02:00
Andrzej Janik
3ce6aee65d Try seeking before reading 2021-08-07 16:06:15 +02:00
Andrzej Janik
3070d983ab Take path to llvm-spirv from environment 2021-08-07 15:29:19 +02:00
Andrzej Janik
fefdd528d5 Handle xnack suffix in device name 2021-08-07 15:21:45 +02:00
Andrzej Janik
20c9aa4f02 Fix warnings 2021-08-07 15:13:33 +02:00
Andrzej Janik
8d79c5d0f8 Addd missing file 2021-08-07 15:11:18 +02:00
Andrzej Janik
a610136e17 Remove L0 from nvml 2021-08-07 15:11:08 +02:00
Andrzej Janik
479014a783 Wire up AMD compilation 2021-08-06 13:19:55 +02:00
Andrzej Janik
5bfc2a56b9 Remove all use of L0 2021-08-06 02:15:57 +02:00
Andrzej Janik
becda31524 Convert OpenCL host code to SVM 2021-08-04 19:34:56 +02:00
Andrzej Janik
638786b0ec Hack enough functionality that AMD GPU code builds 2021-08-03 00:22:47 +02:00
Andrzej Janik
b4de21fbc5 Use calls to OpenCL builtins when translating sregs, do SPIRV->LLVM conversion on every build 2021-08-02 01:04:05 +02:00
Andrzej Janik
4a71fefb8a Change codegen for mul.wide 2021-08-01 19:20:08 +02:00
Andrzej Janik
8f68287b18 Tune generated code, add a workaround for geekbench 2021-07-25 15:19:43 +02:00
Andrzej Janik
9d4f26bd07 Finish converting to OpenCL 2021-07-22 00:20:33 +02:00
Andrzej Janik
3d2024bf62 Start converting to OpenCL 2021-07-21 01:46:50 +02:00
Andrzej Janik
58fb8a234c Synchronize through barrier 2021-07-06 00:16:46 +02:00
Andrzej Janik
2c6bee4955 Fix overzealus check 2021-07-05 01:14:46 +02:00
Andrzej Janik
1897d33916 Fix typo 2021-07-05 01:04:19 +02:00
Andrzej Janik
5b593ec185 Implement stream-wide event reuse 2021-07-04 19:06:37 +02:00
Andrzej Janik
ce25035051 Use immediate command lists 2021-07-04 16:46:07 +02:00
Andrzej Janik
ecc33f7b10 Make everything async 2021-07-04 15:40:08 +02:00
Andrzej Janik
d76ffd691c Remember to actually submit workload 2021-07-04 13:24:35 +02:00
Andrzej Janik
b460e359ae First attempt at async host side 2021-07-04 12:54:27 +02:00
Andrzej Janik
ad2059872a Regenerate SPIR-V for ptx_impl and fix weird handling of ptr-ptr add or sub 2021-07-03 02:13:38 +02:00
Andrzej Janik
e328ecc550 Be more correct when emitting brev, refactor inst->func call pass 2021-07-02 22:45:09 +02:00
Andrzej Janik
7d4fbedfcf Allow to set range of dump kernels 2021-06-30 23:56:15 +02:00
Andrzej Janik
b2a455e12e Bunch of tiny fixes and improvements 2021-06-28 01:40:35 +02:00
Andrzej Janik
196242b410 Revert "Fix offset calculation in kernel launch"
This reverts commit d7d38256e0.
2021-06-27 21:55:08 +02:00
Andrzej Janik
55fbe1abb5 Fix bugs related to replay on Linux 2021-06-27 16:19:04 +02:00
Andrzej Janik
e89b0c5d9c Check for presence of ".version" instead of ".address_size" (which is optional) 2021-06-27 14:58:36 +02:00
Andrzej Janik
d7d38256e0 Fix offset calculation in kernel launch 2021-06-27 13:08:46 +02:00
Andrzej Janik
b2765370e5 Fix more bugs 2021-06-27 11:46:59 +02:00
Andrzej Janik
015d23b5ad Add missing import 2021-06-27 02:36:41 +02:00
Andrzej Janik
1c0deca9e4 Add missing pub qualifier 2021-06-27 02:35:33 +02:00
Andrzej Janik
23306e944b Fix build on Linux 2021-06-27 02:33:57 +02:00
Andrzej Janik
23874efe68 Allow ptr offsets to non-scalar types 2021-06-25 22:29:25 +02:00
Andrzej Janik
8ef6c3d8b6 Merge branch 'one_type_type2' 2021-06-25 01:20:38 +02:00
Andrzej Janik
2e8716bf0d Clean up warnings 2021-06-25 01:20:16 +02:00
Andrzej Janik
9a568e2969 Update tests 2021-06-25 01:08:45 +02:00
Andrzej Janik
e018de83ae Prepare level zero and our compiler for global addressing 2021-06-20 12:13:40 +02:00
Andrzej Janik
951c7558cc Fix problems with non-dereferencing inline addition 2021-06-12 16:17:32 +02:00