Skip to content

Instantly share code, notes, and snippets.

Avatar

Isuru Fernando isuruf

  • University of Illinois
  • Urbana, IL
  • Twitter @isuru_f
View GitHub Profile
@isuruf
isuruf / gist:aaead06e2b1d801a20910bc44a9ffcdf
Last active May 25, 2021
Use conda-forge lapack with acelerate as blas backend
View gist:aaead06e2b1d801a20910bc44a9ffcdf
git clone https://github.com/isuruf/vecLibFort
cd vecLibFort
conda create -n numpy pytest hypothesis numpy "libblas=*=*netlib" --yes
conda activate numpy
clang -O3 -c -o vecLibFort.o vecLibFort.c
clang -shared -o libblas.3.dylib vecLibFort.o -Wl,-reexport_library,$(xcrun -show-sdk-path)/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.tbd
codesign -s - -f libblas.3.dylib
rm $CONDA_PREFIX/lib/libblas.3.dylib
rm $CONDA_PREFIX/lib/libcblas.3.dylib
@isuruf
isuruf / README.md
Last active Jul 30, 2020 — forked from bollwyvl/README.md
Using pypy on binder
View README.md

on

Binder

Thanks to the toil of the folks at conda-forge, you can try out PyPy, a fast alternative Python implementation.

Not everything is available yet, but the bot just keeps on migrating: there's still lots to do, so stay tuned!

View pypy_build_failure.log
(base) [centos@conda-forge-p8-1 pypy3.6-feedstock]$ conda build recipe -m .ci_support/linux_ppc64le_.yaml
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Adding in variants from .ci_support/linux_ppc64le_.yaml
INFO:conda_build.variants:Adding in variants from .ci_support/linux_ppc64le_.yaml
Attempting to finalize metadata for pypy3.6
INFO:conda_build.metadata:Attempting to finalize metadata for pypy3.6
Collecting package metadata (repodata.json): ...working... done
View m2m.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View commands.sh
clang-7 in1.ll -O3 -fvectorize -emit-llvm -S -o out1.ll
clang-7 in2.ll -O3 -fvectorize -emit-llvm -S -o out2.ll
View Move from appveyor to azure.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am isuruf on github.
  • I am isuruf (https://keybase.io/isuruf) on keybase.
  • I have a public key ASAq_JZi4sthU0Kt30PSX6H5iY_l7Yg_KaAWz9nQU5nJwwo

To claim this, I am signing this object:

View gist:919b397cd47adad72ebd14dc5fa8beb2
set YEAR=2015
set VER=14
mkdir "%PREFIX%\etc\conda\activate.d"
COPY "%RECIPE_DIR%\activate.bat" "%PREFIX%\etc\conda\activate.d\vs%YEAR%_compiler_vars.bat"
echo if "%%VC14_ON_VS2017%%" == "" ( >> "%PREFIX%\etc\conda\activate.d\vs%YEAR%_compiler_vars.bat"
IF "%cross_compiler_target_platform%" == "win-64" (
echo SET "CMAKE_GENERATOR=Visual Studio 15 2017 Win64" -T "v140" >> "%PREFIX%\etc\conda\activate.d\vs%YEAR%_compiler_vars.bat"
@isuruf
isuruf / Error.log
Last active May 3, 2018
MSVC 2015 Update 3 ICE
View Error.log
Generating code
c:\bld\dipy_1525377738849\work\dipy\segment\metricspeed.c(5066) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 255)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe'
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information