Skip to content

Instantly share code, notes, and snippets.

View alphaville's full-sized avatar
:octocat:
(De)coding

Pantelis Sopasakis alphaville

:octocat:
(De)coding
View GitHub Profile
{
"father_compound": 55,
"name": ["aspirin", "acetylsalicylic acid"],
"smiles": "CC(=O)Oc1ccccc1C(=O)O",
"inchi_key": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
"sdf_representation": "http://server.com/compound/2/sdf",
"comment": [
"this is a comment",
"analogue of rdfs:comment"
],
{
"name":"molecular weight",
"units":"Da",
"description":"blah blah",
"hasSource":"http://jaqpot.org:8080/model/45",
"sameAs":"http://someontology.org/v/1.1#MolecularWeight",
"creator":"chung@jaqpot.org"
}
{
"id": 100,
"status":"COMPLETED",
"http_status":200,
"result": "http://opentox.ntua.gr:8080/model/234",
"duration":452,
"progress":[
"data loaded",
"new resources have been created",
"now training the model",
{
"father_compound": 55,
"name": "aspirin",
"smiles": "CC(=O)Oc1ccccc1C(=O)O",
"inchi_key": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
"sdf_representation": "http://server.com/compound/2/sdf",
"comment": [
"this is a comment",
"analogue of rdfs:comment"
],
/*
* StreamArrayReader.cpp
*
* Created on: Nov 1, 2014
* Author: Pantelis Sopasakis
*/
#ifndef STREAMARRAYREADER_IMPL_
#define STREAMARRAYREADER_IMPL_
#!/bin/bash
# GET a dataset and store it in RDF in a file (locally)
curl http://apps.ideaconsult.net:8080/ambit2/dataset/R545 -H Accept:application/rdf+xml > R545.rdf 2> /dev/null
# POST the SAME dataset to the dataset server [Creates a task]:
task_uri=`curl -X POST --data-binary @R545.rdf http://apps.ideaconsult.net:8080/ambit2/dataset -H Content-type:application/rdf+xml -H Accept:text/uri-list 2> /dev/null`;
status=$(curl --write-out %{http_code} --silent --output /dev/null $task_uri);
echo "[Task Created] status = $status"
% Where to store the header file:
header_filename = '/Users/imt/cuda-workspace/dGPAD_CUDA/src/sys_data.h';
int_type = 'short';
%create header
tic;
size_of_FN = zeros(length(sys.Ft),1);
size_of_FN_cum = zeros(size(size_of_FN));
for kk=1:length(sys.Ft),
#ifndef MAT_VECTOR_
#define MAT_VECTOR_
#include<cuda_runtime.h>
#include"cublas_v2.h"
#include "helper_cuda.h"
/**
* Definition of the function that perform multiple matrix-vector operations
* @param matrices: Vector of pointers that point to multiple matrix vector operations,
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include "helper_cuda.h"
#define _CUDA(x) checkCudaErrors(x)
__global__ void ker(float ** d_X, float * d_A, float * d_B, int n){
printf("Addresses...\n");
#define BLOCK_SIZE 128
#define RESTRICT __restrict__
template<typename T>
__global__ void matvec_kernel(const T * RESTRICT dA, const T * RESTRICT dx,
T * RESTRICT dy, const uint_t nRows, const uint_t nx)
{
const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x;
__shared__ T x_shared[BLOCK_SIZE];