Skip to content

Instantly share code, notes, and snippets.

Marek Wojciechowski mrkwjc

Block or report user

Report or block mrkwjc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mrkwjc
mrkwjc / cuspsolve32.py
Created Jan 25, 2019
CUDA vs. CPU sparse solver in Python - single precision
View cuspsolve32.py
# ### Interface cuSOLVER PyCUDA
import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import pycuda.autoinit
import numpy as np
import scipy.sparse as sp
import ctypes
## Wrap the cuSOLVER cusolverSpDcsrlsvqr() using 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
@mrkwjc
mrkwjc / cuspsolve.py
Last active Jan 25, 2019
CUDA vs. CPU sparse solver in Python
View cuspsolve.py
# ### Interface cuSOLVER PyCUDA
import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import pycuda.autoinit
import numpy as np
import scipy.sparse as sp
import ctypes
from __future__ import print_function
You can’t perform that action at this time.