-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build CL by default and include it in the release package.
Stub out unimplemented interfaces.
- Loading branch information
Showing
13 changed files
with
139 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
NVCC:=nvcc | ||
GPU_PTX_ARCH:=compute_35 | ||
GPU_ARCHS?=sm_37,sm_50,sm_61,sm_70 | ||
HOST_CFLAGS:=-Wall -Werror -fPIC -Wno-strict-aliasing | ||
GPU_CFLAGS:=--gpu-code=$(GPU_ARCHS),$(GPU_PTX_ARCH) --gpu-architecture=$(GPU_PTX_ARCH) | ||
CFLAGS_release:=-Icommon --ptxas-options=-v $(GPU_CFLAGS) -O3 -Xcompiler "-Wall -Werror -fPIC -Wno-strict-aliasing" | ||
CFLAGS_release:=-Icommon --ptxas-options=-v $(GPU_CFLAGS) -O3 -Xcompiler "$(HOST_CFLAGS)" | ||
CFLAGS_debug:=$(CFLAGS_release) -g | ||
CFLAGS:=$(CFLAGS_$V) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <stdio.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
#include "chacha.h" | ||
|
||
void chacha_cbc_encrypt_many_sample(const uint8_t* in, | ||
void* sha_state_arg, | ||
size_t length, | ||
const uint8_t* keys, | ||
uint8_t* ivecs, | ||
uint32_t num_keys, | ||
const uint64_t* samples, | ||
uint32_t num_samples, | ||
uint64_t starting_block_offset, | ||
float* time_us) | ||
{ | ||
fprintf(stderr, "chacha_cbc_encrypt_many_sample not implemented\n"); | ||
exit(1); | ||
} | ||
|
||
void chacha_end_sha_state(const void* sha_state, uint8_t* out, uint32_t num_keys) | ||
{ | ||
fprintf(stderr, "chacha_end_sha_state not implemented\n"); | ||
exit(1); | ||
} | ||
|
||
void chacha_init_sha_state(void* sha_state, uint32_t num_keys) | ||
{ | ||
fprintf(stderr, "chacha_init_sha_state not implemented\n"); | ||
exit(1); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdint.h> | ||
#include <stddef.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
extern "C" { | ||
int poh_verify_many(uint8_t* hashes, | ||
const uint64_t* num_hashes_arr, | ||
size_t num_elems, | ||
uint8_t use_non_default_stream) | ||
{ | ||
fprintf(stderr, "poh_verify_many not implemented."); | ||
exit(1); | ||
return 0; | ||
} | ||
} | ||
|