Skip to content

Commit

Permalink
CUDA Updated to 12.2
Browse files Browse the repository at this point in the history
Issue #4 fixed
  • Loading branch information
X-Stuff committed Oct 6, 2023
1 parent 7beed29 commit a7980bc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
x64/
*.user
.vscode/
.vs/
4 changes: 2 additions & 2 deletions CudaKeeloq.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(CUDA_PATH)\extras\visual_studio_integration\MSBuildExtensions\CUDA 12.0.props" />
<Import Project="$(CUDA_PATH)\extras\visual_studio_integration\MSBuildExtensions\CUDA 12.2.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Expand Down Expand Up @@ -223,6 +223,6 @@
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(CUDA_PATH)\extras\visual_studio_integration\MSBuildExtensions\CUDA 12.0.targets" />
<Import Project="$(CUDA_PATH)\extras\visual_studio_integration\MSBuildExtensions\CUDA 12.2.targets" />
</ImportGroup>
</Project>
7 changes: 4 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG CONFIGURATION="release"
ARG CUDA_MAJOR=12
ARG CUDA_MINOR=0
ARG CUDA_PATCH=1
ARG CUDA_MINOR=2
ARG CUDA_PATCH=0

FROM nvidia/cuda:${CUDA_MAJOR}.${CUDA_MINOR}.${CUDA_PATCH}-devel-ubuntu22.04 as builder
ARG CONFIGURATION
Expand All @@ -27,4 +27,5 @@ USER cuda

WORKDIR /app
COPY --chown=cuda:cuda --from=builder /workspace/x64/$CONFIGURATION/bin /app/
ENTRYPOINT [ "/app/CudaKeeloq", "--help" ]
ENTRYPOINT [ "/app/CudaKeeloq" ]
CMD [ "--help" ]
18 changes: 16 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ So it's practically impossible to use this application "as is" in real life atta

## Version history

* `0.1.2`
- Fixed `dockerfile`, added `CMD` (issue: https://github.com/X-Stuff/CudaKeeloq/issues/4).
- CUDA version updated to `12.2``
* `0.1.1`
- Added seed bruteforce mode (issue: https://github.com/x-stuff/CudaKeeloq/issues/2).
- Added support of specifying seed in a text dictionaries.
Expand Down Expand Up @@ -42,7 +45,7 @@ So it's practically impossible to use this application "as is" in real life atta
### Windows
#### Requirements

* CUDA Toolkit v12.0.0
* CUDA Toolkit v12.2.0
- nvcc
- cuda runtime
- visual studio extension
Expand All @@ -55,6 +58,7 @@ So it's practically impossible to use this application "as is" in real life atta
### Linux
#### Requirements
* docker
* NVIDIA Container [Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)

#### Compiling
```
Expand All @@ -64,10 +68,20 @@ This will create a container `cudakeeloq:local` with compiled app

Run the bruteforcer
```
$ ./run.sh
$ ./run.sh <ARGS>
```
> NOTE: You may need to have CUDA docker extension installed in order to have `--gpus` command line argument works.
### Different CUDA Version

#### Windows
Open `.vcxproj` find and replace:
* `CUDA 12.2.targets` with desired version
* `CUDA 12.2.props` with disired version

#### Linux
Open `dockerfile` and change `CUDA_MAJOR`, `CUDA_MINOR` and `CUDA_PATCH` variables

## Run

### Requirements
Expand Down

0 comments on commit a7980bc

Please sign in to comment.