Precompiled cuda111 doesn't work with latest cuda

I got a this error message with XLA_TARGET=cuda111.
[error] cuLinkAddData fails. This is usually caused by stale driver version.

Do you have any plans to provide precompile XLA package for latest cuda like cuda11.8?
My test envirment is
OS: Ubuntu 20.04 on WSL2 on Windows11
I tried changing some cuda version to see if it works.
11.8.0-1 NG (latest version)
11.7.0-1 NG
11.6.0-1 NG
11.3.0-1 OK
11.2.0-1 OK
11.1.1-1 OK
11.1.0-1 OK

I tried to build XLA with your docker image myself.
but a compilation error occurred and I could not build. I'll make a separate issue for this.
$ sudo apt list -a cuda
Listing... Done
cuda/unknown,now 11.8.0-1 amd64 [installed]
cuda/unknown 11.7.1-1 amd64
cuda/unknown 11.7.0-1 amd64
cuda/unknown 11.6.2-1 amd64
cuda/unknown 11.6.1-1 amd64
cuda/unknown 11.6.0-1 amd64
cuda/unknown 11.5.2-1 amd64
cuda/unknown 11.5.1-1 amd64
cuda/unknown 11.5.0-1 amd64
cuda/unknown 11.4.4-1 amd64
cuda/unknown 11.4.3-1 amd64
cuda/unknown 11.4.2-1 amd64
cuda/unknown 11.4.1-1 amd64
cuda/unknown 11.4.0-1 amd64
cuda/unknown 11.3.1-1 amd64
cuda/unknown 11.3.0-1 amd64
cuda/unknown 11.2.2-1 amd64
cuda/unknown 11.2.1-1 amd64
cuda/unknown 11.2.0-1 amd64
cuda/unknown 11.1.1-1 amd64
cuda/unknown 11.1.0-1 amd64
$ export XLA_TARGET=cuda111
$ export XLA_BUILD=false
$ iex
Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Interactive Elixir (1.14.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Mix.install([
...(1)>   {:nx, "~> 0.3.0"},
...(1)>   {:exla, "~> 0.3.0"},
...(1)> ],
...(1)> config: [
...(1)>           nx: [
...(1)>             default_backend: EXLA.Backend,
...(1)>             default_defn_options: [compiler: EXLA],
...(1)>           ]
...(1)>         ]
...(1)> )
Resolving Hex dependencies...
Dependency resolution completed:
New:
  complex 0.4.2
  elixir_make 0.6.3
  exla 0.3.0
  nx 0.3.0
  xla 0.3.0
* Getting nx (Hex package)
* Getting exla (Hex package)
* Getting elixir_make (Hex package)
* Getting xla (Hex package)
* Getting complex (Hex package)
==> complex
Compiling 2 files (.ex)
Generated complex app
==> nx
Compiling 24 files (.ex)
Generated nx app
==> elixir_make
Compiling 1 file (.ex)
Generated elixir_make app
==> xla
Compiling 2 files (.ex)
Generated xla app

21:04:26.560 [info] Found a matching archive (xla_extension-x86_64-linux-cuda111.tar.gz), going to download it
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                                Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  204M  100  204M    0     0  7981k      0  0:00:26  0:00:26 --:--:-- 6268k

21:04:52.742 [info] Successfully downloaded the XLA archive
==> exla
Unpacking /home/masa/.cache/xla/0.3.0/cache/download/xla_extension-x86_64-linux-cuda111.tar.gz into /home/masa/.cache/mix/installs/elixir-1.14.0-erts-13.1.1/c709e1c9414e09e688e98d555e300276/deps/exla/cache
g++ -fPIC -I/home/masa/.asdf/installs/erlang/25.1.1/erts-13.1.1/include -Icache/xla_extension/include -O3 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-comment -shared -std=c++14 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/lib'
Compiling 21 files (.ex)
Generated exla app
:ok
iex(2)> Nx.add(Nx.tensor([1]), Nx.tensor([1]))

21:05:33.943 [info] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.

21:05:33.943 [info] XLA service 0x7efc2c5ffda0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:

21:05:33.943 [info]   StreamExecutor device (0): NVIDIA GeForce RTX 3060, Compute Capability 8.6

21:05:33.943 [info] Using BFC allocator.

21:05:33.943 [info] XLA backend allocating<PHONE_NUMBER>8 bytes on device 0 for BFCAllocator.

21:05:34.312 [info] Start cannot spawn child process: No such file or directory

21:05:34.312 [error] cuLinkAddData fails. This is usually caused by stale driver version.

21:05:34.312 [error] The CUDA linking API did not work. Please use XLA_FLAGS=--xla_gpu_force_compilation_parallelism=1 to bypass it, but expect to get longer compilation time due to the lack of multi-threading.
** (RuntimeError) no kernel image is available for execution on the device
in tensorflow/stream_executor/cuda/cuda_asm_compiler.cc(65): 'status'
    (exla 0.3.0) lib/exla/computation.ex:92: EXLA.Computation.unwrap!/1
    (exla 0.3.0) lib/exla/computation.ex:61: EXLA.Computation.compile/4
    (exla 0.3.0) lib/exla/defn.ex:396: anonymous fn/9 in EXLA.Defn.compile/7
    (exla 0.3.0) lib/exla/defn/locked_cache.ex:36: EXLA.Defn.LockedCache.run/2
    (stdlib 4.1.1) timer.erl:235: :timer.tc/1
    (exla 0.3.0) lib/exla/defn.ex:383: EXLA.Defn.compile/7
    (exla 0.3.0) lib/exla/defn.ex:251: EXLA.Defn.__compile__/4
    iex:2: (file)
iex(2)>

Hey @masahiro-999! CUDA minor versions should be compatible starting from 11.1, that's why we precompile using the lowest version. Perhaps this is an XLA issue, I will build a binary using a newer version of XLA and we can test if that helps.

@masahiro-999 Do you get similar errors when running TensorFlow? This seems like it may be a specific issue with CUDA on WSL2 and TensorFlow: https://forums.developer.nvidia.com/t/windows-11-wsl2-cuda-windows-11-home-22000-708-nvidia-studio-driver-512-96/217721/3

@seanmor5 I tryed to check if TensorFlow is running or not.
It is running. and I didn't get similar error.
masa@DESKTOP-HP:~$ python3 -c 'import tensorflow as tf; print(tf.config.list_physical_devices("GPU"))'
2022-10-23 08:08:04.798512: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-10-23 08:08:04.911764: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2022-10-23 08:08:05.338207: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory
2022-10-23 08:08:05.338276: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory
2022-10-23 08:08:05.338295: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2022-10-23 08:08:05.883052: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:966] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2022-10-23 08:08:05.909657: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:966] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2022-10-23 08:08:05.910199: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:966] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

