Skip to content

Commit 9fc2507

Browse files
authored
Update main.cu
delete the __device__
1 parent a924e74 commit 9fc2507

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

06_MemoryBasics/src/main.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
// Declaration of a device variable in constant memory
6-
__device__ __constant__ int cFoo;
6+
__constant__ int cFoo;
77

88
__global__ void ReadConstantMemory()
99
{

0 commit comments

Comments
 (0)