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

How to use slangtorch in a coda environment? #24

Closed
oliver-batchelor opened this issue Nov 26, 2024 · 3 comments
Closed

How to use slangtorch in a coda environment? #24

oliver-batchelor opened this issue Nov 26, 2024 · 3 comments
Assignees
Milestone

Comments

@oliver-batchelor
Copy link

I'm trying with python 3.11, torch 2.5.1 from conda/mamba. slangtorch 1.3.0 from pypi (otherwise I run into this as well #23)

If I use the system compilers I get this kind of error (both GCC and clang)

/local/slang-torch/examples/inline-mlp-example/.slangtorch_cache/image-model/39a1e66c93673ceb/image-model.cpp:493:9: error: unknown type name 'SlangUInt'
typedef SlangUInt UInt;
        ^
/local/slang-torch/examples/inline-mlp-example/.slangtorch_cache/image-model/39a1e66c93673ceb/image-model.cpp:494:9: error: unknown type name 'SlangInt'
typedef SlangInt Int;

If I use compilers installed from mamba (GCC or clang again) I get this error:

/local/slang-torch/examples/inline-mlp-example/.slangtorch_cache/image-model/39a1e66c93673ceb/image-model.cpp:434:9: warning: #pragma once in main file [-Wpragma-once-outside-header]
  434 | #pragma once
      |         ^
/local/slang-torch/examples/inline-mlp-example/.slangtorch_cache/image-model/39a1e66c93673ceb/image-model.cpp:476:10: fatal error: 'slang.h' file not found
  476 | #include "slang.h"

and in both cases a lot of warnings like this:

/local/slang-torch/examples/inline-mlp-example/.slangtorch_cache/image-model/39a1e66c93673ceb/image-model_cuda.cu(1203): warning #177-D: function "surfCubemapLayeredwrite(T, cudaSurfaceObject_t, int, int, int, cudaSurfaceBoundaryMode) [with T=__half4]" was declared but never referenced

@oliver-batchelor
Copy link
Author

Basic workaround here: #10

@saipraveenb25
Copy link
Contributor

@oliver-batchelor: thank you for raising this issue!

Could you try with a fresh environment that uses the latest slangtorch release (v1.3.2)?
We fixed the "slang.h" regression there.

@saipraveenb25 saipraveenb25 self-assigned this Nov 26, 2024
@saipraveenb25 saipraveenb25 added this to the Q4 2024 milestone Nov 26, 2024
@oliver-batchelor
Copy link
Author

@oliver-batchelor: thank you for raising this issue!

Could you try with a fresh environment that uses the latest slangtorch release (v1.3.2)? We fixed the "slang.h" regression there.

Can confirm this works!
Thanks!

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

No branches or pull requests

2 participants