Last active
October 4, 2022 11:29
-
-
Save LevitatingBusinessMan/0a214c62471999a1d5afbdb732e773a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/init.c b/init.c | |
index 8b32a1a..fd17692 100644 | |
--- a/init.c | |
+++ b/init.c | |
@@ -935,7 +935,7 @@ static int cutorch_isManagedPtr(lua_State *L) | |
lua_pushboolean(L, 0); | |
} else { | |
THCudaCheck(res); | |
- lua_pushboolean(L, attributes.isManaged); | |
+ lua_pushboolean(L, attributes.type == cudaMemoryTypeManaged); | |
} | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment