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

Fixed a bug in TorchPackage macro arguments test #558

Merged
merged 1 commit into from
Feb 24, 2016
Merged

Fixed a bug in TorchPackage macro arguments test #558

merged 1 commit into from
Feb 24, 2016

Conversation

borisfom
Copy link
Contributor

.. "if ($src)" does not work if $src i a macro, as cmake does not consider macro argument to be a variable (!). So only the case that had an upper scope variables named $src and luasrc worked before.
Also, C linker language specified for sources as CMake gets lost if all sources are .cu CUDA files
So now cunn can use ADD_TORCH_PACKAGE macro (used to break on both issues above)

…rted to use it: if ($src) does not work if $src i a macro, as cmake does not consider macro argument to be a variable (!). So only the case that had an upper scope variables named $src and luasrc worked before. Also, C linker language specified for sources as CMake gets lost if all sources are .cu CUDA fiels
soumith added a commit that referenced this pull request Feb 24, 2016
Fixed a bug in TorchPackage macro arguments test
@soumith soumith merged commit 9622f43 into torch:master Feb 24, 2016
@soumith
Copy link
Member

soumith commented Feb 24, 2016

Thanks Boris!

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

Successfully merging this pull request may close these issues.

None yet

2 participants