Skip to content

Commit 67cfe27

Browse files
authored
Merge pull request #333 from devreal/dot-remove-keytype
Remove key type from Dot if types are disabled
2 parents 54801b7 + 318f761 commit 67cfe27

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/gpu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
-DCMAKE_C_COMPILER=/home/evaleev/code/install/gcc/12/bin/gcc \
5151
-DCMAKE_CUDA_HOST_COMPILER=/home/evaleev/code/install/gcc/12/bin/g++ \
5252
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \
53-
-DCMAKE_CUDA_ARCHITECTURES=50 \
53+
-DCMAKE_CUDA_ARCHITECTURES=native \
5454
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
5555
-DCMAKE_BUILD_TYPE=Release \
5656
-DBUILD_SHARED_LIBS=OFF \
@@ -90,7 +90,7 @@ jobs:
9090
-DCMAKE_C_COMPILER=/home/evaleev/code/install/gcc/12/bin/gcc \
9191
-DCMAKE_CUDA_HOST_COMPILER=/home/evaleev/code/install/gcc/12/bin/g++ \
9292
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \
93-
-DCMAKE_CUDA_ARCHITECTURES=50 \
93+
-DCMAKE_CUDA_ARCHITECTURES=native \
9494
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
9595
-DCMAKE_PREFIX_PATH="${{github.workspace}}/install" \
9696
|| (cat CMakeFiles/CMakeConfigureLog.yaml && exit 1)

ttg/ttg/util/dot.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ namespace ttg {
7272
if (in) {
7373
if (count != in->get_index()) throw "ttg::Dot: lost count of ins";
7474
if (disable_type) {
75-
ttss << " <in" << count << ">"
76-
<< escape(in->get_name());
75+
ttss << " <in" << count << ">" << escape(in->get_name());
7776
} else {
7877
ttss << " <in" << count << ">"
7978
<< " " << escape("<" + in->get_key_type_str() + "," + in->get_value_type_str() + ">") << " "
@@ -97,8 +96,7 @@ namespace ttg {
9796
if (out) {
9897
if (count != out->get_index()) throw "ttg::Dot: lost count of outs";
9998
if (disable_type) {
100-
ttss << " <out" << count << ">"
101-
<< out->get_name();
99+
ttss << " <out" << count << ">" << out->get_name();
102100
} else {
103101
ttss << " <out" << count << ">"
104102
<< " " << escape("<" + out->get_key_type_str() + "," + out->get_value_type_str() + ">") << " "

0 commit comments

Comments
 (0)