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

Slangpy native code v1 #154

Merged
merged 10 commits into from
Jan 22, 2025
Merged

Slangpy native code v1 #154

merged 10 commits into from
Jan 22, 2025

Conversation

ccummingsNV
Copy link
Collaborator

No description provided.

@ccummingsNV ccummingsNV changed the title DRAFT: Slangpy native code Slangpy native code v1 Jan 22, 2025
Copy link
Collaborator

@tomas-davidovic tomas-davidovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the caveat that I have no idea what is this trying to do, I just nitpicked couple fringe things that I could imagine would be weird/possibly wrong.

auto& shape = as_vector();
int total = 1;
std::vector<int> strides(shape.size(), 1);
for (int i = (int)shape.size() - 1; i >= 0; --i) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use int64_t here, although 2 billion dimensions are unlikely.

src/sgl/utils/slangpy.h Show resolved Hide resolved
src/sgl/utils/python/slangpyvalue.cpp Show resolved Hide resolved
@ccummingsNV ccummingsNV merged commit 99e7cfd into main Jan 22, 2025
11 checks passed
@ccummingsNV ccummingsNV deleted the dev/ccummings/native-slangpy branch January 22, 2025 14:10
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.

3 participants