Command history
    4  sudo apt-key del 7fa2af80
    5  wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
    6  sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
    7  sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/3bf863cc.pub
    8  sudo add-apt-repository 'deb https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/ /'
    9  sudo apt-get update
   10  sudo apt-get -y install cuda
   11  nvidia-smi
   12  apt list cuda
   13  sudo apt install python3-pip
   14  pip3 install --upgrade pip
   15  pip install tensorflow
   16  sudo apt-get install zlib1g
   17  sudo dpkg -i ./cudnn-local-repo-ubuntu2004-<IP_ADDRESS>_1.0-1_amd64.deb
   18  pwd
   19  ls
   20  wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libcudnn8-dev_<IP_ADDRESS>-1+cuda11.8_amd64.deb
   21  wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libcudnn8_<IP_ADDRESS>-1+cuda11.8_amd64.deb
   22  ls -la
   23  sudo apt install ./libcudnn8-dev_<IP_ADDRESS>-1+cuda11.8_amd64.deb ./libcudnn8_<IP_ADDRESS>-1+cuda11.8_amd64.deb
   24  python3 -c “import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))”
   25  python3
   26  python3 -c 'import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))'
   27  python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices(‘GPU’))"
   28  python3 -c 'import tensorflow as tf; print(tf.config.list_physical_devices("GPU"))'

@masahiro-999 please try this one:
System.put_env(
  "XLA_ARCHIVE_URL",
  "https://static.jonatanklosko.com/builds/xla_extension-x86_64-linux-cuda111-tf2.10.tar.gz"
)

Mix.install(
  [
    {:nx,
     github: "elixir-nx/nx",
     sparse: "nx",
     override: true,
     ref: "0aa593dd599f30d83abd40a22d2413d033003b87"},
    {:exla,
     github: "elixir-nx/nx",
     sparse: "exla",
     override: true,
     ref: "0aa593dd599f30d83abd40a22d2413d033003b87"}
  ],
  config: [
    nx: [
      default_backend: EXLA.Backend,
      default_defn_options: [compiler: EXLA]
    ]
  ]
)

