How should I be loading the `get_scalar_from_managed_tensor_slice` kernel?
Has anyone ever seen this error
A crash happened in the Mojo Language Server when processing this document. The Language Server will try to reprocess this document once it is edited again. Please report this issue in https://github.com/modularml/mojo/issues along with all the relevant source codes with their current contents.
Afterwards, regardless of the changes I make (ie making a new file or altering current file) I keep getting the following error and stack dump:Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var
LLVM_SYMBOLIZER_PATH to point to it):
After spitting out a couple hundred messages identical to 255 mojo 0x000057bc2c289433
The output finally crashes ```mojo crashed!
Please file a bug report....Question about the FFI, unsafe_cstr_ptr, and PathLike
path_string
until after the external call, it succeeds. It also succeeds if I use a string literal instead of a Path
. Is this a bug or is this a misunderstanding on my part of the ASAP deconstruction?
```
example.mojo
#...Tried the new Max custom_ops examples with my RTX 3050 and using CPU
accelerator_count()
was returning 0 even if I have an Nvidia GPU:
Is there a way in Mojo to know the type of a variable/object ?
Unable to use PyTorch from Mojo
Mojo in CMD.
What are the best practices for handling slices and their performance in Mojo?
Publish mojo package
Passing a Slice to a function
borrowed items: List[UInt8]
is waaaaayyyy slower than any other way. Is it allocating a new copy on a slice? Should I be looking into Span's instead? Or is this an area still being looked at https://github.com/modularml/mojo/issues/3653 ?
The signature of __getitem__
for List
makes it look like it returns a ref
to itself though, which seemingly wouldn't need to allocate?...Max Installation (Arch Linux)
How to configure execution arguments for mojo-lldb in VSCode
launcher.json
configuration that would be equivalent to:
$ mojo debug -D DEBUG ./debug_mode.mojo
$ mojo debug -D DEBUG ./debug_mode.mojo
I can no longer post in the other channels
Why is alias U8 = Dtype.uint8 not a type?
linker error: library not found when running mojo build
When can we expect gpu kernels in mojo?
What is the correct way to call polynomial_evaluate?
invalid call to 'polynomial_evaluate': failed to infer parameter #0
.
Here's is a relevant snippet of the code:
from math.polynomial import polynomial_evaluate from math import ulp...
Arena Allocated Coroutines
handle_request
top-level function of an HTTP server), this means that instead of going through all of the machinery in tcmalloc you may be performing a dequeue operation on a ring buffer of free frames, substantially faster. Would it be possible to have the coroutine take an alloc: Allocator[CoroutineFrameType] = DefaultMojoAllocator
parameter in some way or otherwise inject an allocator into the coroutine? I'm still thinking over how I would want custom allocators to behave, but I know that this a feature I and others will want.
As for my specialty of databases, not being able to handle allocation failures (because the database is likely the largest memory consumer on any system it is on and typically has a lot of caching, so it can actually do something about allocation failures), means that you can't use the feature in production code because it could lead to unnecessary crashes....