04 2015 档案
初学python里的yield send next
摘要:今天看书的时候突然看到这个想起来一直没有怎么使用过send和next试了一下发现了一个诡异的问题import mathdef get_primes(start): while 1 : if is_prime(start) : start = yield st...
阅读全文
opencl初体验
摘要:总结一下,opencl的步骤差不多是这些先要获取平台的id clGetPlatformIDs(nPlatforms, platform_id, &num_of_platforms)然后获取设备id clGetDeviceIDs(platform_id[1], CL_DEVICE_TYPE_GPU, ...
阅读全文