PTX ISA v9.4

11.6.2. Linking Directives: .visible

.visible

Visible (externally) symbol declaration.

Syntax

ptx
.visible identifier

Description

Declares identifier to be globally visible. Unlike C, where identifiers are globally visible unless declared static, PTX identifiers are visible only within the current module unless declared .visible outside the current.

PTX ISA Notes

Introduced in PTX ISA version 1.0.

Target ISA Notes

Supported on all target architectures.

Examples

ptx
.visible .global .b32 foo;  // foo will be externally visible
esc
Type to search across all documentation