Skip to content

Instantly share code, notes, and snippets.

Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP.internal (2814.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_object_metadata cl_amd_event_callback
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
@ubombi
ubombi / Stack Dump
Created December 10, 2018 21:15
PyTorch AMD build error
0. Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name aten_op.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /pytorch/build_caffe2/caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.0 -isystem /pytorch/build_caffe2/third_party/gloo -isystem /pytorch/cmake/../third_party/gloo -isystem /pytorch/third_party/gemmlowp -isystem /pytorch/third_party/neon2sse -isystem /pytorch/cmake/../third_party/googletest/googletest/include -isystem /pytorch/third_party -isystem /usr/include/opencv -isystem /pytorch/cmake/../third_party/eigen -isystem /usr/include/python2.7 -isystem /usr/local/lib/python2.7/dist-packages/numpy/core/include -isystem /pytorch/cmake/../third_pa
@ubombi
ubombi / middleware.py
Last active October 30, 2015 11:28 — forked from LucasRoesler/middleware.py
A Django middleware that process JSON data into the appropriate GET or POST variable. I use this with AngularJS, by default POST requests are sent as JSON instead of the urlencoded data expected by Django.
import json
from django.http import QueryDict
class JSONMiddleware(object):
"""
Process application/json requests data from GET and POST requests.
"""
def process_request(self, request):
if 'application/json' in request.META.get('CONTENT_TYPE', []):