Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuda interop vk13 #637

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
d293b9b
create exportable buffers to import into cuda
atkurtul Jul 8, 2023
f5f1017
add missing cuda fn and update submodule
atkurtul Jul 9, 2023
6689b33
add missing cuda export functions
atkurtul Jul 9, 2023
9ade1c6
move boilerplates to CCUDADevice
atkurtul Jul 9, 2023
bfa7afc
correct chained cleanup desctruction order
atkurtul Jul 15, 2023
ddb861e
add safety checks
atkurtul Jul 15, 2023
f380398
semaphore interop
atkurtul Jul 15, 2023
2f7b517
get cuda interop working in vulkan_1_3 branch
atkurtul Jul 15, 2023
bd32f36
point jitify to the right hash
atkurtul Jan 4, 2024
b1c5a46
update examples && use non KHR version of vk functions
atkurtul Jan 4, 2024
0d36581
correct bad validations, KHR instead of coe func usage etc.
devshgraphicsprogramming Jan 4, 2024
725a984
revert a dangerous api change
devshgraphicsprogramming Jan 4, 2024
d2c9382
update examples_tests
devshgraphicsprogramming Jan 4, 2024
2d24604
Disabled CSPIRVIntrospector
Przemog1 Jan 5, 2024
2114e50
small fixes
Przemog1 Jan 5, 2024
f6320ce
remove unused cruft
devshgraphicsprogramming Jan 6, 2024
f749ab8
draft
devshgraphicsprogramming Jan 7, 2024
ad1e6ff
move the TimelineEventHandlers to their own header, simplifying every…
devshgraphicsprogramming Jan 8, 2024
a1afcc8
Made the TimelineEventHandlerST use a const ISemaphore, almost all of…
devshgraphicsprogramming Jan 8, 2024
262281f
implement MultiTimelineEventHandlerST and correct TimelineEventHandlerST
devshgraphicsprogramming Jan 8, 2024
d7690be
fix KHR function loading bugs
devshgraphicsprogramming Jan 8, 2024
13ff02a
fix some nasty bug in TimelineEventHandlerST
devshgraphicsprogramming Jan 8, 2024
fabc999
Take the TimelineEventHandlerST for a first spin with ICommandPoolCache
devshgraphicsprogramming Jan 8, 2024
0eb8e9a
turns out its quite easy to port the other utilities to the new Multi…
devshgraphicsprogramming Jan 8, 2024
e59408d
remove more unused stuff
devshgraphicsprogramming Jan 8, 2024
3f41a81
fix one liner huge bug
devshgraphicsprogramming Jan 8, 2024
fb1f50d
fix a smal bug and introduce a base class for TimelineEventHandler, a…
devshgraphicsprogramming Jan 9, 2024
94ee680
fix one more KHR function pointer bug and remove unused class
devshgraphicsprogramming Jan 9, 2024
c761d42
bring back bits of IUtilities needed for ex 05
devshgraphicsprogramming Jan 9, 2024
04689b9
device cap traits
atkurtul Dec 5, 2023
4a17eaf
port macros to boost pp
atkurtul Dec 5, 2023
5fcad02
has_member_x_with_type
atkurtul Dec 5, 2023
3c97ef1
make e_member_presence bitflags
atkurtul Dec 5, 2023
06b43af
Use new inline SPIR-V builtin syntax from DXC
devshgraphicsprogramming Jan 10, 2024
fd73e28
const correctness on surface capabilities
devshgraphicsprogramming Jan 12, 2024
153dd21
3D Blit test case was failing because of unimplemented functions for …
devshgraphicsprogramming Jan 12, 2024
bc7e24d
Make the SPhysicalDeviceFilter use spans for requirement arrays.
devshgraphicsprogramming Jan 12, 2024
b234d3b
ok so I found out that renderdoc hates External memory
devshgraphicsprogramming Jan 12, 2024
b5a633a
fix typos causing issues
devshgraphicsprogramming Jan 12, 2024
2ab33ed
API draft
devshgraphicsprogramming Jan 12, 2024
bbc5aa9
think about the other 3 utility functions
devshgraphicsprogramming Jan 12, 2024
d41f279
design clearing up
devshgraphicsprogramming Jan 12, 2024
04d05da
Ok we're done here with the Streaming Buffer upload port (removed the…
devshgraphicsprogramming Jan 12, 2024
3d034c5
move the SIntendedSubmitInfo struct out of IUtilities
devshgraphicsprogramming Jan 12, 2024
3160a46
going to sleep, next TODO is to implement the IUtilities::downloadBuf…
devshgraphicsprogramming Jan 12, 2024
8670d42
outline the TODO for @theoreticalphysicsftw
devshgraphicsprogramming Jan 13, 2024
2d86373
fix debugmessenger not being created
atkurtul Jan 13, 2024
ca2593c
fix a validation error
devshgraphicsprogramming Jan 13, 2024
461cb4a
rework pipeline barriers and events to use std::spans
devshgraphicsprogramming Jan 13, 2024
d96fd1d
Port `downloadBufferRangeViaStagingBuffer
devshgraphicsprogramming Jan 13, 2024
2d2acc9
fix bug in CRAIISpanPatch
devshgraphicsprogramming Jan 13, 2024
60c1c39
Ported Example 23, and fixed a few bugs here and there
devshgraphicsprogramming Jan 14, 2024
3faf1fb
merge conflicts
atkurtul Jan 13, 2024
fd4f733
add missing external resource property queries
atkurtul Jan 14, 2024
5b1940c
add more stuff
atkurtul Jan 14, 2024
7074256
Merge branch 'vulkan_1_3' into cuda-interop-vk13
atkurtul Jan 14, 2024
6449b2f
Merge branch 'vulkan_1_3' into cuda-interop-vk13
atkurtul Jan 18, 2024
3d9a530
address pr comments
atkurtul Jan 18, 2024
4d174e5
last commit part 2
atkurtul Jan 18, 2024
cbd18f4
add missing cuda fn & map queue indices to vk
atkurtul Jan 18, 2024
23fe8d4
update submodule
atkurtul Jan 18, 2024
c32fd79
cache cuda devices
atkurtul Jan 18, 2024
4e2185c
ifdef platform code
atkurtul Jan 19, 2024
bd0b76a
log queue validation warning
atkurtul Jan 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions include/nbl/video/CCUDASharedMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
namespace nbl::video
{

class CCUDAMemoryMapping: public core::IReferenceCounted
{
};

class CCUDASharedMemory : public core::IReferenceCounted
{
public:
Expand Down
2 changes: 1 addition & 1 deletion include/nbl/video/utilities/IUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
//! WARNING: This function blocks CPU and stalls the GPU!
inline bool autoSubmitAndBlock(const SIntendedSubmitInfo::SFrontHalf& submit, const std::function<bool(SIntendedSubmitInfo&)>& what)
{
auto semaphore = m_device->createSemaphore(0);
auto semaphore = m_device->createSemaphore(ISemaphore::SCreationParams{.initialValue=0});
devshgraphicsprogramming marked this conversation as resolved.
Show resolved Hide resolved
// so we begin latching everything on the value of 1, but if we overflow it increases
IQueue::SSubmitInfo::SSemaphoreInfo info = {semaphore.get(),1};

Expand Down