Skip to content

Commit 4f3b9b8

Browse files
authored
Brodey/graph contd (#98)
1 parent aee822f commit 4f3b9b8

10 files changed

+937
-764
lines changed

.github/workflows/format.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
- pull_request
44
jobs:
55
formatting-check:
6-
if: false
76
name: Formatting Check
87
runs-on: ubuntu-latest
98
steps:
@@ -15,22 +14,20 @@ jobs:
1514
git fetch origin ${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
1615
- name: Run clang-format on diff
1716
run: >
18-
# Get the diff of changed files
19-
2017
git diff --name-only origin/${{ github.base_ref }} | grep -E '\.(cpp|h|cu)$' > changed_files.txt || true
2118
22-
# Check each changed file
23-
2419
while read file; do
2520
echo "Checking $file"
21+
22+
# Get diff in unified format
2623
git diff origin/${{ github.base_ref }} -- $file | clang-format-diff -p1 -style=file > formatted.diff
24+
2725
if [ -s formatted.diff ]; then
28-
echo "File $file is not properly formatted. Please run clang-format on your code."
29-
cat formatted.diff
30-
cat formatted.diff >> "$GITHUB_OUTPUT"
26+
echo "File $file is not properly formatted. Please run format on your code."
27+
cat formatted.diff
3128
exit 1
3229
fi
33-
done < changed_files.txt
30+
done
3431
- name: Show success message
3532
if: success()
3633
run: echo "All files are properly formatted!"

codegen/annotations.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -6284,6 +6284,7 @@ cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(
62846284
cudaGraphNode_t hNode,
62856285
const struct cudaExternalSemaphoreWaitNodeParams *nodeParams);
62866286
/**
6287+
* @disabled
62876288
* @param numDependencies SEND_ONLY
62886289
* @param pGraphNode SEND_RECV
62896290
* @param graph SEND_ONLY
@@ -6303,6 +6304,7 @@ cudaError_t
63036304
cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node,
63046305
struct cudaMemAllocNodeParams *params_out);
63056306
/**
6307+
* @disabled
63066308
* @param numDependencies SEND_ONLY
63076309
* @param pGraphNode SEND_RECV
63086310
* @param graph SEND_ONLY
@@ -6322,10 +6324,12 @@ cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void *dptr_out);
63226324
* @param device SEND_ONLY
63236325
*/
63246326
cudaError_t cudaDeviceGraphMemTrim(int device);
6327+
63256328
/**
6329+
* @disabled
63266330
* @param device SEND_ONLY
63276331
* @param attr SEND_ONLY
6328-
* @param value SEND_RECV
6332+
* @param value RECV_ONLY
63296333
*/
63306334
cudaError_t cudaDeviceGetGraphMemAttribute(int device,
63316335
enum cudaGraphMemAttributeType attr,

codegen/codegen.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@
8080
"cudaGraphDestroy",
8181
"cudaGraphAddKernelNode",
8282
"cudaGraphAddMemcpyNode",
83-
"cudaGraphAddHostNode"
83+
"cudaGraphAddHostNode",
84+
"cudaGraphAddMemFreeNode",
85+
"cudaGraphAddMemAllocNode",
86+
"cudaDeviceGetGraphMemAttribute"
8487
]
8588

8689

0 commit comments

Comments
 (0)