我一直在浏览文档,并且看到:
TOP 1
但是我看不到我可以访问的所有信息的完整列表,我想说一下:
IF OBJECT_ID('atest') IS NOT NULL
DROP TABLE atest
CREATE TABLE [dbo].[atest](
[id] [int] NULL,
[value] [varchar](50) NULL,
[X] [varchar](50) NULL
) ON [PRIMARY]
INSERT INTO atest (id, value, X)
VALUES (1, 'ONE', 'EXTRA STUFF'),
(2, 'TWO', 'OTHER'),
(3, 'THREE', 'NOT THIS')
DECLARE @X VARCHAR(100) = (SELECT TOP 1 X FROM atest)
SELECT [id], [value] + '-->' + @X FROM atest
因此,如果我使用以下命令调用内核:
1 ONE-->EXTRA STUFF
2 TWO-->EXTRA STUFF
3 THREE-->EXTRA STUFF
如何从Cuda内核中访问此信息(可以吗?)?