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

Kmcuda for windows bugfixes #62

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6ad81ee
added Visual Studio solution that become a basis for next changes
pavlexander Dec 6, 2018
4a5d640
rearrenged files to correct projects
pavlexander Dec 6, 2018
2f79ba5
solution reorganization
pavlexander Dec 6, 2018
0feeb60
solution reorganization
pavlexander Dec 6, 2018
229b494
Revert "solution reorganization"
pavlexander Dec 6, 2018
a63db99
Revert "solution reorganization"
pavlexander Dec 6, 2018
ace13d7
Revert "rearrenged files to correct projects"
pavlexander Dec 6, 2018
ff01ede
Revert "added Visual Studio solution that become a basis for next cha…
pavlexander Dec 6, 2018
3f94191
added solution to support further changes
pavlexander Dec 6, 2018
88f8beb
added fix for blockIdx being an invalid identifier
pavlexander Dec 6, 2018
8adc482
removed " __attribute__((unused))" as it is not being supported on Win
pavlexander Dec 6, 2018
f2d24c5
adde fix for ternary operator, which is not being compiled on Win
pavlexander Dec 6, 2018
b2eca87
applied a fix for Pi math function
pavlexander Dec 6, 2018
4675d43
fix for "min" not being a part of std
pavlexander Dec 6, 2018
2cab6ba
added a fix (temporary?), for cases when CUDA_ARCH variable is not be…
pavlexander Dec 6, 2018
024b630
remove obsolete files
pavlexander Dec 6, 2018
1d3ec12
applied VisualStudio solution related changes
pavlexander Dec 6, 2018
d4525d6
undone chnages to files, which are irrelevant to kmcuda patch for win…
pavlexander Dec 6, 2018
6235c4b
added support for building solution on Windows
pavlexander Dec 10, 2018
ffc0ce8
Merge branch 'cuda-windows-bugfixes-release' of https://github.com/pa…
pavlexander Dec 10, 2018
4f6deca
added support for building solution on Windows
Dec 10, 2018
4ea50fe
Merge branch 'cuda-windows-bugfixes-release' of https://github.com/pa…
Dec 10, 2018
ff707ab
added support for building solution on Windows (3)
Dec 10, 2018
681e0fc
added support for building solution on Windows (4)
pavlexander Dec 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adde fix for ternary operator, which is not being compiled on Win
  • Loading branch information
pavlexander committed Dec 6, 2018
commit f2d24c5529f367a9c22e02e869fa05124065f8fb
5 changes: 4 additions & 1 deletion src/wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ template <typename T>
class unique_devptr : public unique_devptr_parent<T> {
public:
explicit unique_devptr(T *ptr, bool fake = false) : unique_devptr_parent<T>(
ptr, fake? [](T*){} : [](T *p){ cudaFree(p); }) {}
ptr,
(fake == true)
? (std::function<void(T*)>)([](T*) {})
: [](T *p) { cudaFree(p); }) {}
};

/// std::vector of unique_devptr-s. Used to pass device arrays inside .cu
Expand Down