Skip to content

Commit

Permalink
Remove unused VCL and VLAS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Jan 6, 2024
1 parent ec59ecb commit 5d847a0
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ flags=""

if [[ -n "${use_cblas}" ]]; then
echo "Running tests using Open BLAS"
flags="${flags} -d cblas"
flags="${flags} -d vsl_vlas_cblas"
fi

if [[ -n "${use_autofree}" ]]; then
Expand Down Expand Up @@ -65,7 +65,7 @@ if [[ -z "${skip_examples}" ]]; then
continue
fi
echo "Compiling ${file}"
v ${flags} -d dlopencl -o "${file}.o" "${file}"
v ${flags} -d vsl_vcl_dlopencl -o "${file}.o" "${file}"
echo "${file}.o created"
echo "Removing ${file}.o"
rm -f "${file}.o"
Expand Down
2 changes: 1 addition & 1 deletion vcl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cp -r /tmp/OpenCL-Headers/CL ~/.vmodules/vcl/CL
## Loading OpenCL dynamically

By default VCL uses OpenCL loading the library statically. If you want to use OpenCL
dynamically, you can use the `-d dlopencl` flag.
dynamically, you can use the `-d vsl_vcl_dlopencl` flag.

By default it will look for the OpenCL library in the system path and all the known
locations for OpenCL libraries (like `/usr/lib` and `/usr/local/lib`) and load the first
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 15 additions & 15 deletions vlas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

This package implements BLAS and LAPACKE functions. It provides different backends:

| Backend | Description | Status | Compilation Flags |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- | ----------------- |
| VLAS | Pure V implementation | WIP | `-d vlas` |
| OpenBLAS | OpenBLAS is an optimized BLAS library based on <https://github.com/xianyi/OpenBLAS>. Check the section [OpenBLAS Backend](#openblas-backend) for more information. | Working | `-d cblas` |
| LAPACKE | LAPACKE is a C interface to the LAPACK linear algebra routines | Working | `-d lapacke` |
| Backend | Description | Status | Compilation Flags |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- | --------------------- |
| VLAS | Pure V implementation | WIP | `NONE` |
| OpenBLAS | OpenBLAS is an optimized BLAS library based on <https://github.com/xianyi/OpenBLAS>. Check the section [OpenBLAS Backend](#openblas-backend) for more information. | Working | `-d vsl_vlas_cblas` |
| LAPACKE | LAPACKE is a C interface to the LAPACK linear algebra routines | Working | `-d vsl_vlas_lapacke` |

Therefore, its routines are a little more _lower level_ than the ones in the package `vsl.la`.

## OpenBLAS Backend

Use the flag `-d cblas` to use the OpenBLAS backend.
Use the flag `-d vsl_vlas_cblas` to use the OpenBLAS backend.

### Install dependencies

Expand All @@ -30,17 +30,17 @@ sudo apt-get install -y --no-install-recommends \
#### Arch Linux/Manjaro GNU Linux

The best way of installing OpenBlas is using
[openblas-lapack](https://aur.archlinux.org/packages/openblas-lapack/).
[lapack-openblas](https://aur.archlinux.org/packages/lapack-openblas/).

```sh
yay -S openblas-lapack
yay -S lapack-openblas
```

or

```sh
git clone https://aur.archlinux.org/openblas-lapack.git /tmp/openblas-lapack
cd /tmp/openblas-lapack
git clone https://aur.archlinux.org/lapack-openblas.git /tmp/lapack-openblas
cd /tmp/lapack-openblas
makepkg -si
```

Expand All @@ -52,7 +52,7 @@ brew install openblas

## LAPACKE Backend

Use the flag `-d lapacke` to use the LAPACKE backend (enabled by default for now).
Use the flag `-d vsl_vlas_lapacke` to use the LAPACKE backend (enabled by default for now).

### Install dependencies

Expand All @@ -68,16 +68,16 @@ sudo apt-get install -y --no-install-recommends \
#### Arch Linux/Manjaro GNU Linux

The best way of installing LAPACKE is using
[openblas-lapack](https://aur.archlinux.org/packages/openblas-lapack/).
[lapack-openblas](https://aur.archlinux.org/packages/lapack-openblas/).

```sh
yay -S openblas-lapack
yay -S lapack-openblas
```

or

```sh
git clone https://aur.archlinux.org/openblas-lapack.git /tmp/openblas-lapack
cd /tmp/openblas-lapack
git clone https://aur.archlinux.org/lapack-openblas.git /tmp/lapack-openblas
cd /tmp/lapack-openblas
makepkg -si
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5d847a0

Please sign in to comment.