urielfcampos

urielfcampos

Failing to cmake exla on a new Bumblebee project

Hey everyone ! I was trying to start a new bumblebee project on my OpenSuse installation and i’m running on this issue which seems to be related to gcc/cmake but not exactly sure which approach to take to fix it :sweat_smile:

/.local/share/rtx/installs/erlang/26.0.2/erts-14.0.2/include -Icache/xla_extension/include -O3 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-comment -shared -std=c++17 -w -DLLVM_VERSION_STRING= c_src/exla/exla.cc c_src/exla/exla_nif_util.cc c_src/exla/exla_client.cc -o cache/libexla.so -Lcache/xla_extension/lib -lxla_extension -Wl,-rpath,'$ORIGIN/xla_extension/lib'
In file included from cache/xla_extension/include/xla/service/executable.h:33:0,
                 from cache/xla_extension/include/xla/service/compiler.h:40,
                 from cache/xla_extension/include/xla/client/local_client.h:29,
                 from cache/xla_extension/include/xla/pjrt/gpu/gpu_helpers.h:25,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/xla/service/service_executable_run_options.h: In member function ‘absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter> > xla::ServiceExecutableRunOptions::BorrowStream(int, stream_executor::StreamPriority) const’:
cache/xla_extension/include/xla/service/service_executable_run_options.h:73:12: error: could not convert ‘stream’ from ‘xla::StreamPool::Ptr {aka std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter>}’ to ‘absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter> >’
     return stream;
            ^~~~~~
In file included from cache/xla_extension/include/xla/service/executable.h:33:0,
                 from cache/xla_extension/include/xla/service/compiler.h:40,
                 from cache/xla_extension/include/xla/client/local_client.h:29,
                 from cache/xla_extension/include/xla/pjrt/gpu/gpu_helpers.h:25,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/xla/service/service_executable_run_options.h: In member function ‘absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter> > xla::ServiceExecutableRunOptions::BorrowStream(int, stream_executor::StreamPriority) const’:
cache/xla_extension/include/xla/service/service_executable_run_options.h:73:12: error: could not convert ‘stream’ from ‘xla::StreamPool::Ptr {aka std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter>}’ to ‘absl::lts_20230125::StatusOr<std::unique_ptr<stream_executor::Stream, xla::StreamPool::PtrDeleter> >’
     return stream;
            ^~~~~~
make: *** [Makefile:57: cache/libexla.so] Error 1

appreciate any help with it :pray:

Marked As Solved

urielfcampos

urielfcampos

Managed to get it working on WSL2 so i guess that’s the simplest way to go about it

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 127089 1222
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement