Skip to content

Instantly share code, notes, and snippets.

cmake_minimum_required(VERSION 3.7)
project(myproject)
#enable_language("CUDA")
find_package(CUDA QUIET)
# Check for CUDA ENV vars
IF(NOT DEFINED ENV{CUDA_PATH})
MESSAGE(FATAL_ERROR "CUDA_PATH Environment variable is not set.")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -ccbin=cuda-g++")
cmake_minimum_required(VERSION 3.7)
project(myproject)
#enable_language("CUDA")
find_package(CUDA QUIET)
Set(USE_CUDA ${CUDA_FOUND})
# second : we detect Gpu properties with a home-made script
if(USE_CUDA)
# getting some properties of GPUs to pass them as "-D..." options at compilation (adapted from caffe git repo).
@daidedou
daidedou / norm_21_gradient.cpp
Created January 31, 2023 10:49
Modification (not working) of the norm_21_gradient.cpp of partial functional correspondance paper.
/**
* This code accompanies the paper:
*
* "Partial Functional Correspondence"
* Rodola, Cosmo, Bronstein, Torsello, Cremers
* Computer Graphics Forum 2016
*
* Please cite the paper above if you use this code in your research.
*
* Written by Emanuele Rodola and Luca Cosmo