# LINK : fatal error LNK1102: out of memory \[AcceleratorsVTKm.vcxproj\]

**URL:** https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501
**Category:** Development
**Created:** [January 27, 2020, 5:34am UTC](https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501 "2020-01-27T05:34:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.vtk.org/u/sharon)
#### Post date: [January 27, 2020, 5:34am UTC](https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501/1 "2020-01-27T05:34:41Z")

</div>

Dear Experts:

After i enable “VTK\_SMP\_IMPLEMENTATION\_TYPE=TBB”, in debug build mode, there will have below error:  
LINK : fatal error LNK1102: out of memory [VTK\Accelerators\Vtkm\AcceleratorsVTKm.vcxproj]

My Questions:

- Why after enable TBB, then this error occurred? before enable TBB, only when i build release version, there is this error, there is no this error in debug mode.
- How to solve this?

Thanks and Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [January 27, 2020, 4:26pm UTC](https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501/2 "2020-01-27T16:26:59Z")

</div>

I believe efforts are underway to reduce memory usage when compiling VTK-m. @RobertMaynard would know more.

---

<div class="post-metadata">

### Author: ![RobertMaynard](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robertmaynard/32/24_2.png) [@RobertMaynard](https://discourse.vtk.org/u/RobertMaynard)
#### Post date: [January 27, 2020, 4:54pm UTC](https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501/3 "2020-01-27T16:54:34Z")

</div>

Yes efforts are underway.

You can disable the VTKm accelerator to remove this error in the meantime.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.vtk.org/u/sharon)
#### Post date: [January 29, 2020, 3:40am UTC](https://discourse.vtk.org/t/link-fatal-error-lnk1102-out-of-memory-acceleratorsvtkm-vcxproj/2501/4 "2020-01-29T03:40:34Z")

</div>

Thank you Cory and Robert for your reply!

Thanks and Best Regards

I am working on windows with visual studio, and finally solved this issue by changing to use 64 bit compiler.

It is blamed that visual studio use 32 bit compiler as default option, developer need explicitly set to use 64 bit compiler. There are several approaches to do so:

- Change project file: /p: **PreferredToolArchitecture=x64**  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/6/65877cac7e640892a1dbdedd5d7a2fb8c384b612.png)  
[https://support.microsoft.com/en-us/help/2891057/linker-fatal-error-lnk1102-out-of-memory](https://support.microsoft.com/en-us/help/2891057/linker-fatal-error-lnk1102-out-of-memory)

- Use vcvarsall.bat **x64**  
[https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019#developer\_command\_prompt\_shortcuts](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019#developer_command_prompt_shortcuts)

- Use CMake option: **-T host=x64**  
[https://cmake.org/cmake/help/latest/variable/CMAKE\_VS\_PLATFORM\_TOOLSET\_HOST\_ARCHITECTURE.html#variable:CMAKE\_VS\_PLATFORM\_TOOLSET\_HOST\_ARCHITECTURE](https://cmake.org/cmake/help/latest/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.html#variable:CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE)
