Andrzej Janik
49aabffdcc
Rename zluda_dump to zluda_trace ( #456 )
...
* Rename zluda_dump to zluda_trace
* Minor naming fixes
2025-07-31 08:07:03 -07:00
Violet
4d163a4d9b
Implement cuModuleGetGlobal_v2
( #454 )
2025-07-30 16:34:21 -07:00
Violet
66db19a061
Move FromCuda
and ZludaObject
into a common crate ( #452 )
...
* Refactor FromCuda error type to be generic
* Create zluda_common crate
* Move FromCuda trait into zluda_common
* Write some doc comments
* Fix typo
* Edit comment
* Fix formatting
2025-07-30 15:53:22 -07:00
Violet
b8bcbec295
Always use Unix line endings ( #453 )
2025-07-30 15:09:47 -07:00
Violet
21ef5f60a3
Check Rust formatting on pull requests ( #451 )
...
* Check Rust formatting on pull requests
This should help us maintain consistent style, without having unrelated style changes in pull requests from running `rustfmt`.
* cargo fmt non-generated files
* Ignore generated files
2025-07-30 14:55:09 -07:00
Violet
c07d7678cd
Format files ( #450 )
2025-07-30 10:30:49 -07:00
Andrzej Janik
8dbc7208de
Try to make ZLUDA more robust on Windows ( #442 )
...
On my machine ZLUDA seems to segfault when initializing LLVM's C++ statics in Blender. Blender ships with C++ runtime. It seems that compiling C++ runtime statically fixes the issue. Might be actually unrelated.
Additionally, dtor crate on Windows seem to use a slightly dodgy method, so replace it with something more straightforward
2025-07-28 13:20:04 -07:00
Violet
f192dd317a
Use implicit FromCuda for library::get_module ( #439 )
2025-07-28 06:42:14 -07:00
Violet
8c23ef1ded
Rename cuda_base cuda_macros ( #435 )
2025-07-25 11:09:50 -07:00
Violet
ba38da0bbc
Silence unused variable warnings ( #434 )
...
I'd left these in originally because I'd assumed that these functions would need full implementations soon, but they're really annoying. I've fixed all the other compiler warnings as well.
2025-07-25 10:28:33 -07:00
Andrzej Janik
e8e20294a6
Set newly created context as current ( #431 )
2025-07-24 11:05:04 -07:00
Andrzej Janik
5deada8426
Add cuCtxCreate_v2 and cuCtxDestroy_v2 ( #430 )
2025-07-23 17:33:59 -07:00
Violet
27cfd50ddd
Implement nanosleep.u32
( #421 )
2025-07-21 17:42:04 -07:00
Violet
72e2fe5b9a
Remove unnecessary unsafe block ( #426 )
2025-07-21 13:20:12 -07:00
Andrzej Janik
059b8ca0f6
Make sure it is possible to log 32bit PhysX ( #374 )
2025-07-08 10:19:49 -07:00
aiwhskruht
9bd8125c53
Implement more CUDA driver API to enable simple cuda-samples ( #405 )
2025-07-08 10:18:30 -07:00
aiwhskruht
8d5b734c30
Add initialized check to protect zluda from cuda driver calls during shutdown ( #404 )
2025-07-07 11:08:09 -07:00
Andrzej Janik
ef0c4afcf9
Run unit tests on every commit ( #401 )
2025-07-03 16:07:00 -07:00
aiwhskruht
d4ad17d75a
Unified fatbin versions behind a single iterator. ( #398 )
2025-06-27 15:56:46 -07:00
Violet
4da3978f94
Implement cuLibraryLoadData
( #388 )
2025-06-18 16:05:53 -07:00
Violet
8ce70c5095
Add integrity_check
implementation to ZLUDA ( #387 )
2025-06-17 15:00:10 -07:00
Violet
4d4053194a
Implement runtime_callback_hooks_fn6
( #386 )
2025-06-16 17:00:47 -07:00
Violet
9c5f1ed9fb
Handle new attributes in cuDeviceGetAttribute
( #383 )
2025-06-16 13:20:04 -07:00
Violet
9773d20945
Implement cudart_interface_fn2 ( #382 )
2025-06-13 14:01:14 -07:00
Violet
1715830d82
Implement cuModuleGetLoadingMode ( #381 )
2025-06-11 15:54:48 -07:00
Violet
25a9d1c40e
Implement runtime_callback_hooks_fn2 ( #380 )
2025-06-11 15:15:43 -07:00
Violet
62f3e63355
Implement cuGetProcAddress and cuGetProcAddress_v2 ( #377 )
2025-06-10 16:07:35 -07:00
Andrzej Janik
3361046760
Fix mad.wide, replace external CUDA library in test with our own ( #376 )
2025-06-09 21:33:18 -07:00
Andrzej Janik
c790ab45ec
Redo logging to better log dark API and performance libraries ( #372 )
2025-06-09 15:29:14 -07:00
Andrzej Janik
3d3e38aadc
Fix ROCm 6.4 failures ( #364 )
...
Lazy load comgr and dispatch to different code paths based on the name of the comgr .dll/.so
2025-05-02 00:38:22 +02:00
Joëlle van Essen
867e4728d5
LLVM unit tests ( #324 )
...
* LLVM unit tests: add assembly files
* LLVM unit tests: first attempt
* LLVM unit tests: fix - parse bitcode in context
* LLVM unit tests: use pretty_assertions for line-by-line diff
* LLVM unit tests: Write IR to file for failed test
* LLVM unit tests: just use the stack
* LLVM unit tests: use MaybeUninit
* LLVM unit tests: add mul24.ll
* LLVM unit tests: Adjustments after review
* LLVM unit tests: Include emit_llvm::Context in emit_llvm::Module
* LLVM unit tests: Fix typo
* LLVM unit tests: Context need not be pub
2025-02-19 21:21:20 +01:00
Andrzej Janik
df5a96d935
Improve build system ( #329 )
...
Also fix Dockerfile and Windows build
2025-01-28 01:55:36 +01:00
Andrzej Janik
7ac67a89e9
Enable Geekbench 5 ( #304 )
2024-12-10 21:48:10 +01:00
Andrzej Janik
7a6df9dcbf
Fix host code and update to CUDA 12.4 ( #299 )
2024-12-02 00:29:57 +01:00
Andrzej Janik
46def3e7e0
Connect new parser to LLVM bitcode backend ( #269 )
...
This is very incomplete. Just enough code to emit LLVM bitcode and continue further development
2024-09-13 01:07:31 +02:00
Andrzej Janik
816365e7df
Fix shared munging pass and add fix cuModuleLoadData
2021-09-29 21:49:47 +00:00
Andrzej Janik
9609f86033
Fix minor bugs
2021-09-19 00:39:43 +00:00
Andrzej Janik
ccf3c02ac1
Minor fixes
2021-09-18 01:36:12 +00:00
Andrzej Janik
c37223fe67
Set linking output
2021-09-17 01:25:34 +00:00
Andrzej Janik
62ce1fd3a9
Implement linking
2021-09-16 23:26:02 +00:00
Andrzej Janik
04394dbb04
Oops
2021-09-16 23:13:10 +00:00
Andrzej Janik
314e3dcb49
Add missing V-RAY host functions
2021-09-16 23:11:34 +00:00
Andrzej Janik
986fa49097
Zero out buffer on creation
2021-09-13 23:43:50 +00:00
Andrzej Janik
dbb6f09ffa
Continue HIP conversion
2021-09-13 17:59:40 +00:00
Andrzej Janik
2f951fa04c
Support more export table functions
2021-09-12 22:10:07 +02:00
Andrzej Janik
5290190727
Add support for a new export table
2021-09-12 15:12:26 +02:00
Andrzej Janik
a71cd44104
HIP conversion part #3
2021-09-05 17:29:33 +02:00
Andrzej Janik
a63f004540
HIP conversion part #2
2021-09-05 14:58:15 +02:00
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