@jonatanklosko  This is the result.
$ iex
Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Interactive Elixir (1.14.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.put_env(
...(1)>   "XLA_ARCHIVE_URL",
...(1)>   "https://static.jonatanklosko.com/builds/xla_extension-x86_64-linux-cuda111-tf2.10.tar.gz"
...(1)> )
:ok
iex(2)> Mix.install(
...(2)>   [
...(2)>     {:nx,
...(2)>      github: "elixir-nx/nx",
...(2)>      sparse: "nx",
...(2)>      override: true,
...(2)>      ref: "0aa593dd599f30d83abd40a22d2413d033003b87"},
...(2)>     {:exla,
...(2)>      github: "elixir-nx/nx",
...(2)>      sparse: "exla",
...(2)>      override: true,
...(2)>      ref: "0aa593dd599f30d83abd40a22d2413d033003b87"}
...(2)>   ],
...(2)>   config: [
...(2)>     nx: [
...(2)>       default_backend: EXLA.Backend,
...(2)>       default_defn_options: [compiler: EXLA]
...(2)>     ]
...(2)>   ]
...(2)> )
* Getting nx (https://github.com/elixir-nx/nx.git - 0aa593dd599f30d83abd40a22d2413d033003b87)
remote: Enumerating objects: 15371, done.
remote: Counting objects: 100% (274/274), done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 15371 (delta 138), reused 204 (delta 110), pack-reused 15097
Receiving objects: 100% (15371/15371), 4.46 MiB | 6.28 MiB/s, done.
Resolving deltas: 100% (10231/10231), done.
==> nx
Could not find Hex, which is needed to build dependency :complex
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn] y
* creating /home/masa/.asdf/installs/elixir/1.14.0-otp-25/.mix/archives/hex-1.0.1
==> mix_install
* Getting exla (https://github.com/elixir-nx/nx.git - 0aa593dd599f30d83abd40a22d2413d033003b87)
remote: Enumerating objects: 15371, done.
remote: Counting objects: 100% (274/274), done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 15371 (delta 138), reused 204 (delta 110), pack-reused 15097
Receiving objects: 100% (15371/15371), 4.48 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (10242/10242), done.
Resolving Hex dependencies...
Dependency resolution completed:
New:
  complex 0.4.2
  elixir_make 0.6.3
  xla 0.3.0
* Getting xla (Hex package)
* Getting elixir_make (Hex package)
* Getting complex (Hex package)
==> complex
Compiling 2 files (.ex)
Generated complex app
==> nx
Compiling 27 files (.ex)
Generated nx app
==> elixir_make
Compiling 1 file (.ex)
Generated elixir_make app
==> xla
Compiling 2 files (.ex)
Generated xla app

09:52:25.180 [info] Downloading XLA archive from https://static.jonatanklosko.com/builds/xla_extension-x86_64-linux-cuda111-tf2.10.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                                Dload  Upload   Total   Spent    Left  Speed
100  266M  100  266M    0     0  6593k      0  0:00:41  0:00:41 --:--:-- 13.3M

09:53:06.518 [info] Successfully downloaded the XLA archive
==> exla
Unpacking /home/masa/.cache/xla/0.3.0/cache/external/xla_extension-nj36knfmas3bodi6yz3n2gmzjy.tar.gz into /home/masa/.cache/mix/installs/elixir-1.14.0-erts-13.1.1/23eb0e12b34f6d8d441e34a5ee08c316/deps/exla/exla/cache
g++ -fPIC -I/home/masa/.asdf/installs/erlang/25.1.1/erts-13.1.1/include -Icache/xla_extension/include -O3 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-comment -shared -std=c++17 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/lib'
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:98:71: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
   98 |       "PrimitiveType)")]] explicit Comparison(Direction dir, Type type);
      |                                                                       ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:105:7: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  105 |       const {
      |       ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:216:43: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  216 |   DefaultComparisonType(PrimitiveType type);
      |                                           ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h: In member function ‘xla::Comparison::Type xla::Comparison::GetType() const’:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:106:12: warning: ‘xla::Comparison::type_’ is deprecated [-Wdeprecated-declarations]
  106 |     return type_;
      |            ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: note: declared here
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:106:12: warning: ‘xla::Comparison::type_’ is deprecated [-Wdeprecated-declarations]
  106 |     return type_;
      |            ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: note: declared here
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h: At global scope:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:238:57: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  238 | std::string ComparisonTypeToString(Comparison::Type type);
      |                                                         ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:244:22: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  244 | StatusOr<Comparison::Type> StringToComparisonType(absl::string_view comparison);
      |                      ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_computation.h:37,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_instruction.h:655:33: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  655 |       std::optional<Comparison::Type> type = std::nullopt);
      |                                 ^~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h: In member function ‘tensorflow::Status xla::PjRtBuffer::ToLiteralSync(xla::MutableLiteralBase*)’:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:825:6: warning: ‘void xla::PjRtBuffer::ToLiteral(xla::MutableLiteralBase*, std::function<void(tensorflow::Status)>)’ is deprecated: Use ToLiteral(...).OnReady() instead [-Wdeprecated-declarations]
  825 |     });
      |      ^
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:813:8: note: declared here
  813 |   void ToLiteral(MutableLiteralBase* literal,
      |        ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_alias_analysis.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:30,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h: In member function ‘xla::BufferValue::Color xla::HloBuffer::color() const’:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:100:52: warning: ‘xla::BufferValue::Color xla::BufferValue::color() const’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  100 |     BufferValue::Color result = values()[0]->color();
      |                                                    ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:117:9: note: declared here
  117 |   Color color() const {
      |         ^~~~~
In file included from cache/xla_extension/include/tensorflow/core/platform/logging.h:27,
                 from cache/xla_extension/include/tensorflow/core/platform/status.h:29,
                 from cache/xla_extension/include/tensorflow/core/lib/core/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/util.h:39,
                 from cache/xla_extension/include/tensorflow/compiler/xla/layout.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/shape.h:26,
                 from c_src/exla/exla_nif_util.h:14,
                 from c_src/exla/exla.cc:3:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:102:38: warning: ‘xla::BufferValue::Color xla::BufferValue::color() const’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  102 |       DCHECK_EQ(result, value->color());
      |                                      ^
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:448:57: note: in definition of macro ‘CHECK_OP_LOG’
  448 |           ::tensorflow::internal::GetReferenceableValue(val2), \
      |                                                         ^~~~
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:455:30: note: in expansion of macro ‘CHECK_OP’
  455 | #define CHECK_EQ(val1, val2) CHECK_OP(Check_EQ, ==, val1, val2)
      |                              ^~~~~~~~
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:468:31: note: in expansion of macro ‘CHECK_EQ’
  468 | #define DCHECK_EQ(val1, val2) CHECK_EQ(val1, val2)
      |                               ^~~~~~~~
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:102:7: note: in expansion of macro ‘DCHECK_EQ’
  102 |       DCHECK_EQ(result, value->color());
      |       ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:117:9: note: declared here
  117 |   Color color() const {
      |         ^~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h: In lambda function:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:602:65: warning: ‘void xla::BufferValue::set_color(xla::BufferValue::Color)’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  602 |               defining_position.shape().layout().memory_space()));
      |                                                                 ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:124:8: note: declared here
  124 |   void set_color(Color color) {
      |        ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:604:49: warning: ‘void xla::BufferValue::set_color(xla::BufferValue::Color)’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  604 |           value->set_color(BufferValue::Color(0));
      |                                                 ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:124:8: note: declared here
  124 |   void set_color(Color color) {
      |        ^~~~~~~~~
In file included from c_src/exla/exla.cc:4:
c_src/exla/exla_client.h: In destructor ‘exla::ExlaBuffer::~ExlaBuffer()’:
c_src/exla/exla_client.h:40:60: warning: ‘tensorflow::Status xla::PjRtBuffer::BlockHostUntilReady()’ is deprecated: Use GetReadyFuture().Await() instead [-Wdeprecated-declarations]
   40 |     if(erlang_managed_) (void)buffer_->BlockHostUntilReady();
      |                                                            ^
In file included from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:952:10: note: declared here
  952 |   Status BlockHostUntilReady() {
      |          ^~~~~~~~~~~~~~~~~~~
In file included from c_src/exla/exla.cc:8:
cache/xla_extension/include/tensorflow/compiler/xla/client/xla_builder.h: At global scope:
cache/xla_extension/include/tensorflow/compiler/xla/client/xla_builder.h:958:44: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  958 |                  std::optional<Comparison::Type> type = std::nullopt);
      |                                            ^~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from c_src/exla/exla.cc:8:
cache/xla_extension/include/tensorflow/compiler/xla/client/xla_builder.h:966:56: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  966 |                                   Comparison::Type type);
      |                                                        ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from c_src/exla/exla.cc:8:
cache/xla_extension/include/tensorflow/compiler/xla/client/xla_builder.h:1153:53: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
 1153 |                        Comparison::Type compare_type);
      |                                                     ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from c_src/exla/exla.cc:8:
cache/xla_extension/include/tensorflow/compiler/xla/client/xla_builder.h:1937:75: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
 1937 |               ComparisonDirection direction, Comparison::Type compare_type);
      |                                                                           ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from /usr/include/unistd.h:226,
                 from cache/xla_extension/include/absl/base/internal/thread_identity.h:27,
                 from cache/xla_extension/include/absl/synchronization/mutex.h:68,
                 from cache/xla_extension/include/absl/strings/internal/cordz_handle.h:24,
                 from cache/xla_extension/include/absl/strings/internal/cordz_info.h:28,
                 from cache/xla_extension/include/absl/strings/cord.h:91,
                 from cache/xla_extension/include/tensorflow/core/platform/default/cord.h:22,
                 from cache/xla_extension/include/tensorflow/core/platform/cord.h:25,
                 from cache/xla_extension/include/tensorflow/core/platform/tstring.h:24,
                 from cache/xla_extension/include/tensorflow/core/platform/types.h:23,
                 from cache/xla_extension/include/tensorflow/core/platform/logging.h:20,
                 from cache/xla_extension/include/tensorflow/core/platform/status.h:29,
                 from cache/xla_extension/include/tensorflow/core/lib/core/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/util.h:39,
                 from cache/xla_extension/include/tensorflow/compiler/xla/layout.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/shape.h:26,
                 from c_src/exla/exla_nif_util.h:14,
                 from c_src/exla/exla.cc:3:
