This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cupy as cp | |
import cupyx.scipy.fft as cufft | |
import pytest | |
import numpy as np | |
import scipy.fft | |
scipy.fft.set_global_backend(cufft) | |
@pytest.fixture | |
def callbacks(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Python 3.9.0 | packaged by conda-forge | (default, Oct 14 2020, 22:59:50) | |
#[GCC 7.5.0] on linux | |
#sklearn.__version__ 0.23.2 | |
#numpy.__version__ 1.19.2 | |
#pytest.__version__ 6.1.2 | |
#pytest_benchmark.__version__ 3.2.3 | |
from brutenn.bruteforce import BruteForceBLAS | |
import numpy as np | |
from numpy.random import default_rng as drng |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BENCHMARK "OSU MPI%s Bi-Directional Bandwidth Test" | |
/* | |
* Copyright (C) 2002-2019 the Network-Based Computing Laboratory | |
* (NBCL), The Ohio State University. | |
* | |
* Contact: Dr. D. K. Panda ([email protected]) | |
* | |
* For detailed copyright and licensing information, please refer to the | |
* copyright file COPYRIGHT in the top level OMB directory. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Trains a simple convnet on the MNIST dataset. | |
Gets to 99.25% test accuracy after 12 epochs | |
(there is still a lot of margin for parameter tuning). | |
16 seconds per epoch on a GRID K520 GPU. | |
''' | |
from __future__ import print_function | |
import keras | |
from keras.datasets import mnist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NVCCFLAGS=-lineinfo | |
SM_FLAGS?=-gencode arch=compute_60,code=sm_60 | |
all : works fails | |
works : reproduce.cu | |
nvcc $< $(NVCCFLAGS) -o $@ | |
fails : reproduce.cu | |
nvcc $< $(NVCCFLAGS) $(SM_FLAGS) -o $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Vector addition: C = A + B. | |
* | |
* This sample is a very basic sample that implements element by element | |
* vector addition. It is the same as the sample illustrating Chapter 2 | |
* of the programming guide with some additions like error checking. | |
*/ | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <libavutil/opt.h> | |
#include <libavcodec/avcodec.h> | |
#include <libavutil/channel_layout.h> | |
#include <libavutil/common.h> | |
#include <libavutil/imgutils.h> | |
#include <libavutil/mathematics.h> | |
#include <libavutil/samplefmt.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
excerpt from indico.log: | |
2015-01-15 11:51:40,939 indico.requestHandler: INFO - Request <IndicoRequest 'https://indico.mpi-cbg.de/indico/user/login' [POST]> finished with TypeError: "bind_s() argument after * must be a sequence, not NoneType" | |
2015-01-15 11:52:56,844 indico.wsgi : ERROR - Connection unexpectedly closed | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request | |
rv = self.dispatch_request() | |
File "/usr/local/lib/python2.7/dist-packages/Flask-0.10-py2.7.egg/flask/app.py", line 1461, in dispatch_request | |
return self.view_functions[rule.endpoint](**req.view_args) | |
File "/usr/local/lib/python2.7/dist-packages/indico-1.2-py2.7.egg/indico/web/flask/util.py", line 87, in wrapper | |
return obj(None).process(params) |