- 博客(3)
- 收藏
- 关注
原创 opencl初识
opencl执行流程简单实例// main.cpp#define CL_HPP_ENABLE_EXCEPTIONS#define CL_HPP_TARGET_OPENCL_VERSION 200#include<CL/cl2.hpp>#include <string.h>#include <iostream>#include <fstream>#include <sstream>int main(){ cl::Platf
2021-12-11 00:56:04 679
原创 Go语言面试题记录
题目大意如下:在10W数中通过比较的方式找出前100大的数,比较次数不超过102000次,额外最多允许申请一个空间。package mainimport ( "fmt" _ "math" "math/rand")func solution(arr []int) ([]int, int){ length := len(arr) middleArrLayers := getLayer(length) middleArrLength := getLength(middleArrLayer
2021-10-15 00:34:05 108
原创 C++结构体占用空间大小
1. 空结构体占一个字节空间#include<iostream>using namespace std;#define STRUCT StructNull#define STRUCT1(R) #R#define STRUCT2(R) STRUCT1(R)struct STRUCT{};int main(){ cout << "sizeof(" STRUCT2(STRUCT) ") = " << sizeof(STRUCT) <&l
2021-06-13 10:58:02 981
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人