cache/xla_extension/include/tfrt/host_context/async_value.h: In instantiation of ‘static void tfrt::internal::ConcreteAsyncValue<T>::VerifyOffsets() [with T = tfrt::DummyValueForErrorAsyncValue]’:
cache/xla_extension/include/tfrt/host_context/async_value.h:503:18:   required from ‘tfrt::internal::ConcreteAsyncValue<T>::ConcreteAsyncValue(tfrt::DecodedDiagnostic) [with T = tfrt::DummyValueForErrorAsyncValue]’
cache/xla_extension/include/tfrt/host_context/async_value.h:701:34:   required from here
cache/xla_extension/include/tfrt/host_context/async_value.h:676:28: warning: offsetof within non-standard-layout type ‘tfrt::internal::ConcreteAsyncValue<tfrt::DummyValueForErrorAsyncValue>’ is conditionally-supported [-Winvalid-offsetof]
  676 |     static_assert(offsetof(ConcreteAsyncValue<T>, data_store_.data_) ==
      |                            ^
cache/xla_extension/include/tfrt/host_context/async_value.h:680:28: warning: offsetof within non-standard-layout type ‘tfrt::internal::ConcreteAsyncValue<tfrt::DummyValueForErrorAsyncValue>’ is conditionally-supported [-Winvalid-offsetof]
  680 |     static_assert(offsetof(ConcreteAsyncValue<T>, data_store_.error_) ==
      |                            ^
In file included from cache/xla_extension/include/tfrt/host_context/async_value_ref.h:35,
                 from cache/xla_extension/include/tfrt/host_context/host_context.h:27,
                 from cache/xla_extension/include/tfrt/host_context/async_dispatch.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_future.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:38,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tfrt/host_context/async_value.h: In member function ‘const char* tfrt::AsyncValue::State::DebugString() const’:
cache/xla_extension/include/tfrt/host_context/async_value.h:255:5: warning: control reaches end of non-void function [-Wreturn-type]
  255 |     }
      |     ^
cache/xla_extension/include/tfrt/host_context/async_value.h: In member function ‘const tfrt::DecodedDiagnostic* tfrt::AsyncValue::GetErrorIfPresent() const’:
cache/xla_extension/include/tfrt/host_context/async_value.h:900:1: warning: control reaches end of non-void function [-Wreturn-type]
  900 | }
      | ^
In file included from cache/xla_extension/include/tfrt/host_context/async_value.h:40,
                 from cache/xla_extension/include/tfrt/host_context/async_value_ref.h:35,
                 from cache/xla_extension/include/tfrt/host_context/host_context.h:27,
                 from cache/xla_extension/include/tfrt/host_context/async_dispatch.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_future.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:38,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla.cc:4:
cache/xla_extension/include/tfrt/support/logging.h: In destructor ‘tfrt::internal::LogStreamFatal::~LogStreamFatal()’:
cache/xla_extension/include/tfrt/support/logging.h:60:16: warning: ‘noreturn’ function does return
   60 |   [[noreturn]] ~LogStreamFatal() = default;
      |                ^
c_src/exla/exla_nif_util.cc: In function ‘int exla::nif::get_primitive_type(ErlNifEnv*, ERL_NIF_TERM, xla::PrimitiveType*)’:
c_src/exla/exla_nif_util.cc:454:43: warning: ‘T tensorflow::StatusOr<T>::ConsumeValueOrDie() [with T = xla::PrimitiveType]’ is deprecated: Use `value()` instead. [-Wdeprecated-declarations]
  454 |     *type = type_status.ConsumeValueOrDie();
      |                                           ^
In file included from cache/xla_extension/include/tensorflow/stream_executor/lib/statusor.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/statusor.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/status_macros.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/util.h:40,
                 from cache/xla_extension/include/tensorflow/compiler/xla/layout.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/shape.h:26,
                 from c_src/exla/exla_nif_util.h:14,
                 from c_src/exla/exla_nif_util.cc:1:
