Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 0X609F: Cannot link generated binary. #86

Open
Shylie opened this issue Jul 16, 2019 · 2 comments
Open

Error 0X609F: Cannot link generated binary. #86

Shylie opened this issue Jul 16, 2019 · 2 comments
Assignees
Labels

Comments

@Shylie
Copy link

Shylie commented Jul 16, 2019

  • [✓] You run Visual Studio 2012, 2013, 2015 or 2017 with a valid license
  • [✓] You installed C++ support in Visual Studio
  • [✓] You queried and validated a license for Hybridizer Essentials and your license is still valid (Tools->Hybridizer Configuration)
  • [✓] You have CUDA 8 or 9.x installed and Visual Studio Integration enabled
  • [✓] If you run cuda 9.x with visual 2017, you have installed v140 toolset and compile native project with this toolset.

image

@Shylie
Copy link
Author

Shylie commented Jul 16, 2019

Solution & other files here, if that helps.

@JeWaVe JeWaVe self-assigned this Aug 28, 2019
@JeWaVe JeWaVe added the bug label Aug 28, 2019
@JeWaVe
Copy link
Contributor

JeWaVe commented Aug 29, 2019

This bug is quite complex, and in the end, not a bug :)

First (compile time) :

  • structure constructors must be marked with [Kernel]
  • explicit operators as well
    Support of those is quite a new feature, and yes, we should detect that they are used device-side but we don't do it yet.

Second (runtime) :
You are using a recursive function (GetColor) and your stack gets corrupted at runtime. You need to increase the stack size by using the function

cuda.DeviceGetLimit(out stackSize, cudaLimit.cudaLimitStackSize);
cuda.DeviceSetLimit(cudaLimit.cudaLimitStackSize, 16 * (int) stackSize);

With those two modifications, your code runs well and yields this image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants