# Override nvcc file type interpretation?

**URL:** <https://forums.developer.nvidia.com/t/override-nvcc-file-type-interpretation/119266>\
**Category:** CUDA Programming and Performance\
**Created:** [April 10, 2020, 6:05am UTC](https://forums.developer.nvidia.com/t/override-nvcc-file-type-interpretation/119266 "2020-04-10T06:05:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cory.bloyd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cory.bloyd](https://forums.developer.nvidia.com/u/cory.bloyd)\
**Post date:** [April 10, 2020, 6:05am UTC](https://forums.developer.nvidia.com/t/override-nvcc-file-type-interpretation/119266/1 "2020-04-10T06:05:46Z")

</div>

I’m setting up a project that uses both mixed C++/CUDA .cu files that will be linked into exe, and also no-C++, CUDA-only .cu files that will be linked into separate .fatbin files. For my team member’s sanity and also for build system purposes, I’d like to distinguish the two intentions with a different file extension. For example: .cu vs .cuda. But, I think nvcc requires the .cu extension and there’s no way to get it to interpret a different file type the same was as a .cu.

Am, I mistaken?

Thanks!

---

<div class="post-metadata">

**Author:** ![njuffa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@njuffa](https://forums.developer.nvidia.com/u/njuffa)\
**Post date:** [April 10, 2020, 6:00pm UTC](https://forums.developer.nvidia.com/t/override-nvcc-file-type-interpretation/119266/2 "2020-04-10T18:00:07Z")

</div>

> **[NVIDIA CUDA Compiler Driver](https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#options-for-altering-compiler-linker-behavior-x)**
>
> The documentation for nvcc, the CUDA compiler driver.

> _Explicitly specify the language for the input files, rather than letting the compiler choose a default based on the file name suffix._
