# compiler options

**URL:** <https://forums.developer.nvidia.com/t/compiler-options/17464>\
**Category:** CUDA Programming and Performance\
**Created:** [July 1, 2010, 4:00pm UTC](https://forums.developer.nvidia.com/t/compiler-options/17464 "2010-07-01T16:00:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantagruel](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pantagruel](https://forums.developer.nvidia.com/u/pantagruel)\
**Post date:** [July 1, 2010, 4:00pm UTC](https://forums.developer.nvidia.com/t/compiler-options/17464/1 "2010-07-01T16:00:24Z")

</div>

Is there a way to improve the execution time performance by tweaking compiler flags?  
I’m using the following options:

set COMPILER=nvcc  
set COMPFLAGS= -c -arch=compute\_20 -code=sm\_20 -Xcompiler “/c /Zp8 /GR /W3 /EHs /D\_CRT\_SECURE\_NO\_DEPRECATE /D\_SCL\_SECURE\_NO\_DEPRECATE /D\_SECURE\_SCL=0 /DMATLAB\_MEX\_FILE /nologo /MD”  
set OPTIMFLAGS=-Xcompiler “/O2 /Oy- /DNDEBUG”  
set DEBUGFLAGS=-Xcompiler “/Zi /Fd”%OUTDIR%%MEX\_NAME%%MEX\_EXT%.pdb""

Thank you
