CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
10 KiB
10 KiB
In [1]:
%reset
// This is some tablegen
class Foo {}------------- Classes -----------------
class Foo {
}
------------- Defs -----------------
In [2]:
%reset
This is not tablegen.<stdin>:1:1: error: Unexpected token at top level This is not tablegen. ^
In [3]:
%reset
class Stuff {}
def thing : Stuff {}------------- Classes -----------------
class Stuff {
}
------------- Defs -----------------
def thing { // Stuff
}
In [4]:
def other_thing : Stuff {}------------- Classes -----------------
class Stuff {
}
------------- Defs -----------------
def other_thing { // Stuff
}
def thing { // Stuff
}
In [5]:
%reset
def other_thing : Stuff {}<stdin>:1:19: error: Couldn't find class 'Stuff'
def other_thing : Stuff {}
^
In [6]:
%config cellreset on
class Thing {}------------- Classes -----------------
class Thing {
}
------------- Defs -----------------
In [7]:
// The cache is reset here so this is an error.
def AThing: Thing {}<stdin>:2:13: error: Couldn't find class 'Thing'
def AThing: Thing {}
^
In [8]:
class Thing {}------------- Classes -----------------
class Thing {
}
------------- Defs -----------------
In [9]:
%noreset
// This works because of the noreset above.
def AThing: Thing {}------------- Classes -----------------
class Thing {
}
------------- Defs -----------------
def AThing { // Thing
}
In [10]:
// This does not because we're not changing the default.
def AnotherThing: Thing {}<stdin>:2:19: error: Couldn't find class 'Thing'
def AnotherThing: Thing {}
^
In [11]:
%config cellreset off
%reset
// Here we have an empty cache and default reset behaviour.------------- Classes ----------------- ------------- Defs -----------------
In [12]:
%reset
%noreset%reset and %noreset in the same cell is not allowed. Use only one, or neither.
In [13]:
%reset
class Thing <int A, int B> {
int num = A;
}<stdin>:1:25: warning: unused template argument: Thing:B
class Thing <int A, int B> {
^
In [14]:
%args --no-warn-on-unused-template-args------------- Classes -----------------
class Thing<int Thing:A = ?, int Thing:B = ?> {
int num = Thing:A;
}
------------- Defs -----------------
In [15]:
// This passes --no-warn-on-unused-template-args------------- Classes -----------------
class Thing<int Thing:A = ?, int Thing:B = ?> {
int num = Thing:A;
}
------------- Defs -----------------
In [16]:
%args
// Now we're not passing the argument so the warning comes back.<stdin>:1:25: warning: unused template argument: Thing:B
class Thing <int A, int B> {
^
In [17]:
%reset
%args --no-warn-on-unused-template-args
%args
class Thing <int A, int B> {}<stdin>:1:18: warning: unused template argument: Thing:A
class Thing <int A, int B> {}
^
<stdin>:1:25: warning: unused template argument: Thing:B
class Thing <int A, int B> {}
^