Download the latest Nvidia driver on http://www.nvidia.com/drivers
Update the kernel to the latest version
$ yum update
Change to runlevel 3 - multi user mode for the next reboot
from pyspark.sql.types import * | |
from pyspark.sql.functions import * | |
#Flatten array of structs and structs | |
def flatten(df): | |
# compute Complex Fields (Lists and Structs) in Schema | |
complex_fields = dict([(field.name, field.dataType) | |
for field in df.schema.fields | |
if type(field.dataType) == ArrayType or type(field.dataType) == StructType]) | |
while len(complex_fields)!=0: |
Download the latest Nvidia driver on http://www.nvidia.com/drivers
Update the kernel to the latest version
$ yum update
Change to runlevel 3 - multi user mode for the next reboot
# ### 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 |
反射就错啊反射就错啊 |
package com.zhisuo.redis | |
import redis.clients.jedis.Jedis | |
import redis.clients.jedis.JedisPool | |
import redis.clients.jedis.BinaryJedis | |
import redis.clients.util.Pool | |
/** | |
* 基本redis访问 | |
*/ |