Currently we are trying to prepare the environment with CUDA 10.2 in the latest Visual Studio 2019 Community.
By setting $(CUDA_INC_PATH) etc., at least the first simple compilation is passed.
However, there is a problem with syntax highlight.
(Question 1)
It can be done, but
gpu_func ()<<>>();
Function use is recognized as a bit shift operator and gives the errorError (active) E0029 expression required
. Is there no way to solve this?
(Question 2)
If i pass$(CUDA_INC_PATH)
, etc., you can compile without includingcuda_runtime.h
ordevice_launch_parameters.h
. Why If i don't write these headers, the syntax highlight will disappear. There is a lot of unwritten code for linux, but should you not write it?
(Question 3)
Change the source code item type fromC/C ++ compiler
toCUDA C/C ++
, but put the code mixed with main functions other than CUDA on the CUDA compiler. Is it okay?
Thanks.
Supplemental informationWindows10 Pro
VisualStudio2019 Community
-
Answer # 1
Related articles
- c ++ - about openacc settings
- c ++ - about atcoder environment construction
- server - about netlify settings in muumuu domain
- c ++: about stack overflow
- apache - about web server settings on sakura vps
- about c ++ bubble sort
- c ++ - confirmation about constexpr
- about environment variables ld_library_path, pgdata in postgresql
- oracle - about client pc settings for windows applications
- about the associative law of c ++ 20 templates
- php - about apache virtual host settings
- c ++ - about the return value of the constructor
- c ++ - questions about passing by value and passing by reference
- c ++ - about getting the number of elements in a two-dimensional array
- [c ++] about inherited class functions [rust]
- about embedding random numbers in c ++ output file names
- about c ++ opencv labeling errors
- about the meaning of c ++ (struct-like) code
- c ++ - about test case output
- ruby - the production environment settings do not work
- visualstudio c ++ linux "undefined reference to pthread_create"
- resolution of unknown type name'a', which is a c ++ error
- c ++ - cannot pass 2d array and structure array with openacc
- c - a green wavy line appears under winmain and _twinmain
- c ++ - if the file cannot be found, an error will occur
- is there any benefit to using an editor and gcc instead of visual studio in c ++ programming?
- about c ++ opencv labeling errors
- c ++ - class meaning of member variables and member functions
- c ++ - openmpi tag definition
- c ++ - how to properly destroy mpi_recv
syntax highlight is a C ++ grammar check.
CUDA-compiler: nvcc has a default-include header. Thanks to that.
No problem. nvcc separates ~ .cu into GPU-code and CPU-code, and CPU-code is cross-flowed to host-compiler (here VC ++).