- If running inside docker, make sure to execute
docker exec
with--privileged
- Install
remote_pdb
pip install remote_pdb
/** | |
* ConfD Decrypt Utility | |
* | |
* Prerequisites: | |
* * AESCFB128-encrypted (e.g. $8$) config values | |
* * May work on DES3CBC as well; untested | |
* * CDB files from target device | |
* * confd.conf file from target device | |
* * At minimum, AESCFB128 key and initVector values | |
* * gcc/make |
# WARNING: this doesn't work properly | |
import asyncio | |
import ssl | |
import socket | |
# included logging to try to figure out why this wasn't working... | |
import logging | |
logging.basicConfig() | |
logging.getLogger('asyncio').setLevel(logging.DEBUG) |
//1D grid of 1D blocks | |
__device__ int getGlobalIdx_1D_1D() | |
{ | |
return blockIdx.x *blockDim.x + threadIdx.x; | |
} | |
//1D grid of 2D blocks | |
__device__ int getGlobalIdx_1D_2D() | |
{ | |
return blockIdx.x * blockDim.x * blockDim.y + threadIdx.y * blockDim.x + threadIdx.x; |