Skip to content

Instantly share code, notes, and snippets.

Avatar

Marek Wojciechowski mrkwjc

View GitHub Profile
@mrkwjc
mrkwjc / cuspsolve32.py
Last active Dec 6, 2019
CUDA vs. CPU sparse solver in Python - single precision
View cuspsolve32.py
# ### Interface cuSOLVER PyCUDA
from __future__ import print_function
import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import pycuda.autoinit
import numpy as np
import scipy.sparse as sp
import ctypes
@mrkwjc
mrkwjc / cuspsolve.py
Last active Dec 6, 2019
CUDA vs. CPU sparse solver in Python
View cuspsolve.py
# ### Interface cuSOLVER PyCUDA
from __future__ import print_function
import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import pycuda.autoinit
import numpy as np
import scipy.sparse as sp
import ctypes
@mrkwjc
mrkwjc / npbench.py
Last active Jan 19, 2019
Numpy performance tests...
View npbench.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration
from __future__ import print_function
import numpy as np
from time import time
You can’t perform that action at this time.