cache/xla_extension/include/tensorflow/core/platform/statusor.h:236:47: note: declared here
  236 |   T ABSL_DEPRECATED("Use `value()` instead.") ConsumeValueOrDie() {
      |                                               ^~~~~~~~~~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:98:71: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
   98 |       "PrimitiveType)")]] explicit Comparison(Direction dir, Type type);
      |                                                                       ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:105:7: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  105 |       const {
      |       ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:216:43: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  216 |   DefaultComparisonType(PrimitiveType type);
      |                                           ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h: In member function ‘xla::Comparison::Type xla::Comparison::GetType() const’:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:106:12: warning: ‘xla::Comparison::type_’ is deprecated [-Wdeprecated-declarations]
  106 |     return type_;
      |            ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: note: declared here
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:106:12: warning: ‘xla::Comparison::type_’ is deprecated [-Wdeprecated-declarations]
  106 |     return type_;
      |            ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:227:29: note: declared here
  227 |   [[deprecated]] const Type type_;
      |                             ^~~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h: At global scope:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:238:57: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  238 | std::string ComparisonTypeToString(Comparison::Type type);
      |                                                         ^
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:244:22: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  244 | StatusOr<Comparison::Type> StringToComparisonType(absl::string_view comparison);
      |                      ^~~~
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_computation.h:37,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_instruction.h:655:33: warning: ‘Type’ is deprecated: Use PrimitiveType and Order [-Wdeprecated-declarations]
  655 |       std::optional<Comparison::Type> type = std::nullopt);
      |                                 ^~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_opcode.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/dfs_hlo_visitor.h:26,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_cost_analysis.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:39,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/comparison_util.h:76:60: note: declared here
   76 |   enum class [[deprecated("Use PrimitiveType and Order")]] Type : uint8_t{
      |                                                            ^~~~
In file included from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h: In member function ‘tensorflow::Status xla::PjRtBuffer::ToLiteralSync(xla::MutableLiteralBase*)’:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:825:6: warning: ‘void xla::PjRtBuffer::ToLiteral(xla::MutableLiteralBase*, std::function<void(tensorflow::Status)>)’ is deprecated: Use ToLiteral(...).OnReady() instead [-Wdeprecated-declarations]
  825 |     });
      |      ^
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:813:8: note: declared here
  813 |   void ToLiteral(MutableLiteralBase* literal,
      |        ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_alias_analysis.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:30,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h: In member function ‘xla::BufferValue::Color xla::HloBuffer::color() const’:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:100:52: warning: ‘xla::BufferValue::Color xla::BufferValue::color() const’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  100 |     BufferValue::Color result = values()[0]->color();
      |                                                    ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:117:9: note: declared here
  117 |   Color color() const {
      |         ^~~~~
In file included from cache/xla_extension/include/tensorflow/core/platform/logging.h:27,
                 from cache/xla_extension/include/tensorflow/core/platform/status.h:29,
                 from cache/xla_extension/include/tensorflow/core/lib/core/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/util.h:39,
                 from cache/xla_extension/include/tensorflow/compiler/xla/layout.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/shape.h:26,
                 from c_src/exla/exla_nif_util.h:14,
                 from c_src/exla/exla_client.h:8,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:102:38: warning: ‘xla::BufferValue::Color xla::BufferValue::color() const’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  102 |       DCHECK_EQ(result, value->color());
      |                                      ^
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:448:57: note: in definition of macro ‘CHECK_OP_LOG’
  448 |           ::tensorflow::internal::GetReferenceableValue(val2), \
      |                                                         ^~~~
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:455:30: note: in expansion of macro ‘CHECK_OP’
  455 | #define CHECK_EQ(val1, val2) CHECK_OP(Check_EQ, ==, val1, val2)
      |                              ^~~~~~~~
cache/xla_extension/include/tensorflow/core/platform/default/logging.h:468:31: note: in expansion of macro ‘CHECK_EQ’
  468 | #define DCHECK_EQ(val1, val2) CHECK_EQ(val1, val2)
      |                               ^~~~~~~~
cache/xla_extension/include/tensorflow/compiler/xla/service/hlo_buffer.h:102:7: note: in expansion of macro ‘DCHECK_EQ’
  102 |       DCHECK_EQ(result, value->color());
      |       ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:117:9: note: declared here
  117 |   Color color() const {
      |         ^~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h: In lambda function:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:602:65: warning: ‘void xla::BufferValue::set_color(xla::BufferValue::Color)’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  602 |               defining_position.shape().layout().memory_space()));
      |                                                                 ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:124:8: note: declared here
  124 |   void set_color(Color color) {
      |        ^~~~~~~~~
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:604:49: warning: ‘void xla::BufferValue::set_color(xla::BufferValue::Color)’ is deprecated: Use Layout::memory_space instead. [-Wdeprecated-declarations]
  604 |           value->set_color(BufferValue::Color(0));
      |                                                 ^
In file included from cache/xla_extension/include/tensorflow/compiler/xla/service/heap_simulator.h:27,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_assignment.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/service/compiler.h:31,
                 from cache/xla_extension/include/tensorflow/compiler/xla/client/local_client.h:28,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_stream_executor_client.h:34,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/gpu_device.h:26,
                 from c_src/exla/exla_client.h:12,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/service/buffer_value.h:124:8: note: declared here
  124 |   void set_color(Color color) {
      |        ^~~~~~~~~
In file included from c_src/exla/exla_client.cc:1:
c_src/exla/exla_client.h: In destructor ‘exla::ExlaBuffer::~ExlaBuffer()’:
c_src/exla/exla_client.h:40:60: warning: ‘tensorflow::Status xla::PjRtBuffer::BlockHostUntilReady()’ is deprecated: Use GetReadyFuture().Await() instead [-Wdeprecated-declarations]
   40 |     if(erlang_managed_) (void)buffer_->BlockHostUntilReady();
      |                                                            ^
In file included from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:952:10: note: declared here
  952 |   Status BlockHostUntilReady() {
      |          ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/unistd.h:226,
                 from cache/xla_extension/include/absl/base/internal/thread_identity.h:27,
                 from cache/xla_extension/include/absl/synchronization/mutex.h:68,
                 from cache/xla_extension/include/absl/strings/internal/cordz_handle.h:24,
                 from cache/xla_extension/include/absl/strings/internal/cordz_info.h:28,
                 from cache/xla_extension/include/absl/strings/cord.h:91,
                 from cache/xla_extension/include/tensorflow/core/platform/default/cord.h:22,
                 from cache/xla_extension/include/tensorflow/core/platform/cord.h:25,
                 from cache/xla_extension/include/tensorflow/core/platform/tstring.h:24,
                 from cache/xla_extension/include/tensorflow/core/platform/types.h:23,
                 from cache/xla_extension/include/tensorflow/core/platform/logging.h:20,
                 from cache/xla_extension/include/tensorflow/core/platform/status.h:29,
                 from cache/xla_extension/include/tensorflow/core/lib/core/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/status.h:19,
                 from cache/xla_extension/include/tensorflow/compiler/xla/util.h:39,
                 from cache/xla_extension/include/tensorflow/compiler/xla/layout.h:25,
                 from cache/xla_extension/include/tensorflow/compiler/xla/shape.h:26,
                 from c_src/exla/exla_nif_util.h:14,
                 from c_src/exla/exla_client.h:8,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tfrt/host_context/async_value.h: In instantiation of ‘static void tfrt::internal::ConcreteAsyncValue<T>::VerifyOffsets() [with T = tfrt::DummyValueForErrorAsyncValue]’:
cache/xla_extension/include/tfrt/host_context/async_value.h:503:18:   required from ‘tfrt::internal::ConcreteAsyncValue<T>::ConcreteAsyncValue(tfrt::DecodedDiagnostic) [with T = tfrt::DummyValueForErrorAsyncValue]’
cache/xla_extension/include/tfrt/host_context/async_value.h:701:34:   required from here
cache/xla_extension/include/tfrt/host_context/async_value.h:676:28: warning: offsetof within non-standard-layout type ‘tfrt::internal::ConcreteAsyncValue<tfrt::DummyValueForErrorAsyncValue>’ is conditionally-supported [-Winvalid-offsetof]
  676 |     static_assert(offsetof(ConcreteAsyncValue<T>, data_store_.data_) ==
      |                            ^
cache/xla_extension/include/tfrt/host_context/async_value.h:680:28: warning: offsetof within non-standard-layout type ‘tfrt::internal::ConcreteAsyncValue<tfrt::DummyValueForErrorAsyncValue>’ is conditionally-supported [-Winvalid-offsetof]
  680 |     static_assert(offsetof(ConcreteAsyncValue<T>, data_store_.error_) ==
      |                            ^
In file included from cache/xla_extension/include/tfrt/host_context/async_value_ref.h:35,
                 from cache/xla_extension/include/tfrt/host_context/host_context.h:27,
                 from cache/xla_extension/include/tfrt/host_context/async_dispatch.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_future.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:38,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tfrt/host_context/async_value.h: In member function ‘const char* tfrt::AsyncValue::State::DebugString() const’:
cache/xla_extension/include/tfrt/host_context/async_value.h:255:5: warning: control reaches end of non-void function [-Wreturn-type]
  255 |     }
      |     ^
cache/xla_extension/include/tfrt/host_context/async_value.h: In member function ‘const tfrt::DecodedDiagnostic* tfrt::AsyncValue::GetErrorIfPresent() const’:
cache/xla_extension/include/tfrt/host_context/async_value.h:900:1: warning: control reaches end of non-void function [-Wreturn-type]
  900 | }
      | ^
In file included from cache/xla_extension/include/tfrt/host_context/async_value.h:40,
                 from cache/xla_extension/include/tfrt/host_context/async_value_ref.h:35,
                 from cache/xla_extension/include/tfrt/host_context/host_context.h:27,
                 from cache/xla_extension/include/tfrt/host_context/async_dispatch.h:23,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_future.h:24,
                 from cache/xla_extension/include/tensorflow/compiler/xla/pjrt/pjrt_client.h:38,
                 from c_src/exla/exla_client.h:11,
                 from c_src/exla/exla_client.cc:1:
cache/xla_extension/include/tfrt/support/logging.h: In destructor ‘tfrt::internal::LogStreamFatal::~LogStreamFatal()’:
cache/xla_extension/include/tfrt/support/logging.h:60:16: warning: ‘noreturn’ function does return
   60 |   [[noreturn]] ~LogStreamFatal() = default;
      |                ^
Compiling 21 files (.ex)
Generated exla app
:ok
iex(3)> Nx.add(Nx.tensor([1]), Nx.tensor([1]))

09:53:53.863 [info] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.

09:53:53.863 [info] XLA service 0x7fe954033dd0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:

09:53:53.863 [info]   StreamExecutor device (0): NVIDIA GeForce RTX 3060, Compute Capability 8.6

09:53:53.863 [info] Using BFC allocator.

09:53:53.863 [info] XLA backend allocating<PHONE_NUMBER>8 bytes on device 0 for BFCAllocator.
Segmentation fault

FTR I don't have CUDA installed, but I could still reproduce the error by using the cuda111 binary and :host client. I also built a binary using CUDA 11.8 Docker image and still got the segfault. In both cases I build against XLA from tensorflow 2.10. The non-cuda binary works fine, so there may be a bug with the conditional compilation in XLA.

I think this issue is resolved in the newest release. Can you confirm @masahiro-999 ?

Closing this for now. We are shipping more precompiled cuda versions now.


Update to cockle 0.0.10

Update to cockle 0.0.10 so that we can use the latest cockle-config command to show the loaded emscripten forge packages. Also reordered the months.txt file as I can't deal with the months in a random order 🙃.

Vercel deployment looks correct:


README typo

typo

Coverage remained the same at 100.0% when pulling 03552e5e1a4c8bf082e96ed70dcb8542783c4d67 on Xcess:patch-1 into 1225b7c9d22bc374749f5dcd177c55c28227ad46 on dgilland:master.

Thanks!


Blueprint Plugin should handle more flavors of 1D curves

We currently take anything that is 1D and assume it will be similar to a 1D rectilinear grid and treat it as such. This works with a few cases, but not all.
These are all the cases I can think of:

A “points” topology defined on top of an “explicit” coordset
An “unstructured” “points” topology defined on top of an “explicit” coordset
A “rectilinear” topology defined on top of a “rectilinear” coordset
A “uniform” topology defined on top of a “uniform” coordset
A “structured” topology defined on top of an “explicit” coordset

I know that unstructured points does not work since we do not take into account the connectivity ordering. The others may be fine; I'd have to investigate further.
Is this worth our while to support all these cases as curves?

The last 3 cases are the ones that make the most sense. We probably don't need to support the first 2.


Drop broken pickle files due to change in submodule data

Pickle files can't be read anymore because of refactor of data submodule. This PR can catch all errors and creates a new temporary pickle file.

I will add this PR to the maintenance branches of 0.14 and 0.15. This ensures backward compatibility.

I will add this PR to the maintenance branches of 0.14 and 0.15. This ensures backward compatibility.


docs(Table): documented Table

Added documentation to the Table widget.

As they say "great minds think alike (or fools never differ ;))" - https://github.com/ratatui-org/ratatui/pull/638
Would you mind reviewing #638 for me instead of this?

Didn't see that one, yep sure!


common-ize phantom-extent checks

Coverage decreased (-0.08%) to 68.566% when pulling 898d9628da5b7284e538768c93b058679c758cac on phantom-extent into fef5d1e22fd246c284ffec89c18f2b8f24197a0c on master.


fix: add_explicit_type produces invalid code on @ patterns

In
let name @ () = ();

an explicit type should be inserted after the pattern, not just after the name.
let statement defined as LetStmt = Attr* 'let' Pat (':' Type)? '=' initializer:Expr ';'

bors r+


anybadge cli accessible via python -m

How
Add __main__.py file to anybadge and anybadge.server packages, which is executed when python -m is called.
Before
$ python -m anybadge
../bin/python: No module named anybadge.__main__; 'anybadge' is a package and cannot be directly executed

After
$ python -m anybadge
usage: anybadge [-h] [-l LABEL] -v VALUE [-m VALUE_FORMAT] [-c COLOR] [-p PREFIX] [-s SUFFIX] [-d PADDING] [-lp LABEL_PADDING] [-vp VALUE_PADDING] [-n FONT] [-z FONT_SIZE]
                [-t TEMPLATE] [-st STYLE] [-u] [-f FILE] [-o] [-r TEXT_COLOR] [-e]
                ...
anybadge: error: the following arguments are required: -v/--value

Same has been added for anybadge-server as well, so that it can be called via python -m anybadge.server.
Closes #78

Thanks for spotting this, and taking the time to put this PR together! I appreciate it!


Make possible to set KAOTO_API as a parameter for the docker image

Also, @mmelko it seems like unit tests are failing because it's not finding KAOTO_API in Window, so it might be that you need to add it to the src/types.d.ts file.


Add dry run functionality

hey! I think your coding environment has changed the tab/spacing in such a way that the diffs between the old/new files all show up as different simply because the spacing is different. we want to get it such that the diffs between the files are more helpful at immediately identifying changes (i.e., only show the actual code changes). I think this can be achieved by having your coding environment make a tab equivalent to 4 spaces? (I think thats what lzr uses).


[3510] add rollover environment

Context
We're creating a rollover env to test rollover.
Changes proposed in this pull request
Add a rollover Rails env.
Checklist

[ ] Make sure all information from the Trello card is in here
[ ] Attach to Trello card
[ ] Rebased master
[ ] Cleaned commit history
[ ] Tested by running locally

 Add rollover RAILS_ENV


Fix sentence which ended abruptly

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for  creating this PR.  However, since it was created, the underlying document has changed.  Can you please review and resolve the current merge conflicts?  It could be the changes to the underlying document are so significant that your changes are no longer relevant.  If the latter is the case, it might be easier to just close this PR and create a new PR with any changes you still feel are important to make.
If you need any assistance or have questions about resolving the merge conflicts, please reply back or contact someone in the Contributors Room on Gitter.
Thank you.

Congrats @aquelemiguel on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝

Congrats @aquelemiguel on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝

Hey, thank you! 👌


Segmentation Fault in sixel_decode_raw_impl at fromsixel.c:585

version : img2sixel 1.8.2
There is a Segmentation Fault in sixel_decode_raw_impl at fromsixel.c:585
please run following cmd to reproduce it.
img2sixel -8 $PoC

poc
ASAN LOG
=================================================================
==44545==ERROR: AddressSanitizer: SEGV on unknown address 0x610fcf9778de (pc 0x7f468023f320 bp 0x0fffe55645a0 sp 0x7fff2ab22af0 T0)
==44545==The signal is caused by a WRITE memory access.
    #0 0x7f468023f31f in sixel_decode_raw_impl /home/tmp/libsixel/src/fromsixel.c:585:54
    #1 0x7f468025565b in sixel_decode_raw /home/tmp/libsixel/src/fromsixel.c:881:14
    #2 0x7f468035facd in load_sixel /home/tmp/libsixel/src/loader.c:613:14
    #3 0x7f468035facd in load_with_builtin /home/tmp/libsixel/src/loader.c:782
    #4 0x7f468035facd in sixel_helper_load_image_file /home/tmp/libsixel/src/loader.c:1352
    #5 0x7f46805a6d4f in sixel_encoder_encode /home/tmp/libsixel/src/encoder.c:1737:14
    #6 0x51787f in main /home/tmp/libsixel/converters/img2sixel.c:457:22
    #7 0x7f467e909b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #8 0x41a379 in _start (/home/tmp/img2sixel+0x41a379)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/tmp/libsixel/src/fromsixel.c:585:54 in sixel_decode_raw_impl
==44545==ABORTING

Fixed with 1377517, which prevents integer overflows. Thanks!


app.hooks global hooks

This pull request adds app.hooks which allows to register global before, after and error hooks that run for every service.
Note: App before hooks will always run before all other service before hooks. App after and error hooks will run after all service specific after and error hooks.
For example logging the duration of every service method execution can be done like this:
app.hooks({
  before(hook) {
    hook.start = new Date().getTime();
  },

  after(hook) {
    const duration = new Date().getTime() - hook.start;

    console.log(`${hook.method} execution took ${duration}ms`);
  }
});

A global service error handler that logs the error can look like this:
app.hooks({
  error(hook) {
    console.error(`Error in ${hook.method}`, error);
  }
});

Also closes #119

LGTM

:shipit:

I tried the feathers-hooks/app-hooks branch. I modified https://github.com/feathersjs/feathers-hooks/issues/119 as follows to match your post, but the hooks did not get called.
app.hooks({
  before(hook) { log.push('app.hooks.before.all'); },
  after(hook) { log.push('app.hooks.after.all'); },
  error(hook) { log.push('app.hooks.error.all');  }
});

I also tried the syntax before: (hook) => { log.push('app.hooks.before.all'); }, (duh) and  before: { all: (hook) => { log.push('app.hooks.before.all'); } },
I debugged a bunch. feathers-commons is used in const hooks = utils.convertHookData(obj); Do I need to use the latest from GitHub?
You're likely getting tired of my error-prone questions on this. I certainly am.

@eddyystop Not at all. And you were absolutely right, this didn't work at all. The tests didn't catch it because I only tested it with get which is a method on the app object. It didn't work for any other service method however. I pushed a fix and ran it with a test like this:
const feathers = require('feathers');
const hooks = require('./lib/hooks');

const app = feathers()
  .configure(hooks())
  .use('/messages', {
    create (data, params) {
      log.push('create method runs');
      return Promise.resolve();
    }
  });

const log = [];

app.hooks({
  before (hook) { log.push('app.hooks.before.all'); },
  after (hook) { log.push('app.hooks.after.all'); },
  error (hook) { log.push('app.hooks.error.all'); }
});

app.service('messages').hooks({
  before: {
    all (hook) { log.push('service.hooks.before.all'); }
  },
  after: {
    all (hook) { log.push('service.hooks.after.all'); }
  },
  error: {
    all (hook) { log.push('service.hooks.error.all'); }
  }
});

// a hook is added dynamically
app.service('messages').after({
  all (hook) { log.push('service.after.all'); }
});

// call a method

const service = app.service('messages');
service.create({ value: 1 }, { query: {} })
  .then(() => console.log(log));

And it now prints the expected:
[ 'app.hooks.before.all',
  'service.hooks.before.all',
  'create method runs',
  'service.hooks.after.all',
  'service.after.all',
  'app.hooks.after.all' ]

My heart went pitter-patter when I saw those results. :)

hook.app does not exist when  an app.hooks hook is called. I need hook.app.services to determine the route of the service being called.

Are you sure? They are treated exactly the same and when I just tested it hook.app seemed to work fine everywhere. I used this example:
const feathers = require('feathers');
const hooks = require('./lib/hooks');

const app = feathers()
  .configure(hooks())
  .use('/messages', {
    create (data, params) {
      log.push('create method runs');
      return Promise.resolve();
    }
  });

app.set('testvalue', 'testing');

const log = [];

app.hooks({
  before (hook) {
    log.push('app.hooks.before.all ' + hook.app.get('testvalue'));
  },
  after (hook) {
    log.push('app.hooks.after.all ' + hook.app.get('testvalue'));
  }
});

app.service('messages').hooks({
  before: {
    all (hook) {
      log.push('service.hooks.before.all ' + hook.app.get('testvalue'));
    }
  },
  after: {
    all (hook) {
      log.push('service.hooks.after.all ' + hook.app.get('testvalue'));
    }
  }
});

// a hook is added dynamically
app.service('messages').after({
  all (hook) { log.push('service.after.all ' + hook.app.get('testvalue')); }
});

// call a method

const service = app.service('messages');
service.create({ value: 1 }, { query: {} })
  .then(() => console.log(log));

Which prints
[ 'app.hooks.before.all testing',
  'service.hooks.before.all testing',
  'create method runs',
  'service.hooks.after.all testing',
  'service.after.all testing',
  'app.hooks.after.all testing' ]

You might have to reinstall your node modules actually to get the latest version of feathers-commons (>= 0.7.7) which is used here to set the app. rm -rf node_modules && npm install should do it.

Good catch @eddyystop. My bad on the premature :shipit:. For bigger changes it's probably better if the reviewer actually pulls down and tries it out I guess.


Update http4s-blaze-client, ... to 0.21.3

Updates

org.http4s:http4s-blaze-client
org.http4s:http4s-blaze-server
org.http4s:http4s-core
org.http4s:http4s-dsl

from 0.21.2 to 0.21.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, semver-patch

Codecov Report

Merging #484 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #484   +/-   ##
=======================================
  Coverage   79.13%   79.13%
=======================================
  Files         110      110
  Lines        3418     3418
  Branches       83       83
=======================================
  Hits         2705     2705
  Misses        713      713

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b37f88...076f05d. Read the comment docs.

done by #483


Added missing mapping for triggers on Logitech F310

The mapping for triggers were absent for Logitech F310 in Windows section.
Tested on two gamepads.

Looks like this needs a bit of workshopping.
lefttrigger:a2 indicates the full range of -1 to 1 of axis 2 is for left trigger
righttrigger:-a2 indicates half the range (-1 to 0) of axis 2 is for right trigger
this doesn't make sense as there is then overlap between left and right and they'll both trigger for -1 to 0. it's possible what you want is lefttrigger:+a2,righttrigger:-a2, though that also seems a bit weird. This situation resembles the conflict between trigger values when XInput devices are accessed over DInput where there's no real way to tell the trigger input's apart, since they both act on the same axis.
If you can test a bit more and clarify what you're seeing, please do.

Thank you for your clarification!
You are right, the gamepad was in XInput mode and there is a toggle for switching it to DInput mode.
After that I get independent axes for both triggers, but anyway mapping for triggers are missing, I updated PR with proper mapping.
lefttrigger:a2
righttrigger:a5


Level Up: Quiz Room Edition

We're diving into a key GrepIt feature—the Quiz Room. Here's the rundown:
🔧 Tasks:

Create /quizRoom route, splitting the page into two parts.
Left side: Question component showing the question and options.
Right side: Leaderboard (already developed).
Add checkboxes, and success/failure colors on options. Implement success logic on question submit (backend connection later).
Include the 'Previous' and 'Next' question buttons at the bottom of the question component.
Populate the question component with dummy data for the time being.

Check the various questions type components here

https://preview.themeforest.net/item/qzain-multiple-test-quiz-templates/full_screen_preview/44534188?_ga=2.169794725.583462586.1703274531-611163126.1683378128
Claim this issue by commenting. Thanks!

claim

Claim

@TheDivineAurora I can't assign more than one issue in the same repo currently.

claim

claim

claim

@bhupesh98 Please unassign me from this issue, I have not been able to give time to this, let sm1 else do this.

@bhupesh98  i want to work on it , assign me plz

@bhupesh98  i want to work on it , assign me plz

Assigned👍🏻

This issue is up for the claim again!
I expect this time to be requested by a person who can complete the task as it has been pending for long.

Cliam

Claim

Claim

claim

@Rohit-110 assigning you! You can refer to previous chats with chirag Malik on discord and if you have some other queries or resources required, kindly get it cleared as soon as possible.

@Rohit-110 updates on this task?
And let me know your discord ID.

@bhupesh98  still working on this task.
discord id rohit_46

@bhupesh98 please unassign me, i will take more time

@Rohit-110 In case you need time based on the work you did, you can request to extend your time. Do you still want to quit working on this issue?

@bhupesh98 I can work on this issue

@bhupesh98 I can work on this issue

Wait till the afternoon, as he feels he can submit a PR by today. Upon reviewing the progress I'll decide whether to assign it to you or let him have the time.

@bhupesh98 I can work on this issue

Wait till the afternoon, as he feels he can submit a PR by today. Upon reviewing the progress I'll decide whether to assign it to you or let him have the time.

Ok Sure Thanks

@rnavaneeth992 assigning you, You can work on this but make sure to do it as soon as possible, you may be required to clean up the logic as to configure theme we need to have antd designs as much as possible.
Just work or Quiz.jsx without editing Leaderboard.jsx as it is being prepared by myself.


Launcher App: How does it work with Bots?

Given the launcher app must be on the same devices as the application, how would it be offload an identity to a bot on a server? I would like to be able to get some kind of constrained credential that could be used by some code on a device I don't trust.

In today teleconf @justinwb mentioned that this was a very important use case. Can you develop a bit? Just to help me think about it.

Let's say I have an app that will take my photos and build cool slideshows for each day of my vacation.
The app runs a cron job every night when I'm asleep to get photos from myself and friends and turn the into a slideshow.
How does the app's server get the proper credentials to do that if all my devices are off when I'm asleep?

One possible answer is to think of the user's Pod Proxy as a launcher App, following my answer in issue 57.
What is the answer from the OAuth side?


[BEAM-3746] Change incompatible message from referencing the output collection to referencing the input collection

Previous error text was erroneously referencing the output collection instead of the input collection.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.


respect current indentation

It should use current indentation type and size if no options is specified in config.

Fixed in 2.1.0 version


Unable to click the last item of navbar

The menu toggle is interfering with the expected behaviour of the navbar.

Thanks for reporting 🙂


Keys Backup can be setup twice

While setup banner is displayed on Home, if I create the backup on another client, and then click on the banner, I will create a new backup.
When clicking on the setup banner, a force refresh should be done (going to manage setup Activity?)

I assume there is no proper way to fix this, because backup can also be created on web when we are on the screen to create a backup.

I disagree, we have to handle at least the case where the user is not setting up simultaneously a backup on another device.
I confirm "When clicking on the setup banner, a force refresh should be done" thx


Add log, alog, clog to DG

In this PR, the following were done:

Add implementation details of LogCommand, AppendLogCommand and ClearLogCommand to DG
Edit implementation details of FindCommand in DG
Update use cases to include log, alog, clog use cases

The following are to be done:

Update version of JAR release
Review diagrams for LogCommand, AppendLogCommand and ClearLogCommand

Log Activity Diagram:

Log Sequence Diagram:

Append Log Activity Diagram:

Clear Log Activity Diagram:


NATIVE-401: Refractor Term Extra to Offer

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword NATIVE.

I created a task to change extras in the DatabaseConnector: https://issues.integreat-app.de/browse/NATIVE-569